Skip to content

Commit

Permalink
Revert "feat: support macOS arm arch"
Browse files Browse the repository at this point in the history
This reverts commit 8b30813.
  • Loading branch information
FrancescoBorzi committed Nov 13, 2024
1 parent eb56be4 commit 2c2bf18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
build-on-mac:
needs: get-package-version
name: Build and upload the Mac release assets
runs-on: macos-14
runs-on: macos-13
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -83,10 +83,8 @@ jobs:
run: |
npm install
npm run electron:mac
mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}.dmg" ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg
zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC-x64.dmg.zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg
mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}-arm64.dmg" ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg
zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg.zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg
mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}.dmg" ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC.dmg
zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC.dmg.zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC.dmg
rm -rf release
rm -rf *.yml
rm -rf *.blockmap
Expand All @@ -104,9 +102,7 @@ jobs:
release_name: ${{needs.get-package-version.outputs.version}}
draft: true
prerelease: false
files: |
${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC-x64.dmg.zip
${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC-arm64.dmg.zip
files: ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC.dmg.zip

build-on-windows:
needs: get-package-version
Expand Down
7 changes: 1 addition & 6 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@
},
"mac": {
"icon": "dist/browser",
"target": [
{
"target": "default",
"arch": ["x64", "arm64"]
}
]
"target": ["dmg"]
},
"linux": {
"icon": "dist/browser",
Expand Down

0 comments on commit 2c2bf18

Please sign in to comment.