Skip to content

Commit

Permalink
ci: add macos (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 authored Dec 25, 2023
1 parent 8199672 commit ffb7ba0
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -34,3 +45,6 @@ workflows:
- build_linux:
requires:
- hold
- build_macos:
requires:
- hold
Binary file added icons/dmgbg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"vite": "^4.4.0"
},
"build": {
"appId": "dev.sern.gui",
"productName": "sern GUI",
"files": [
"./build/**/*",
"./dist/index.js"
Expand All @@ -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"
}
]
}
}
}

0 comments on commit ffb7ba0

Please sign in to comment.