Skip to content

fix(launcher): on linux #165

fix(launcher): on linux

fix(launcher): on linux #165

Workflow file for this run

name: build
on:
push:
branches:
- testing
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
VITE_TWITCH_CLIENT_ID: ${{ secrets.VITE_TWITCH_CLIENT_ID }}
VITE_TWITCH_CLIENT_SECRET: ${{ secrets.VITE_TWITCH_CLIENT_SECRET }}
VITE_ITAD_API_KEY: ${{ secrets.VITE_ITAD_API_KEY }}
VITE_STEAMGRIDDB_API_KEY: ${{ secrets.VITE_STEAMGRIDDB_API_KEY }}
VITE_RD_CLIENT_ID: ${{ secrets.VITE_RD_CLIENT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- name: Install dependencies
run: yarn install
- name: Build on Linux
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libarchive-tools fakeroot dpkg snapd flatpak flatpak-builder rpm
sudo ln -s /snap/bin/snapcraft /usr/local/bin/snapcraft
sudo snap install snapcraft --classic
yarn run prebuild && yarn run build:linux
- name: Build on Windows
if: matrix.os == 'windows-latest'
run: yarn run prebuild && yarn run build:win
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}
path: |
release/**
dist/**
dist-electron/**