Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

ci: Add macOS DMG ad-hoc signing and usage instructions, define Node/PNPM versions, expand `setup-mold` action scope, remove icon copying, and refine auto-format status display.

Tw933df1874f8882
diff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yaml
index 32d826b3..44cd55b5 100644
--- a/.github/workflows/pake-cli.yaml
+++ b/.github/workflows/pake-cli.yaml
@@ -128,7 +128,7 @@ jobs:
ARGS="$ARGS --targets ${{ inputs.targets }}"
fi
- echo "🔧 Running: node dist/cli.js $ARGS"
+ echo "Running: node dist/cli.js $ARGS"
node dist/cli.js $ARGS
mkdir -p output
@@ -136,8 +136,23 @@ jobs:
# Move generated packages to output directory
if [ "${{ runner.os }}" == "macOS" ]; then
if [ -f "${{ inputs.name }}.dmg" ]; then
+ # Ad-hoc sign the DMG to reduce quarantine issues
+ echo "Signing DMG file..."
+ codesign --force --sign - "${{ inputs.name }}.dmg"
+
mv "${{ inputs.name }}.dmg" output/
fi
+
+ # Create usage instructions for Artifacts downloads
+ cat > output/README.txt << 'EOF'
+ Important: If you downloaded this from GitHub Actions Artifacts
+
+ If the DMG shows a "damaged" error, run this in Terminal:
+
+ xattr -cr /path/to/downloaded.dmg
+
+ Then open the DMG file normally.
+ EOF
elif [ "${{ runner.os }}" == "Linux" ]; then
if [ -f "${{ inputs.name }}.deb" ]; then
mv "${{ inputs.name }}.deb" output/
@@ -147,11 +162,6 @@ jobs:
fi
fi
- # Copy icon if exists
- if [ -f "src-tauri/png/${{ inputs.name }}_512.png" ]; then
- cp "src-tauri/png/${{ inputs.name }}_512.png" output/
- fi
-
- name: Build App (Windows)
if: runner.os == 'Windows'
timeout-minutes: 25
@@ -179,7 +189,7 @@ jobs:
$args += "--hide-title-bar"
}
- Write-Host "🔧 Running: node dist/cli.js $($args -join ' ')"
+ Write-Host "Running: node dist/cli.js $($args -join ' ')"
node dist/cli.js $args
New-Item -Path "output" -ItemType Directory -Force
@@ -189,11 +199,6 @@ jobs:
Move-Item -Path "${{ inputs.name }}.msi" -Destination "output/"
}
- # Copy icon if exists
- if (Test-Path "src-tauri\png\${{ inputs.name }}_512.png") {
- Copy-Item -Path "src-tauri\png\${{ inputs.name }}_512.png" -Destination "output\"
- }
-
git checkout -- src-tauri/Cargo.lock
- name: Upload Artifacts
diff --git a/.github/workflows/quality-and-test.yml b/.github/workflows/quality-and-test.yml
index 694de0d3..d92a485e 100644
--- a/.github/workflows/quality-and-test.yml
+++ b/.github/workflows/quality-and-test.yml
@@ -78,7 +78,6 @@ jobs:
run: rustup component add rustfmt clippy
- uses: rui314/setup-mold@v1
- if: matrix.os == 'ubuntu-latest'
- name: Cache cargo-hack
uses: actions/cache@v4
@@ -148,7 +147,7 @@ jobs:
echo ""
echo "| Check | Status |"
echo "|-------|--------|"
- echo "| Auto Formatting | ${{ needs.auto-format.result == 'success' && 'PASSED' || 'FAILED' }} |"
+ echo "| Auto Formatting | ${{ needs.auto-format.result == 'success' && 'PASSED' || needs.auto-format.result == 'skipped' && 'SKIPPED' || 'FAILED' }} |"
echo "| Rust Quality | ${{ needs.rust-quality.result == 'success' && 'PASSED' || 'FAILED' }} |"
echo "| CLI & Build Validation | ${{ needs.validation.result == 'success' && 'PASSED' || 'FAILED' }} |"
} >> $GITHUB_STEP_SUMMARY
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 64120e68..bf0ed6e9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -16,6 +16,8 @@ on:
default: false
env:
+ NODE_VERSION: "22"
+ PNPM_VERSION: "10.26.2"
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}