From 0b78becd900fbf32d045ccfc9da3c704cb2cb48c Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Sun, 5 Mar 2023 10:04:09 -0800 Subject: [PATCH] add Makefile with packaging targets --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cb792f7 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +icon_path = ./res/appicon-500.png + +build: + go build + +package_macos: + fyne package -os darwin -icon $(icon_path) + mv ./supersonic.app Supersonic.app + dylibbundler -od -b -x ./Supersonic.app/Contents/MacOS/supersonic -d ./Supersonic.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ + +package_windows: + fyne package -os windows -icon $(icon_path)