Fix desktop packaging artifact build

This commit is contained in:
th committed 2026-06-07 11:08:15 +02:00
1 parent ba58ebb48d
commit 7bf18636d6
3 files changed
+12 -6

No files matched your search

+6 -4
View File
@@ -60,13 +60,15 @@ same Vite-built app from `dist/` plus the compiled Electron entry points in
```bash ```bash
npm install npm install
npm run desktop:dev # start Vite, then launch Electron against localhost npm run desktop:dev # start Vite, then launch Electron against localhost
npm run desktop:pack # build an unpacked desktop app into release/ npm run desktop:dir # build an unpacked desktop app into release/
npm run desktop:pack # build platform package artifacts into release/
npm run desktop:build # build platform installer/package artifacts into release/ npm run desktop:build # build platform installer/package artifacts into release/
``` ```
`desktop:pack` is the quickest compile check because it produces an unpacked `desktop:dir` is the quickest compile check because it produces an unpacked app
app without creating an installer. `desktop:build` uses `electron-builder` and without creating an installer. `desktop:pack` and `desktop:build` use
targets AppImage on Linux, NSIS on Windows, and DMG on macOS. `electron-builder` and target AppImage on Linux, NSIS on Windows, and DMG on
macOS.
Desktop MP4 export runs inside Electron and uses ffmpeg from Desktop MP4 export runs inside Electron and uses ffmpeg from
`resources/bin/<platform>/` in packaged builds. The build scripts run `resources/bin/<platform>/` in packaged builds. The build scripts run
+3 -2
View File
@@ -10,7 +10,8 @@
"desktop:dev": "concurrently -k \"vite\" \"wait-on http://localhost:5200 && npm run desktop:start\"", "desktop:dev": "concurrently -k \"vite\" \"wait-on http://localhost:5200 && npm run desktop:start\"",
"desktop:start": "tsc -p tsconfig.electron.json && electron .", "desktop:start": "tsc -p tsconfig.electron.json && electron .",
"desktop:build": "npm run build && tsc -p tsconfig.electron.json && npm run stage:ffmpeg -- --optional && electron-builder", "desktop:build": "npm run build && tsc -p tsconfig.electron.json && npm run stage:ffmpeg -- --optional && electron-builder",
"desktop:pack": "npm run build && tsc -p tsconfig.electron.json && npm run stage:ffmpeg -- --optional && electron-builder --dir", "desktop:pack": "npm run build && tsc -p tsconfig.electron.json && npm run stage:ffmpeg -- --optional && electron-builder",
"desktop:dir": "npm run build && tsc -p tsconfig.electron.json && npm run stage:ffmpeg -- --optional && electron-builder --dir",
"preview": "vite preview", "preview": "vite preview",
"type-check": "vue-tsc --noEmit", "type-check": "vue-tsc --noEmit",
"pack": "bash scripts/pack.sh", "pack": "bash scripts/pack.sh",
@@ -45,7 +46,7 @@
"appId": "app.ruwio.desktop", "appId": "app.ruwio.desktop",
"productName": "RUWIO", "productName": "RUWIO",
"icon": "icon.png", "icon": "icon.png",
"npmRebuild": false, "beforeBuild": "scripts/electron-before-build.cjs",
"directories": { "directories": {
"output": "release" "output": "release"
}, },
+3
View File
@@ -0,0 +1,3 @@
module.exports = async function beforeBuild() {
return false
}