mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
74 lines
1.9 KiB
YAML
74 lines
1.9 KiB
YAML
name: Build Linux x64 (Snap + AppImage)
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build_x64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- run: npm install
|
|
working-directory: simpliplay
|
|
|
|
# Build Snap and AppImage both
|
|
- run: npx electron-builder --linux --x64
|
|
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
|
|
with:
|
|
name: linux-x64-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:
|
|
#runs-on: ubuntu-24.04-arm
|
|
#env:
|
|
# SNAP_DESTRUCTIVE_MODE: "true"
|
|
#steps:
|
|
#- uses: actions/checkout@v4
|
|
#- uses: actions/setup-node@v4
|
|
#with:
|
|
#node-version: 22
|
|
|
|
#- run: npm install electron@37.2.1
|
|
#working-directory: simpliplay
|
|
|
|
#- run: sudo snap install snapcraft --classic
|
|
|
|
#- run: npx electron-builder --linux --arm64
|
|
#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
|
|
# with:
|
|
# name: linux-arm64-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
|