Skip to content

Commit

Permalink
Update build for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed May 26, 2024
1 parent 5df0fb3 commit 25bca8c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ jobs:
asset_path: ./client/bin/Posthoc-darwin-arm64.zip
asset_name: Posthoc-darwin-arm64.zip
asset_content_type: application/zip
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./client/bin/Posthoc-darwin-x64.zip
asset_name: Posthoc-darwin-x64.zip
asset_content_type: application/zip
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
Expand Down
2 changes: 2 additions & 0 deletions client/package.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
npx electron-packager . Posthoc --dir dist --platform=win32 --arch=x64 --electronVersion=26.2.1 --ignore node_modules --ignore src --overwrite --icon ./dist/favicon --out bin
npx electron-packager . Posthoc --dir dist --platform=linux --arch=x64 --electronVersion=26.2.1 --ignore node_modules --ignore src --overwrite --icon ./dist/favicon --out bin
npx electron-packager . Posthoc --dir dist --platform=darwin --arch=arm64 --electronVersion=26.2.1 --ignore node_modules --ignore src --overwrite --icon ./dist/favicon --out bin
npx electron-packager . Posthoc --dir dist --platform=darwin --arch=x64 --electronVersion=26.2.1 --ignore node_modules --ignore src --overwrite --icon ./dist/favicon --out bin

cd bin

zip -r Posthoc-linux-x64.zip Posthoc-linux-x64
zip -r Posthoc-win32-x64.zip Posthoc-win32-x64
zip -r Posthoc-darwin-arm64.zip Posthoc-darwin-arm64
zip -r Posthoc-darwin-x64.zip Posthoc-darwin-x64

0 comments on commit 25bca8c

Please sign in to comment.