Skip to content

[UI] Cleanup App and Game Settings #3294

[UI] Cleanup App and Game Settings

[UI] Cleanup App and Game Settings #3294

Workflow file for this run

name: Linux Flatpak and Tar.xz builds
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
version:
description: 'Build Flatpak Files'
required: false
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
RUDDERSTACK_CLIENT_ID: ${{ secrets.RUDDERSTACK_CLIENT_ID }}
jobs:
flatpak:
name: 'Flatpak Build'
runs-on: ubuntu-latest
concurrency:
group: flatpak-${{ github.ref }}
cancel-in-progress: true
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-22.08
options: --privileged
steps:
- name: install libnss, libatk, libatk-bridge, libcups, libgtk-3
run: sudo dnf install nss-tools atk-devel at-spi2-atk-devel cups-devel gtk3-devel -y
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: install yarn
run: npm install --global yarn
- name: setup env production file
run: echo "VITE_LD_ENVIRONMENT_ID=${{ secrets.VITE_LD_ENVIRONMENT_ID_TEST }}" > .env
- name: Install modules.
run: yarn setup
- name: Build artifacts.
run: yarn dist:linux:ci:flatpak
- name: Clean up build files to save space
run: rm -rf build dist/linux-unpacked node_modules public/bin/win32 public/bin/darwin ~/.cache
- name: Install Axios
run: yarn add axios
- name: Prepare Flatpak
run: yarn flatpak:prepare
- name: Build Flatpak
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: hyperplay.flatpak
manifest-path: flatpak-build/xyz.hyperplay.HyperPlay.yml
cache-key: flatpak-builder-${{ github.sha }}
- name: Upload tar xz
uses: actions/upload-artifact@v3
with:
name: linux-tar-xz
path: dist/hyperplay*.tar.xz
retention-days: 14