Browse Source

Update flatpak settings

master
Noah Petherbridge 3 years ago
parent
commit
c7336c4d09
  1. 6
      README.md
  2. 2
      com.sketchymaze.Doodle.desktop
  3. 14
      com.sketchymaze.Doodle.json
  4. 2
      launcher.sh

6
README.md

@ -31,9 +31,9 @@ The `source/go.mod` file should have "replace" directives pointing to the
appropriate path as seen in the Flatpak build environment, like:
```
replace git.kirsle.net/go/render => /run/build/doodle/deps/render
replace git.kirsle.net/go/ui => /run/build/doodle/deps/ui
replace git.kirsle.net/go/audio => /run/build/doodle/deps/audio
replace git.kirsle.net/go/render => /run/build/sketchymaze/deps/render
replace git.kirsle.net/go/ui => /run/build/sketchymaze/deps/ui
replace git.kirsle.net/go/audio => /run/build/sketchymaze/deps/audio
```
It may be possible to skip the `replace` directives entirely and have `go get`

2
com.sketchymaze.Doodle.desktop

@ -7,7 +7,7 @@ X-GNOME-FullName=Sketchy Maze - A drawing-based maze game
Comment=A drawing-based maze game.
Exec=launcher.sh
Icon=doodle
Path=/app/share/doodle
Path=/app/share/sketchymaze
StartupNotify=true
Keywords=game;maze;
Categories=Game;

14
com.sketchymaze.Doodle.json

@ -15,7 +15,7 @@
"--socket=pulseaudio"
],
"command": "launcher.sh",
"rename-icon": "doodle",
"rename-icon": "sketchymaze",
"cleanup": [
"/include",
"/lib/pkgconfig",
@ -25,7 +25,7 @@
],
"modules": [
{
"name": "doodle",
"name": "sketchymaze",
"buildsystem": "simple",
"build-options": {
"build-args": [
@ -36,15 +36,15 @@
"find",
"pwd",
". /usr/lib/sdk/golang/enable.sh; env GOPATH=\"$(pwd)\"; make build",
"install -Dm755 ./bin/doodle /app/bin/doodle",
"install -Dm755 ./bin/sketchymaze /app/bin/sketchymaze",
"install -Dm755 ./bin/doodad /app/bin/doodad",
"install -Dm755 ./launcher.sh /app/bin/launcher.sh",
"mkdir -p /app/share/doodle /app/share/icons /app/extra/export/share",
"cp -ra guidebook rtp *.md /app/share/doodle",
"cp -ra 256.png /app/share/icons/doodle.png",
"mkdir -p /app/share/sketchymaze /app/share/icons /app/extra/export/share",
"cp -ra guidebook rtp *.md /app/share/sketchymaze",
"cp -ra 256.png /app/share/icons/sketchymaze.png",
"install -Dm644 com.sketchymaze.Doodle.desktop /app/share/applications/com.sketchymaze.Doodle.desktop",
"install -Dm644 com.sketchymaze.Doodle.appdata.xml /app/share/appdata/com.sketchymaze.Doodle.appdata.xml",
"for s in 16 32 64 128 256; do install -Dm644 ${s}.png /app/share/icons/hicolor/${s}x${s}/apps/doodle.png; done",
"for s in 16 32 64 128 256; do install -Dm644 ${s}.png /app/share/icons/hicolor/${s}x${s}/apps/sketchymaze.png; done",
"find /app"
],
"sources": [

2
launcher.sh

@ -3,4 +3,4 @@
if [[ "$1" == "doodad" ]]; then
exec $@;
fi
doodle --chdir /app/share/doodle $@
sketchymaze --chdir /app/share/sketchymaze $@

Loading…
Cancel
Save