commit e6ac0bb5bc65040ac9eb7928da9b7a2243c55cb8 Author: Noah Petherbridge Date: Sat Dec 5 18:07:33 2020 -0800 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7949add --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.flatpak-builder/ +build/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1c05044 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY: clean +clean: + rm -rf .flatpak-builder build + +.PHONY: build +build: clean + flatpak-builder --user --install build com.sketchymaze.Doodle.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..1d77303 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Flatpak + +This repo contains Flatpak manifests to distribute Sketchy Maze to Linux users. + +It's a work in progress and currently tries to bundle the binary distribution +from tarball; but the binary uses glibc-2.32 which is not yet available in +the freedesktop runtime. + +## Makefile + +`make build` will attempt to build and install the Flatpak. diff --git a/com.sketchymaze.Doodle.appdata.xml b/com.sketchymaze.Doodle.appdata.xml new file mode 100644 index 0000000..c798916 --- /dev/null +++ b/com.sketchymaze.Doodle.appdata.xml @@ -0,0 +1,28 @@ + + + Project: Doodle + com.sketchymaze.Doodle.desktop + CC0-1.0 + Proprietary + A drawing-based maze game. + +

+ Project: Doodle is a drawing-based maze game where you can draw your + own levels freehand and play them as a platformer. +

+
+ https://www.sketchymaze.com + + https://www.sketchymaze.com/guidebook/images/main-menu.png + https://www.sketchymaze.com/guidebook/images/about.png + https://www.sketchymaze.com/guidebook/images/palette.png + https://www.sketchymaze.com/guidebook/images/doodads.png + + + moderate + + + + + Noah Petherbridge +
diff --git a/com.sketchymaze.Doodle.desktop b/com.sketchymaze.Doodle.desktop new file mode 100755 index 0000000..1b8b56e --- /dev/null +++ b/com.sketchymaze.Doodle.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Project: Doodle +GenericName=Project Doodle +X-GNOME-FullName=Project: Doodle - A drawing-based maze game +Comment=A drawing-based maze game. +Exec=doodle +Icon=doodle +Path=/app/share/doodle +StartupNotify=true +Keywords=game;maze; +Categories=Game; diff --git a/com.sketchymaze.Doodle.json b/com.sketchymaze.Doodle.json new file mode 100644 index 0000000..8b0472e --- /dev/null +++ b/com.sketchymaze.Doodle.json @@ -0,0 +1,61 @@ +{ + "app-id": "com.sketchymaze.Doodle", + "runtime": "org.freedesktop.Platform", + "runtime-version": "20.08", + "sdk": "org.freedesktop.Sdk", + "finish-args": [ + "--device=all", + "--persist=.doodle", + "--share=ipc", + "--share=network", + "--socket=x11", + "--socket=pulseaudio" + ], + "command": "doodle", + "rename-icon": "doodle", + "cleanup": [ + "/include", + "/lib/pkgconfig", + "/share/aclocal", + "/share/man", + "*.la", "*.a" + ], + "modules": [ + { + "name": "doodle", + "buildsystem": "simple", + "build-options": {}, + "build-commands": [ + "find", + "install -Dm755 ./doodle /app/bin/doodle", + "install -Dm755 ./doodad /app/bin/doodad", + "mkdir -p /app/share/doodle /app/share/icons", + "cp -ra guidebook rtp *.md /app/share/doodle", + "cp -ra 256.png /app/share/icons/doodle.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", + "find /app/share" + ], + "sources": [ + { + "type": "archive", + "url": "https://www.kirsle.net/projects/Doodle/v0.4.0/doodle-0.4.0-linux-64bit.tar.gz", + "sha256": "ee3755be22b953bbfe0e477bc40b7c0637e61b49ef5653b49974490cb3fa6d3b" + }, + { + "type": "dir", + "path": "icons" + }, + { + "type": "file", + "path": "com.sketchymaze.Doodle.desktop" + }, + { + "type": "file", + "path": "com.sketchymaze.Doodle.appdata.xml" + } + ] + } + ] +} diff --git a/icons/1024.png b/icons/1024.png new file mode 100644 index 0000000..0b942cf Binary files /dev/null and b/icons/1024.png differ diff --git a/icons/128.png b/icons/128.png new file mode 100644 index 0000000..4ec8629 Binary files /dev/null and b/icons/128.png differ diff --git a/icons/16.png b/icons/16.png new file mode 100644 index 0000000..bb712b7 Binary files /dev/null and b/icons/16.png differ diff --git a/icons/256.png b/icons/256.png new file mode 100644 index 0000000..48917c8 Binary files /dev/null and b/icons/256.png differ diff --git a/icons/32.png b/icons/32.png new file mode 100644 index 0000000..e13160f Binary files /dev/null and b/icons/32.png differ diff --git a/icons/512.png b/icons/512.png new file mode 100644 index 0000000..0cbb6fd Binary files /dev/null and b/icons/512.png differ diff --git a/icons/64.png b/icons/64.png new file mode 100644 index 0000000..86de463 Binary files /dev/null and b/icons/64.png differ