#!/usr/bin/env sh #MISE description="Generate Flatpak manifest and metadata for a release" #USAGE flag "--url" help="Binary tarball download URL (for remote source)" { #USAGE arg "" #USAGE } #USAGE flag "--sha256" help="Binary tarball SHA256 checksum (for remote source)" { #USAGE arg "" #USAGE } #USAGE flag "--path" help="Local binary tarball path relative to flatpak/ dir (for CI builds)" { #USAGE arg "" #USAGE } set -e if [ -n "${usage_path}" ]; then source_block=" - type: archive path: ${usage_path}" elif [ -n "${usage_url}" ] && [ -n "${usage_sha256}" ]; then source_block=" - type: archive url: ${usage_url} sha256: ${usage_sha256}" else echo "error: provide either --path or both --url and --sha256" >&2 exit 1 fi mkdir -p flatpak cat >flatpak/dev.aaronmallen.pod.yml <flatpak/dev.aaronmallen.pod.desktop <<'EOF' [Desktop Entry] Name=Pod Comment=Capsuleer manager for EVE Online. Exec=pod %u Icon=dev.aaronmallen.pod Type=Application Categories=Utility; MimeType=x-scheme-handler/eveauth-pod; EOF cat >flatpak/dev.aaronmallen.pod.appdata.xml <<'EOF' dev.aaronmallen.pod Pod Capsuleer manager for EVE Online CC0-1.0 MIT

Pod is a one-stop-shop capsuleer manager for EVE Online.

https://pod.aaronmallen.dev https://github.com/aaronmallen/pod/issues
EOF