Skip to content

Commit

Permalink
add mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe committed Dec 7, 2023
1 parent 588b801 commit daab537
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 28 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ jobs:
path: ./renderer/dist
retention-days: 1

windows:
package:
needs: renderer
runs-on: windows-2019
strategy:
matrix:
os: [windows-2019, ubuntu-20.04, macos-11]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -49,25 +52,11 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Hash
if: ${{ startsWith(matrix.os, 'windows') }}
run: type .\main\dist\latest.yml

linux:
needs: renderer
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/download-artifact@v3
with:
name: renderer-dist
path: ./renderer/dist
- run: yarn --frozen-lockfile
working-directory: ./main
- run: yarn build
working-directory: ./main
- run: yarn package -p onTagOrDraft
working-directory: ./main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Hash
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: cat ./main/dist/latest-linux.yml
- name: Hash
if: ${{ startsWith(matrix.os, 'macos') }}
run: cat ./main/dist/latest-mac.yml
9 changes: 4 additions & 5 deletions main/electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ linux:
- "AppImage"
mac:
target:
- target: default
arch:
- universal
# MacOS apps can only be run on other systems if signed
forceCodeSigning: true
- target: "dmg"
arch:
- "universal"
identity: null
appImage:
executableArgs:
- "--sandbox"
2 changes: 1 addition & 1 deletion main/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "awakened-poe-trade",
"version": "3.22.10004",
"version": "3.22.10005",
"private": true,
"scripts": {
"dev": "node build/script.mjs",
Expand Down
2 changes: 1 addition & 1 deletion main/src/AppUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class AppUpdater {
// https://www.electron.build/configuration/nsis.html#portable
autoUpdater.autoDownload = !process.env.PORTABLE_EXECUTABLE_DIR

if (!autoUpdater.autoDownload) {
if (!autoUpdater.autoDownload || process.platform === 'darwin') {
this.noAutoUpdatesReason = 'not-supported'
} else if (process.argv.includes('--no-updates')) {
autoUpdater.autoDownload = false
Expand Down

0 comments on commit daab537

Please sign in to comment.