1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00

Add scripts and flatpak manifest to help building for Deck

This commit is contained in:
Joshua Goins 2022-10-24 15:46:37 -04:00
parent bbc7a14a96
commit f5b499dca1
2 changed files with 59 additions and 0 deletions

8
test-steamdeck.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
flatpak-builder build --force-clean zone.xiv.astra.yml &&
flatpak build-export export build &&
flatpak build-bundle export astra-next.flatpak zone.xiv.astra --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo &&
rsync ./astra-next.flatpak deck@steamdeck:~/astra-next.flatpak
ssh deck@steamdeck 'flatpak install --user --noninteractive -y astra-next.flatpak'
#ssh deck@steamdeck 'flatpak run --user zone.xiv.astra'

51
zone.xiv.astra.yml Normal file
View file

@ -0,0 +1,51 @@
app-id: zone.xiv.astra
runtime: org.kde.Platform
runtime-version: '5.15-22.08'
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: astra
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
build-args:
- --share=network
finish-args:
- --share=ipc
- --socket=x11
- --socket=wayland
- --filesystem=host
- --device=dri
- --share=network
- --socket=pulseaudio
modules:
- name: unshield
buildsystem: cmake-ninja
sources:
- type: git
url: https://github.com/twogood/unshield.git
branch: main
- name: qtkeychain
buildsystem: cmake-ninja
config-opts:
- -DLIBSECRET_SUPPORT=OFF
sources:
- type: git
url: https://github.com/frankosterfeld/qtkeychain.git
- name: quazip
buildsystem: cmake-ninja
sources:
- type: git
url: https://github.com/stachenov/quazip.git
- name: astra
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DRust_COMPILER=/usr/lib/sdk/rust-stable/bin/rustc
- -DENABLE_GAMEMODE=OFF
- -DENABLE_CLI=OFF
build-options:
build-args:
- --share=network # needed for cargo unfortunately, flatpak has no native support (yet)
sources:
- type: dir
path: .