ci: add macos (#8)

This commit is contained in:
2023-12-25 17:11:57 +01:00
committed by GitHub
parent 81996728cd
commit ffb7ba0a34
3 changed files with 43 additions and 1 deletions

View File

@@ -19,9 +19,20 @@ jobs:
- run: yarn
- run: yarn build-electron-linux
- run: mkdir /tmp/artifacts
- run: mv -t /tmp/artifacts dist/*.snap dist/*.AppImage
- run: mv -t /tmp/artifacts dist/*.AppImage
- store_artifacts:
path: /tmp/artifacts
build_macos:
macos:
xcode: 14.2.0
steps:
- checkout
- run: yarn
- run: yarn build-electron-mac
- run: mkdir /tmp/artifacts
- run: mv dist/*.dmg /tmp/artifacts
- store_artifacts:
path: /tmp/artifacts
workflows:
build:
@@ -34,3 +45,6 @@ workflows:
- build_linux:
requires:
- hold
- build_macos:
requires:
- hold

BIN
icons/dmgbg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@@ -49,6 +49,8 @@
"vite": "^4.4.0"
},
"build": {
"appId": "dev.sern.gui",
"productName": "sern GUI",
"files": [
"./build/**/*",
"./dist/index.js"
@@ -59,6 +61,32 @@
"win": {
"icon": "./icons/icon.ico",
"publisherName": "sern"
},
"mac": {
"icon": "./icons/icon.icns",
"category": "public.app-category.developer-tools",
"target": [
"dmg",
"zip"
]
},
"dmg": {
"background": "./icons/dmgbg.png",
"icon": "./icons/icon.icns",
"title": "sern GUI",
"contents": [
{
"x": 423,
"y": 203,
"type": "link",
"path": "/Applications"
},
{
"x": 117,
"y": 203,
"type": "file"
}
]
}
}
}