From c7336c4d09583d863620980bee32350ad3f11c79 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sun, 11 Jul 2021 18:15:18 -0700 Subject: [PATCH] Update flatpak settings --- README.md | 6 +++--- com.sketchymaze.Doodle.desktop | 2 +- com.sketchymaze.Doodle.json | 14 +++++++------- launcher.sh | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 2f6678f..03ec627 100644 --- a/README.md +++ b/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` diff --git a/com.sketchymaze.Doodle.desktop b/com.sketchymaze.Doodle.desktop index dc5ba22..12ec98e 100755 --- a/com.sketchymaze.Doodle.desktop +++ b/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; diff --git a/com.sketchymaze.Doodle.json b/com.sketchymaze.Doodle.json index e38c02f..ab22da0 100644 --- a/com.sketchymaze.Doodle.json +++ b/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": [ diff --git a/launcher.sh b/launcher.sh index 69da4a7..8cb010a 100755 --- a/launcher.sh +++ b/launcher.sh @@ -3,4 +3,4 @@ if [[ "$1" == "doodad" ]]; then exec $@; fi -doodle --chdir /app/share/doodle $@ +sketchymaze --chdir /app/share/sketchymaze $@