Updated flatpak build script (#467)

This commit is contained in:
SuperSonic16 2025-02-27 04:22:29 +11:00 committed by GitHub
parent 999fa2af61
commit 716200e7df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 30 deletions

View file

@ -14,30 +14,33 @@ jobs:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
steps: steps:
- name: Checkout repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
token: ${{ secrets.ORG_TOKEN }} token: ${{ secrets.ORG_TOKEN }}
- name: Checkout private repository - name: Checkout Private Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: ${{ secrets.ASSET_REPO }} repository: ${{ secrets.ASSET_REPO }}
token: ${{ secrets.ASSET_REPO_TOKEN }} token: ${{ secrets.ASSET_REPO_TOKEN }}
path: flatpak/private path: ./private
- name: Install dependencies - name: Install Dependencies
run: |- run: |-
sudo apt update sudo apt update
sudo apt install -y flatpak-builder ccache sudo apt install -y flatpak-builder ccache
- name: Cache ccache directory - name: Setup ccache
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: /tmp/ccache path: /tmp/ccache
key: ccache-${{ runner.os }} key: ccache-${{ runner.os }}
- name: Prepare Project
run: cp ./private/* ./UnleashedRecompLib/private
- name: Prepare Flatpak - name: Prepare Flatpak
run: | run: |
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

View file

@ -32,31 +32,6 @@
{ {
"type": "dir", "type": "dir",
"path": "../" "path": "../"
},
{
"type": "file",
"path": "private/default.xex",
"dest": "UnleashedRecompLib/private"
},
{
"type": "file",
"path": "private/default.xexp",
"dest": "UnleashedRecompLib/private"
},
{
"type": "file",
"path": "private/default_patched.xex",
"dest": "UnleashedRecompLib/private"
},
{
"type": "file",
"path": "private/shader.ar",
"dest": "UnleashedRecompLib/private"
},
{
"type": "file",
"path": "private/shader_decompressed.ar",
"dest": "UnleashedRecompLib/private"
} }
], ],
"build-options": { "build-options": {