diff --git a/.github/workflows/release-desktop-app.yml b/.github/workflows/release-desktop-app.yml index da77b8ebdaf85..d4949dba28d25 100644 --- a/.github/workflows/release-desktop-app.yml +++ b/.github/workflows/release-desktop-app.yml @@ -92,6 +92,7 @@ jobs: - { os: macos-latest, platform: macos, arch: x64 } - { os: macos-latest, platform: macos, arch: arm64 } - { os: ubuntu-latest, platform: linux, arch: x64 } + - { os: ubuntu-latest, platform: linux, arch: aarch64 } - { os: windows-latest, platform: windows, arch: x64 } runs-on: ${{ matrix.spec.os }} needs: before-make @@ -139,8 +140,14 @@ jobs: mv apps/electron/out/*/make/squirrel.windows/x64/*.msi ./builds/affine-${{ env.BUILD_TYPE }}-windows-x64.msi mv apps/electron/out/*/make/squirrel.windows/x64/*.nupkg ./builds/affine-${{ env.BUILD_TYPE }}-windows-x64.nupkg + - name: Save artifacts (linux arm64) + if: ${{ matrix.spec.platform == 'linux' && matrix.spec.arch == 'aarch64' }} + run: | + mkdir -p builds + mv apps/electron/out/*/make/zip/linux/arm64/*.zip ./builds/affine-${{ env.BUILD_TYPE }}-linux-arm64.zip + - name: Save artifacts (linux) - if: ${{ matrix.spec.platform == 'linux' }} + if: ${{ matrix.spec.platform == 'linux' && matrix.spec.arch == 'x64' }} run: | mkdir -p builds mv apps/electron/out/*/make/zip/linux/x64/*.zip ./builds/affine-${{ env.BUILD_TYPE }}-linux-x64.zip diff --git a/apps/electron/package.json b/apps/electron/package.json index 6b2c141162f60..7f863c4ac4a68 100644 --- a/apps/electron/package.json +++ b/apps/electron/package.json @@ -19,6 +19,7 @@ "make-macos-x64": "electron-forge make --platform=darwin --arch=x64", "make-windows-x64": "electron-forge make --platform=win32 --arch=x64", "make-linux-x64": "electron-forge make --platform=linux --arch=x64", + "make-linux-aarch64": "electron-forge make --platform=linux --arch=arm64", "rebuild:for-test": "yarn rebuild better-sqlite3", "rebuild:for-electron": "yarn electron-rebuild", "test": "playwright test"