diff --git a/.github/actions/build-electron/action.yml b/.github/actions/build-electron/action.yml index 2c168c7ac..fb41ac392 100644 --- a/.github/actions/build-electron/action.yml +++ b/.github/actions/build-electron/action.yml @@ -11,6 +11,8 @@ inputs: extension: description: "Platform specific extensions to copy in the output: dmg, deb, rpm, exe, zip" required: true + forge_platform: + required: true runs: using: composite @@ -78,18 +80,9 @@ runs: APPLE_ID: ${{ env.APPLE_ID }} APPLE_ID_PASSWORD: ${{ env.APPLE_ID_PASSWORD }} run: | - # Map OS names to Electron Forge platform names - if [ "${{ inputs.os }}" = "macos" ]; then - PLATFORM="darwin" - elif [ "${{ inputs.os }}" = "windows" ]; then - PLATFORM="win32" - else - PLATFORM="${{ inputs.os }}" - fi - npm run electron-forge:make -- \ --arch=${{ inputs.arch }} \ - --platform=$PLATFORM + --platform=${{ inputs.forge_platform }} # Add DMG signing step - name: Sign DMG diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 0a2b88baa..eda9e3107 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -25,6 +25,7 @@ jobs: - name: windows image: windows-latest extension: [exe, zip] + forge_platform: win32 runs-on: ${{ matrix.os.image }} steps: - uses: actions/checkout@v4