chore: add sidecar binary download step to GitHub Actions workflow
This commit is contained in:
@@ -29,6 +29,14 @@ jobs:
|
||||
with:
|
||||
targets: x86_64-apple-darwin,aarch64-apple-darwin
|
||||
|
||||
- name: Download sidecar binaries
|
||||
run: |
|
||||
mkdir -p tauri-app/src-tauri/binaries
|
||||
curl -L -o /tmp/sidecar-binaries.tar.gz \
|
||||
https://github.com/fun0/meijiaka-zy/releases/download/v0.0.0-sidecar/sidecar-binaries.tar.gz
|
||||
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-*
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: tauri-app
|
||||
run: npm ci
|
||||
@@ -65,6 +73,14 @@ jobs:
|
||||
with:
|
||||
targets: x86_64-pc-windows-msvc
|
||||
|
||||
- name: Download sidecar binaries
|
||||
shell: pwsh
|
||||
run: |
|
||||
New-Item -ItemType Directory -Force -Path tauri-app/src-tauri/binaries
|
||||
curl -L -o $env:TEMP\sidecar-binaries.tar.gz `
|
||||
https://github.com/fun0/meijiaka-zy/releases/download/v0.0.0-sidecar/sidecar-binaries.tar.gz
|
||||
tar xzf $env:TEMP\sidecar-binaries.tar.gz -C tauri-app/src-tauri/binaries/
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: tauri-app
|
||||
run: npm ci
|
||||
|
||||
Reference in New Issue
Block a user