Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/desktop-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ jobs:
mkdir -p dist
echo '<!doctype html><title>stub</title>' > dist/index.html

# externalBin ("bin/ffmpeg") is validated at compile time by tauri-build;
# an empty file is enough for `cargo check` — we never execute it here.
- name: Stub ffmpeg sidecar
shell: bash
run: |
mkdir -p src-tauri/bin
TRIPLE=$(rustc -vV | sed -n 's/host: //p')
EXT=""; [ "${{ runner.os }}" = "Windows" ] && EXT=".exe"
: > "src-tauri/bin/ffmpeg-${TRIPLE}${EXT}"

- name: cargo check (all targets)
working-directory: src-tauri
run: cargo check --all-targets
4 changes: 3 additions & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"version": "1.0.0-beta.2",
"identifier": "com.goodwebtools.app",
"build": {
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm run download:ffmpeg",
"beforeBuildCommand": "npm run download:ffmpeg && npm run build",
"frontendDist": "../dist",
"devUrl": "http://localhost:4321"
},
Expand Down Expand Up @@ -78,6 +79,7 @@
"bundle": {
"active": true,
"createUpdaterArtifacts": true,
"externalBin": ["bin/ffmpeg"],
"targets": ["nsis", "app", "dmg", "deb"],
"resources": [],
"category": "Utility",
Expand Down
Loading