This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
forked from flathub/io.gdevs.GDLauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
io.gdevs.GDLauncher.yml
60 lines (60 loc) · 2.17 KB
/
io.gdevs.GDLauncher.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
app-id: io.gdevs.GDLauncher
base: org.electronjs.Electron2.BaseApp
base-version: '21.08'
runtime: org.freedesktop.Sdk
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk
command: gd.sh
build-options:
env:
PATH: /app/jre/bin:/usr/bin
finish-args:
- --socket=x11
- --share=ipc
- --device=all # controller support
- --socket=pulseaudio
- --share=network
- --env=CHROME_WRAPPER=zypak-wrapper
- --filesystem=xdg-download # downloaded/export resource packs etc.
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk/install.sh
- name: gdlauncher
buildsystem: simple
build-commands:
- chmod +x GDLauncher-linux-setup.AppImage
- ./GDLauncher-linux-setup.AppImage --appimage-extract
- cp -r squashfs-root /app/bin/gdlauncher
- install -D gdlauncherscaled.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
- install -D ${FLATPAK_ID}.desktop -t /app/share/applications
- install -D ${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo
- install -D gd.sh /app/bin
sources:
- type: file
url: https://github.com/gorilla-devs/GDLauncher/releases/download/v1.1.29/GDLauncher-linux-setup.AppImage
sha256: 84ac89e6ffbed0f182fe758465d3ac729939858e68a09354b8c3e62ca0a027af
x-checker-data:
type: json
url: https://api.github.com/repos/gorilla-devs/GDLauncher/releases/latest
version-query: .tag_name | sub("^[vV]"; "")
url-query: |
.assets[] | select(.name=="GDLauncher-linux-setup.AppImage") | .browser_download_url
- type: file
path: io.gdevs.GDLauncher.desktop
- type: file
path: gdlauncherscaled.png
- type: file
path: io.gdevs.GDLauncher.metainfo.xml
- type: script
commands:
- zypak-wrapper /app/bin/gdlauncher/AppRun
dest-filename: gd.sh
- name: xrandr # if there is a better way to do this please lmk
sources:
- sha256: 7b99edb7970a1365eaf5bcaf552144e4dfc3ccf510c4abc08569849929fb366e
type: archive
url: https://www.x.org/archive/individual/app/xrandr-1.5.1.tar.gz