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.

:bug: update pnpm single app

Tw93558fa15d24eb
diff --git a/.github/workflows/single-app.yaml b/.github/workflows/single-app.yaml
index 1709adeb..2e9eabfe 100644
--- a/.github/workflows/single-app.yaml
+++ b/.github/workflows/single-app.yaml
@@ -132,7 +132,7 @@ jobs:
if: matrix.os == 'macos-latest'
timeout-minutes: 20
run: |
- pnpm run tauri build -- --target universal-apple-darwin
+ pnpm run build:mac
mkdir -p output/macos
mv src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg output/macos/"${{inputs.title}}".dmg
@@ -140,9 +140,16 @@ jobs:
if: matrix.os == 'windows-latest'
timeout-minutes: 15
run: |
- pnpm run tauri build -- --target x86_64-pc-windows-msvc
- New-Item -Path "output\windows" -ItemType Directory
- Move-Item -Path "src-tauri\target\x86_64-pc-windows-msvc\release\bundle\msi\*.msi" -Destination "output\windows\${{inputs.title}}_x64.msi"
+ pnpm run build
+ New-Item -Path "output\windows" -ItemType Directory -Force
+ $msiFiles = Get-ChildItem -Path "src-tauri\target\release\bundle\msi\*.msi" -ErrorAction SilentlyContinue
+ if ($msiFiles) {
+ Move-Item -Path $msiFiles[0].FullName -Destination "output\windows\${{inputs.title}}_x64.msi"
+ } else {
+ Write-Error "No MSI files found at: src-tauri\target\release\bundle\msi\"
+ Get-ChildItem -Path "src-tauri\target\" -Recurse -Name "*.msi" | Write-Host
+ exit 1
+ }
git checkout -- src-tauri/Cargo.lock
- name: Rust cache store