7 Commits
Author SHA1 Message Date
selimaj-dev 6bf0c09556 Workflow: fix 2026-04-08 02:24:27 +02:00
selimaj-dev 0a29f10468 Workflow: Fix windows get release tag 2026-04-08 02:20:46 +02:00
selimaj-dev 7e1ea9fcad Workflow: remove dmg from mac 2026-04-08 02:15:56 +02:00
selimaj-dev f2f44bcc3d Workflow run on dispatch 2026-04-08 02:07:21 +02:00
selimaj-dev 0638737562 Workflow fix 2026-04-08 02:05:19 +02:00
selimaj-dev 966e0eeb52 Workflow fix: Mac zip file and publish directly 2026-04-08 02:00:44 +02:00
Kr4ight 1ba5d1655b Add macOS app preparation and signing steps
Added steps to prepare and sign the macOS app, and zip it for distribution.
2026-04-08 01:25:58 +02:00
2 changed files with 46 additions and 38 deletions
+45 -37
View File
@@ -4,6 +4,11 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: "Release tag to upload to (e.g. 0.1.0)"
required: false
type: string
jobs:
build:
@@ -15,17 +20,17 @@ jobs:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
permissions:
contents: write
- name: Setup Node
uses: actions/setup-node@v4
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies (Linux only)
if: matrix.os == 'ubuntu-latest'
@@ -42,43 +47,46 @@ jobs:
libayatana-appindicator3-dev \
librsvg2-dev
- name: Install frontend dependencies
run: npm install
- run: npm install
- run: npm run tauri build
- name: Build Tauri app
run: npm run tauri build
# --- macOS fix ---
- name: Prepare macOS app
if: matrix.os == 'macos-latest'
run: |
APP_PATH=$(find src-tauri/target/release/bundle/macos -name "*.app")
APP_NAME=$(basename "$APP_PATH" .app)
- name: Upload artifacts
uses: actions/upload-artifact@v4
xattr -cr "$APP_PATH"
codesign --deep --force --sign - "$APP_PATH"
ditto -c -k --keepParent "$APP_PATH" "$APP_NAME-macos.zip"
# --- Get release Tag ---
- name: Get release tag
id: get_tag
shell: bash
run: |
TAG="${{ inputs.tag }}"
if [ "${{ github.event_name }}" = "release" ]; then
TAG="${{ github.event.release.tag_name }}"
elif [ -z "$TAG" ]; then
TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
fi
echo "tag=$TAG" >> $GITHUB_OUTPUT
# --- Upload to release ---
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v2
with:
name: tauri-build-${{ matrix.os }}
path: |
src-tauri/target/release/bundle/**/!(node_modules)/
tag_name: ${{ steps.get_tag.outputs.tag }}
files: |
src-tauri/target/release/bundle/**/*.AppImage
src-tauri/target/release/bundle/**/*.dmg
src-tauri/target/release/bundle/**/*.msi
src-tauri/target/release/bundle/**/*.exe
src-tauri/target/release/bundle/**/*.deb
src-tauri/target/release/bundle/**/*.rpm
release:
name: Upload to GitHub Release
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Upload to Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.release.tag_name }}
files: artifacts/**/*
*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "saturn-launcher",
"productName": "Saturn Launcher",
"version": "0.1.3",
"identifier": "org.saturnclient.saturn-launcher",
"build": {