Skip to content

Commit

Permalink
ci: build and upload snap package on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioislima committed Oct 12, 2023
1 parent 1e50a96 commit d933074
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build-prs-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install modules.
run: yarn install --frozen-lockfile
- name: Build artifacts.
run: yarn dist:linux appimage --publish=never
run: yarn dist:linux appimage snap --publish=never
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
Expand All @@ -37,3 +37,9 @@ jobs:
name: linux-appimage
path: dist/Heroic-*.AppImage
retention-days: 14
- name: Upload Snap.
uses: actions/upload-artifact@v3
with:
name: linux-snap
path: dist/*.snap
retention-days: 14
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,19 @@
]
},
"snap": {
"base": "core20",
"base": "core22",
"confinement": "strict",
"grade": "stable",
"category": "Games",
"synopsis": "An Open Source Launcher for GOG, Amazon and Epic Games",
"description": "Heroic is an Open Source Games Launcher. Right now it supports launching games from the Epic Games Store using Legendary and GOG Games using our custom implementation with gogdl.",
"description": "Heroic is an Open Source Games Launcher. Right now it supports launching games from the Epic Games Store using Legendary, Amazon Games using Nile and GOG Games using our custom implementations Nile and gogdl.",
"stagePackages": [
"default",
"curl",
"mangohud",
"gamemode",
"gamescope"
],
"plugs": [
"default",
{
Expand Down Expand Up @@ -228,7 +237,7 @@
"release:win": "vite build && electron-builder -p always --win portable --x64",
"release:updateFlathub:ci": "tsc flathub/update-flathub.ts --skipLibCheck --target es2015 --moduleResolution node --module commonjs && node flathub/update-flathub.js",
"sign:win": "vite build && electron-builder -p never --win nsis --x64",
"dist:linux": "vite build && electron-builder --linux",
"dist:linux": "export SNAP_DESTRUCTIVE_MODE=true && vite build && electron-builder --linux",
"dist:mac": "export CSC_IDENTITY_AUTO_DISCOVERY=false && vite build && electron-builder --mac",
"dist:win": "vite build && electron-builder --win",
"dist:flatpak": "yarn dist:linux appimage && yarn flatpak:prepare && yarn flatpak:build",
Expand Down

0 comments on commit d933074

Please sign in to comment.