Update flatpak settings

This commit is contained in:
Noah 2021-07-11 18:15:18 -07:00
parent d1b686e8c2
commit c7336c4d09
4 changed files with 12 additions and 12 deletions

View File

@ -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: 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/render => /run/build/sketchymaze/deps/render
replace git.kirsle.net/go/ui => /run/build/doodle/deps/ui replace git.kirsle.net/go/ui => /run/build/sketchymaze/deps/ui
replace git.kirsle.net/go/audio => /run/build/doodle/deps/audio 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` It may be possible to skip the `replace` directives entirely and have `go get`

View File

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

View File

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

View File

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