Skip to content

Commit eb07abf

Browse files
committed
fix: Build updater artifacts only in CI/CD context.
1 parent 8a8c423 commit eb07abf

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: cargo test --manifest-path src-tauri/Cargo.toml
6565

6666
- name: Build (release)
67-
run: npm run tauri build -- --bundles deb,appimage,rpm
67+
run: npm run tauri build -- --config '{"bundle":{"createUpdaterArtifacts":true}}' --bundles deb,appimage,rpm
6868
env:
6969
CI: true
7070

@@ -114,7 +114,7 @@ jobs:
114114
run: npx svelte-kit sync
115115

116116
- name: Build (release, universal binary)
117-
run: npm run tauri build -- --bundles dmg --target universal-apple-darwin
117+
run: npm run tauri build -- --config '{"bundle":{"createUpdaterArtifacts":true}}' --bundles dmg --target universal-apple-darwin
118118
env:
119119
CI: true
120120

@@ -159,7 +159,7 @@ jobs:
159159
run: npx svelte-kit sync
160160

161161
- name: Build (release)
162-
run: npm run tauri build -- --bundles nsis
162+
run: npm run tauri build -- --config '{"bundle":{"createUpdaterArtifacts":true}}' --bundles nsis
163163
env:
164164
CI: true
165165

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
run: echo "$GPG_PRIVATE_KEY" | gpg --batch --import
107107

108108
- name: Build (release)
109-
run: npm run tauri build -- --bundles deb,appimage,rpm
109+
run: npm run tauri build -- --config '{"bundle":{"createUpdaterArtifacts":true}}' --bundles deb,appimage,rpm
110110
env:
111111
CI: true
112112

@@ -177,7 +177,7 @@ jobs:
177177
run: npx svelte-kit sync
178178

179179
- name: Build (release, universal binary)
180-
run: npm run tauri build -- --bundles app,dmg --target universal-apple-darwin
180+
run: npm run tauri build -- --config '{"bundle":{"createUpdaterArtifacts":true}}' --bundles app,dmg --target universal-apple-darwin
181181
env:
182182
CI: true
183183

@@ -231,7 +231,7 @@ jobs:
231231
run: npx svelte-kit sync
232232

233233
- name: Build (release)
234-
run: npm run tauri build -- --bundles nsis
234+
run: npm run tauri build -- --config '{"bundle":{"createUpdaterArtifacts":true}}' --bundles nsis
235235
env:
236236
CI: true
237237

src-tauri/tauri.conf.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
},
4040
"bundle": {
4141
"active": true,
42-
"createUpdaterArtifacts": true,
4342
"targets": "all",
4443
"icon": [
4544
"icons/32x32.png",

0 commit comments

Comments
 (0)