Skip to content

Commit

Permalink
Revert for macos arm64 build to x64
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotoNomad0 committed Dec 6, 2024
1 parent c8c4801 commit 949f29a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -470,22 +470,22 @@ jobs:
echo "Building $APP_VERSION-$HASH"
npm run build-macos
# arm64
- name: Set arm64 MAX artifact name
run: echo "ARTIFACT_ARM64=$(echo "$APP_NAME-macos-arm64-$APP_VERSION-MAX-$HASH.dmg")" >> $GITHUB_ENV
# x64
- name: Set x64 MAX artifact name
run: echo "ARTIFACT_X64=$(echo "$APP_NAME-macos-x64-$APP_VERSION-MAX-$HASH.dmg")" >> $GITHUB_ENV

- name: Set arm64 LITE artifact name
- name: Set x64 LITE artifact name
if: ${{ env.TRIM == '1' }}
run: echo "ARTIFACT_ARM64=$(echo "$APP_NAME-macos-arm64-$APP_VERSION-LITE-$HASH.dmg")" >> $GITHUB_ENV
run: echo "ARTIFACT_X64=$(echo "$APP_NAME-macos-x64-$APP_VERSION-LITE-$HASH.dmg")" >> $GITHUB_ENV

- name: bundle arm64 macOS
run: ./node_modules/.bin/gulp release-macos-arm64 --out=artifacts/arm64/$ARTIFACT_ARM64
- name: bundle x64 macOS
run: ./node_modules/.bin/gulp release-macos --out=artifacts/x64/$ARTIFACT_X64

- uses: actions/upload-artifact@v4
name: Upload arm64 artifacts
name: Upload x64 artifacts
with:
name: ${{ env.ARTIFACT_ARM64 }}
path: artifacts/arm64/
name: ${{ env.ARTIFACT_X64 }}
path: artifacts/x64/

# universal build
- name: Set universal MAX artifact name
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"electronite-start": "electronite . ",
"electronite-start-logging": "electronite . --enable-logging",
"electronite-build": "electronite-packager ./build --out=dist --icon=src/images/icon.icns",
"electronite-build-macos": "electronite-packager ./build --out=dist --arch=universal,arm64 --icon=src/images/icon.icns",
"electronite-build-macos": "electronite-packager ./build --out=dist --arch=universal,x64 --icon=src/images/icon.icns",
"electronite-build-linux": "electronite-packager ./build --out=dist --arch=x64,arm64 --icon=src/images/icon.icns",
"electronite-build-win": "electronite-packager ./build --out=dist --arch=ia32,x64 --icon=src/images/icon.ico",
"react-start": "craco start",
Expand Down

0 comments on commit 949f29a

Please sign in to comment.