mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
Update compile-electron.yml
This commit is contained in:
parent
cd45e349ae
commit
34e790de46
23
.github/workflows/compile-electron.yml
vendored
23
.github/workflows/compile-electron.yml
vendored
@ -30,8 +30,11 @@ jobs:
|
||||
target: nsis
|
||||
arch: x64
|
||||
- os: windows-latest
|
||||
target: nsis
|
||||
arch: arm64
|
||||
target: msi
|
||||
arch: x64
|
||||
- os: windows-latest
|
||||
target: msi
|
||||
arch: arm64 # Replaces zip with MSI for ARM64
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
@ -46,24 +49,26 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
working-directory: ./simpliplay # Install dependencies in the correct directory
|
||||
|
||||
- name: Build Electron app
|
||||
run: npm run build
|
||||
working-directory: ./simpliplay # Build the app from the correct directory
|
||||
|
||||
- name: Package Electron app
|
||||
run: |
|
||||
npx electron-builder --${{ matrix.target }} --arch ${{ matrix.arch }}
|
||||
npx electron-builder --${{ matrix.target }} --arch ${{ matrix.arch }} --projectDir ./simpliplay
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: simpliplay-${{ matrix.os }}-${{ matrix.arch }}
|
||||
name: Electron-App-${{ matrix.os }}-${{ matrix.arch }}
|
||||
path: |
|
||||
dist/*.AppImage
|
||||
dist/*.dmg
|
||||
dist/*.zip
|
||||
dist/*.exe
|
||||
dist/*.msi
|
||||
simpliplay/dist/*.AppImage
|
||||
simpliplay/dist/*.dmg
|
||||
simpliplay/dist/*.zip
|
||||
simpliplay/dist/*.exe
|
||||
simpliplay/dist/*.msi
|
||||
if-no-files-found: error
|
||||
|
Loading…
Reference in New Issue
Block a user