Skip to content

Commit 8ce365a

Browse files
committed
fix: update build workflow
1 parent c688414 commit 8ce365a

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

.github/workflows/build.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,8 @@ jobs:
1111
matrix:
1212
include:
1313
- os: ubuntu-latest
14-
arch: x64
15-
- os: ubuntu-latest
16-
arch: arm64
1714
- os: windows-latest
18-
arch: x64
19-
- os: macos-latest
20-
arch: x64
2115
- os: macos-latest
22-
arch: arm64
2316

2417
runs-on: ${{ matrix.os }}
2518

@@ -42,12 +35,12 @@ jobs:
4235
run: npm run build
4336

4437
- name: Package App
45-
run: npx electron-builder --publish never --${{ matrix.arch }}
38+
run: npx electron-builder --publish never --arm64 --x64
4639

4740
- name: Upload Artifacts
4841
uses: actions/upload-artifact@v4
4942
with:
50-
name: Artifacts-${{ runner.os }}-${{ matrix.arch }}
43+
name: Artifacts-${{ runner.os }}
5144
path: |
5245
release-builds/*.msi
5346
release-builds/*.zip

electron-builder.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
appId: "com.phlhar.stream-monitor"
22
productName: "Stream Monitor"
3+
artifactName: "${name}-${version}-${os}-${arch}.${ext}"
34
mac:
45
icon: "icon/icon.ico"
56
target: ["dmg", "zip"]

main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function createMainWindow() {
5656
height: 1080,
5757
webPreferences: {
5858
preload: path.join(__dirname, "preload.js"),
59-
devTools: !app.isPackaged,
59+
/* devTools: !app.isPackaged, */
6060
},
6161
});
6262

0 commit comments

Comments
 (0)