Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix(build): allow building from source without the updater signing key (#290)

Yahya Zekry94c05037b1fe
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9433d609..a3edcb1b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -64,6 +64,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
+ # `createUpdaterArtifacts` is `false` in the committed tauri.conf.json so
+ # that anyone building from source does not need the release signing key;
+ # re-enable it here, only for tagged releases.
+ TAURI_CONFIG: '{"bundle":{"createUpdaterArtifacts":true}}'
LDAI_UPDATE_INFORMATION: ${{ contains(matrix.platform, 'ubuntu') && 'gh-releases-zsync|tonhowtf|omniget|latest|*AppImage.zsync' || '' }}
NODE_OPTIONS: --max-old-space-size=6144
with:
diff --git a/package.json b/package.json
index 5cb05320..2299c812 100644
--- a/package.json
+++ b/package.json
@@ -86,5 +86,11 @@
"vite-plugin-top-level-await": "^1.5.0",
"vite-plugin-wasm": "^3.4.1",
"vitest": "^4.1.4"
+ },
+ "pnpm": {
+ "onlyBuiltDependencies": [
+ "@swc/core",
+ "esbuild"
+ ]
}
}
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index 550f4daf..c9635b8c 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -56,7 +56,7 @@
"bundle": {
"active": true,
"targets": "all",
- "createUpdaterArtifacts": true,
+ "createUpdaterArtifacts": false,
"resources": {
"../browser-extension/chrome/": "browser-extension/chrome/",
"../browser-extension/firefox/": "browser-extension/firefox/"