mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
Update build-linux.yml
This commit is contained in:
parent
888dc500d0
commit
25be46f2c4
29
.github/workflows/build-linux.yml
vendored
29
.github/workflows/build-linux.yml
vendored
@ -14,15 +14,30 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
|
|
||||||
- run: npm install
|
- run: npm install
|
||||||
working-directory: simpliplay
|
working-directory: simpliplay
|
||||||
|
|
||||||
|
# Build Snap and AppImage both
|
||||||
- run: npx electron-builder --linux --x64
|
- run: npx electron-builder --linux --x64
|
||||||
working-directory: simpliplay
|
working-directory: simpliplay
|
||||||
|
|
||||||
|
# Zip the AppImage (assuming default output is .AppImage)
|
||||||
|
- run: zip -j simpliplay-x64-appimage.zip simpliplay/dist/*.AppImage
|
||||||
|
working-directory: simpliplay
|
||||||
|
|
||||||
|
# Upload Snap artifact
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux-x64-snap
|
name: linux-x64-snap
|
||||||
path: simpliplay/dist/*.snap
|
path: simpliplay/dist/*.snap
|
||||||
|
|
||||||
|
# Upload zipped AppImage artifact
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: linux-x64-appimage-zip
|
||||||
|
path: simpliplay/simpliplay-x64-appimage.zip
|
||||||
|
|
||||||
build_arm64:
|
build_arm64:
|
||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-24.04-arm
|
||||||
env:
|
env:
|
||||||
@ -32,13 +47,27 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
|
|
||||||
- run: npm install electron@37.2.1
|
- run: npm install electron@37.2.1
|
||||||
working-directory: simpliplay
|
working-directory: simpliplay
|
||||||
|
|
||||||
- run: sudo snap install snapcraft --classic
|
- run: sudo snap install snapcraft --classic
|
||||||
|
|
||||||
- run: npx electron-builder --linux --arm64
|
- run: npx electron-builder --linux --arm64
|
||||||
working-directory: simpliplay
|
working-directory: simpliplay
|
||||||
|
|
||||||
|
# Zip the ARM64 AppImage
|
||||||
|
- run: zip -j simpliplay-arm64-appimage.zip simpliplay/dist/*.AppImage
|
||||||
|
working-directory: simpliplay
|
||||||
|
|
||||||
|
# Upload Snap artifact
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux-arm64-snap
|
name: linux-arm64-snap
|
||||||
path: simpliplay/dist/*.snap
|
path: simpliplay/dist/*.snap
|
||||||
|
|
||||||
|
# Upload zipped AppImage artifact
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: linux-arm64-appimage-zip
|
||||||
|
path: simpliplay/simpliplay-arm64-appimage.zip
|
||||||
|
Loading…
Reference in New Issue
Block a user