Skip to content

Commit

Permalink
Attempt to get electron builder creating release assets correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Warren Buckley committed Feb 11, 2022
1 parent c7a1004 commit 45fb952
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ jobs:
working-directory: LogViewer.Client
run: tsc --diagnostics true

- name: Build electron apps Setup.exe & Windows-Store.appx & portable.exe
- name: Build electron apps Setup.exe & Windows-Store.appx
working-directory: LogViewer.Client
run: npm run win

- name: Electron Builder Publish (Adds assets to draft release)
working-directory: LogViewer.Client
run: npm run publish

- name: Upload Windows-Store.appx
uses: actions/upload-artifact@v2
with:
Expand All @@ -89,8 +93,3 @@ jobs:
name: Compact.Log.Viewer.Setup.exe
path: output/Compact.Log.Viewer.Setup.*.exe

- name: Upload Portable.exe
uses: actions/upload-artifact@v2
with:
name: Compact.Log.Viewer.Portable.exe
path: output/Compact.Log.Viewer.Portable.*.exe
3 changes: 2 additions & 1 deletion LogViewer.Client/electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"nsis",
"appx"
],
"icon": "logo.png"
"icon": "logo.png",
"publish": ["github"]
},
"mac": {
"category": "public.app-category.developer-tools",
Expand Down
3 changes: 2 additions & 1 deletion LogViewer.Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"tsc": "tsc --diagnostics",
"watch": "tsc --watch",
"win": "electron-builder --win --config ./electron-builder.json",
"mac": "electron-builder --mac --config electron-builder.json"
"mac": "electron-builder --mac --config electron-builder.json",
"publish": "electron-builder --config electron-builder.json --publish onTagOrDraft"
},
"author": "Warren Buckley",
"license": "ISC",
Expand Down

0 comments on commit 45fb952

Please sign in to comment.