fix(ci): add universal sidecar for macOS; disable MSI due to WiX sidecar size issue

This commit is contained in:
小鱼开发
2026-05-18 17:26:12 +08:00
parent 9cdb04cbb5
commit 61074d637d
2 changed files with 13 additions and 2 deletions
+12 -1
View File
@@ -35,6 +35,18 @@ jobs:
gh release download v0.0.0-sidecar --repo fun0/meijiaka-zy --pattern "sidecar-binaries.tar.gz" --dir /tmp
tar xzf /tmp/sidecar-binaries.tar.gz -C tauri-app/src-tauri/binaries/
chmod +x tauri-app/src-tauri/binaries/ffmpeg-* tauri-app/src-tauri/binaries/ffprobe-*
# Create universal binary for macOS universal-apple-darwin target
# by combining aarch64 and x86_64 binaries with lipo
if [ -f tauri-app/src-tauri/binaries/ffmpeg-aarch64-apple-darwin ] && [ -f tauri-app/src-tauri/binaries/ffmpeg-x86_64-apple-darwin ]; then
lipo -create \
tauri-app/src-tauri/binaries/ffmpeg-aarch64-apple-darwin \
tauri-app/src-tauri/binaries/ffmpeg-x86_64-apple-darwin \
-output tauri-app/src-tauri/binaries/ffmpeg-universal-apple-darwin
lipo -create \
tauri-app/src-tauri/binaries/ffprobe-aarch64-apple-darwin \
tauri-app/src-tauri/binaries/ffprobe-x86_64-apple-darwin \
-output tauri-app/src-tauri/binaries/ffprobe-universal-apple-darwin
fi
env:
GH_TOKEN: ${{ github.token }}
@@ -101,4 +113,3 @@ jobs:
name: windows-x64
path: |
tauri-app/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis/*.exe
tauri-app/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/msi/*.msi
+1 -1
View File
@@ -49,7 +49,7 @@
},
"bundle": {
"active": true,
"targets": "all",
"targets": ["nsis", "dmg", "app"],
"externalBin": [
"binaries/ffmpeg",
"binaries/ffprobe"