Use sub-directory that will be clean to correct building.
[SquirrelJME.git] / cc.squirreljme.SquirrelJME.yml
blobe97b127bcf8231e7a914dc1c8720279490b4d16a
1 id: cc.squirreljme.SquirrelJME
2 runtime: org.freedesktop.Platform
3 runtime-version: '23.08'
4 sdk: org.freedesktop.Sdk
5 sdk-extensions:
6   - "org.freedesktop.Sdk.Extension.openjdk11"
7 build-options:
8   build-args:
9     - "--share=network"
10   env:
11     - JAVA_HOME=/usr/lib/sdk/openjdk11/jvm/openjdk-11
12     - PATH=/usr/lib/sdk/openjdk11/jvm/openjdk-11/bin:/app/bin:/usr/bin
13 command: /app/bin/squirreljme.sh
14 modules:
15   - name: openjdk
16     buildsystem: simple
17     build-commands:
18       - /usr/lib/sdk/openjdk11/install.sh
19   - name: squirreljme
20     buildsystem: simple
21     build-commands:
22       - ./gradlew --console plain --no-daemon :emulators:standalone:shadowJar
23         -x test -x testHosted -x testHostedDebug
24         -x testSpringCoat -x testSpringCoatRelease -x testSpringCoatDebug
25         -x testNanoCoat -x testNanoCoatRelease -x testNanoCoatDebug
27       # Run Script
28       - install -Dm755 assets/flatpak/squirreljme.sh
29         /app/bin/squirreljme.sh
31       # Resultant Jar
32       - install -Dm755
33         emulators/standalone/build/libs/squirreljme-standalone-*.jar
34         /app/bin/squirreljme-standalone.jar
36       # Flatpak Manifest
37       - install -Dm644 cc.squirreljme.SquirrelJME.metainfo.xml
38         /app/share/metainfo/cc.squirreljme.SquirrelJME.metainfo.xml
40       # Desktop files
41       - install -Dm644 assets/flatpak/cc.squirreljme.SquirrelJME.default.desktop
42         /app/share/applications/cc.squirreljme.SquirrelJME.desktop
43       - install -Dm644 assets/flatpak/cc.squirreljme.SquirrelJME.hosted.desktop
44         /app/share/applications/cc.squirreljme.SquirrelJME.hosted.desktop
45       - install -Dm644 assets/flatpak/cc.squirreljme.SquirrelJME.springcoat.desktop
46         /app/share/applications/cc.squirreljme.SquirrelJME.springcoat.desktop
47       - install -Dm644 assets/flatpak/cc.squirreljme.SquirrelJME.nanocoat.desktop
48         /app/share/applications/cc.squirreljme.SquirrelJME.nanocoat.desktop
50       # Desktop files with the internal debugger enable
51       - install -Dm644 assets/flatpak/cc.squirreljme.SquirrelJME.default.debug.desktop
52         /app/share/applications/cc.squirreljme.SquirrelJME.default.debug.desktop
53       - install -Dm644 assets/flatpak/cc.squirreljme.SquirrelJME.hosted.debug.desktop
54         /app/share/applications/cc.squirreljme.SquirrelJME.hosted.debug.desktop
55       - install -Dm644 assets/flatpak/cc.squirreljme.SquirrelJME.springcoat.debug.desktop
56         /app/share/applications/cc.squirreljme.SquirrelJME.springcoat.debug.desktop
57       - install -Dm644 assets/flatpak/cc.squirreljme.SquirrelJME.nanocoat.debug.desktop
58         /app/share/applications/cc.squirreljme.SquirrelJME.nanocoat.debug.desktop
60       # XPM Icons
61       - install -Dm644 assets/mascot/head_8x8.xpm
62         /app/share/icons/hicolor/8x8/apps/cc.squirreljme.SquirrelJME.xpm
63       - install -Dm644 assets/mascot/head_16x16.xpm
64         /app/share/icons/hicolor/16x16/apps/cc.squirreljme.SquirrelJME.xpm
65       - install -Dm644 assets/mascot/head_24x24.xpm
66         /app/share/icons/hicolor/24x24/apps/cc.squirreljme.SquirrelJME.xpm
67       - install -Dm644 assets/mascot/head_32x32.xpm
68         /app/share/icons/hicolor/32x32/apps/cc.squirreljme.SquirrelJME.xpm
69       - install -Dm644 assets/mascot/head_48x48.xpm
70         /app/share/icons/hicolor/48x48/apps/cc.squirreljme.SquirrelJME.xpm
71       - install -Dm644 assets/mascot/head_64x64.xpm
72         /app/share/icons/hicolor/64x64/apps/cc.squirreljme.SquirrelJME.xpm
73       - install -Dm644 assets/mascot/head_128x128.xpm
74         /app/share/icons/hicolor/128x128/apps/cc.squirreljme.SquirrelJME.xpm
76       # PNG Icons
77       - tail +2 assets/mascot/head_8x8.png.__mime | base64 -d -i | cat>
78         /app/share/icons/hicolor/8x8/apps/cc.squirreljme.SquirrelJME.png
79       - tail +2 assets/mascot/head_16x16.png.__mime | base64 -d -i | cat >
80         /app/share/icons/hicolor/16x16/apps/cc.squirreljme.SquirrelJME.png
81       - tail +2 assets/mascot/head_24x24.png.__mime | base64 -d -i | cat >
82         /app/share/icons/hicolor/24x24/apps/cc.squirreljme.SquirrelJME.png
83       - tail +2 assets/mascot/head_32x32.png.__mime | base64 -d -i | cat >
84         /app/share/icons/hicolor/32x32/apps/cc.squirreljme.SquirrelJME.png
85       - tail +2 assets/mascot/head_48x48.png.__mime | base64 -d -i | cat >
86         /app/share/icons/hicolor/48x48/apps/cc.squirreljme.SquirrelJME.png
87       - tail +2 assets/mascot/head_64x64.png.__mime | base64 -d -i | cat >
88         /app/share/icons/hicolor/64x64/apps/cc.squirreljme.SquirrelJME.png
89       - tail +2 assets/mascot/head_128x128.png.__mime | base64 -d -i | cat >
90         /app/share/icons/hicolor/128x128/apps/cc.squirreljme.SquirrelJME.png
91     sources:
92       - type: git
93         branch: trunk
94         url: https://github.com/SquirrelJME/SquirrelJME.git
95 finish-args:
96   - "--share=network"
97   - "--socket=x11"
98   - "--socket=fallback-x11"
99   - "--socket=pulseaudio"
100   - "--socket=session-bus"
101   - "--device=dri"
102   - "--filesystem=~/.config/squirreljme"
103   - "--filesystem=~/.local/share/squirreljme"
104   - "--env=SQUIRRELJME_CONFIG_HOME=~/.config/squirreljme"
105   - "--env=SQUIRRELJME_DATA_HOME=~/.local/share/squirreljme"
106   - "--env=JAVA_HOME=/app/jre/"
107   - "--env=PATH=/app/bin:/app/jre/bin:/usr/bin"