From e68214a38a83ca10edbccf0d87dda59108276490 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Sun, 28 Jul 2024 11:59:45 -0700 Subject: [PATCH] Fix #302: use FyneApp.toml to inject additional .desktop metadata --- FyneApp.toml | 8 ++++++++ Makefile | 10 +++------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 FyneApp.toml diff --git a/FyneApp.toml b/FyneApp.toml new file mode 100644 index 00000000..0c7f5872 --- /dev/null +++ b/FyneApp.toml @@ -0,0 +1,8 @@ +[Details] + Icon = "res/appicon-512.png" + Name = "Supersonic" + Version = "0.13.0" + +[LinuxAndBSD] + Categories = ["Audio", "AudioVideo"] + Comment = "A lightweight cross-platform desktop client for self-hosted music servers" diff --git a/Makefile b/Makefile index 60e43d6b..16d417fb 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,3 @@ -icon_path = ./res/appicon-512.png -app_name = Supersonic -app_version = 0.12.0 - build: go build @@ -9,7 +5,7 @@ build: # so the last 3 cmds move it over manually. This is a bit fragile though # since it assumes a specific location and version of the dependency package_macos: - CGO_CFLAGS="-I/usr/local/include -I/opt/homebrew/include" CGO_LDFLAGS="-L/usr/local/lib -L/opt/homebrew/lib" fyne package -os darwin -name $(app_name) -appVersion $(app_version) -icon $(icon_path) + CGO_CFLAGS="-I/usr/local/include -I/opt/homebrew/include" CGO_LDFLAGS="-L/usr/local/lib -L/opt/homebrew/lib" fyne package -os darwin bundledeps_macos_homebrew: dylibbundler -od -b -x ./Supersonic.app/Contents/MacOS/supersonic -d ./Supersonic.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ @@ -29,7 +25,7 @@ zip_macos: zip --symlinks -r Supersonic.zip Supersonic.app/ package_windows: - fyne package -os windows -name $(app_name) -appVersion $(app_version) -icon $(icon_path) + fyne package -os windows package_linux: - fyne package -os linux -name $(app_name) -appVersion $(app_version) -icon $(icon_path) + fyne package -os linux