diff --git a/.circleci/config.yml b/.circleci/config.yml index c34a711..8a81219 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 \ No newline at end of file diff --git a/icons/dmgbg.png b/icons/dmgbg.png new file mode 100644 index 0000000..9e7b277 Binary files /dev/null and b/icons/dmgbg.png differ diff --git a/package.json b/package.json index cae4296..0303669 100644 --- a/package.json +++ b/package.json @@ -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" + } + ] } } }