Skip to content

Commit

Permalink
Fix #302: use FyneApp.toml to inject additional .desktop metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jul 28, 2024
1 parent 4ab8f86 commit e68214a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 8 additions & 0 deletions FyneApp.toml
Original file line number Diff line number Diff line change
@@ -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"
10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
icon_path = ./res/appicon-512.png
app_name = Supersonic
app_version = 0.12.0

build:
go build

# dylibbundler doesn't seem to pick up on the Python framework dependency,
# 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/
Expand All @@ -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

0 comments on commit e68214a

Please sign in to comment.