Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-fiscaletti committed Apr 18, 2024
1 parent 9c4a72f commit 3f3acd2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/package_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,31 @@ jobs:
- name: Install Dependencies
run: npm install
# Build the project
- name: Package for MacOS
run: npm run electron:package:mac
- name: Package for MacOS (x64)
run: npm run electron:package:mac:x64
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# Rename the release artifact
- name: Rename Artifact
run: mv dist/FrameCast-*.dmg dist/FrameCast.Setup.darwin_x64.dmg
- name: Rename Artifact Blockmap
run: mv dist/FrameCast-*.dmg.blockmap dist/FrameCast.Setup.darwin_x64.dmg.blockmap
# Build the project
- name: Package for MacOS (arm64)
run: npm run electron:package:mac:arm64
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# Rename the release artifact
- name: Rename Artifact
run: mv dist/FrameCast-*.dmg dist/FrameCast.Setup.darwin_arm64.dmg
- name: Rename Artifact Blockmap
run: mv dist/FrameCast-*.dmg.blockmap dist/FrameCast.Setup.darwin_arm64.dmg.blockmap
# Upload the release artifact
- name: Upload Artifacts
uses: softprops/action-gh-release@v2
with:
files: |
dist/FrameCast.Setup.darwin_x64.dmg
dist/FrameCast.Setup.darwin_x64.dmg.blockmap
dist/FrameCast.Setup.darwin_x64.dmg.blockmap
dist/FrameCast.Setup.darwin_arm64.dmg
dist/FrameCast.Setup.darwin_arm64.dmg.blockmap
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"electron:start": "concurrently -k \"cross-env BROWSER=none npm run start\" \"wait-on http://127.0.0.1:3000 && electronmon .\"",
"electron:package:mac": "npm run build && electron-builder -m -c.extraMetadata.main=build/electron.js",
"electron:package:mac:x64": "npm run build && electron-builder -m --x64 -c.extraMetadata.main=build/electron.js",
"electron:package:mac:arm64": "npm run build && electron-builder -m --arm64 -c.extraMetadata.main=build/electron.js",
"electron:package:win": "npm run build && electron-builder -w -c.extraMetadata.main=build/electron.js",
"electron:package:linux": "npm run build && electron-builder -l -c.extraMetadata.main=build/electron.js"
},
Expand Down

0 comments on commit 3f3acd2

Please sign in to comment.