From a37ee7a48797bfdc2f6004531745f87f99d5c69c Mon Sep 17 00:00:00 2001 From: Robert Janetzko Date: Sun, 8 May 2022 19:22:09 +0000 Subject: [PATCH] makefile --- backend/Makefile | 15 ++++++++++----- .../macos/LegendsBrowser.app/Contents/Info.plist | 3 ++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/backend/Makefile b/backend/Makefile index 9da7e90..11cfe80 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -1,16 +1,21 @@ -build: - GOOS=linux GOARCH=386 go build -o ../bin/legendsbrowser-linux-386 +buildLinux: GOOS=linux GOARCH=amd64 go build -o ../bin/legendsbrowser-linux-x64 - GOOS=windows GOARCH=386 go build -o ../bin/legendsbrowser-386.exe - GOOS=windows GOARCH=amd64 go build -o ../bin/legendsbrowser-x64.exe - GOOS=darwin GOARCH=arm64 go build -o ../bin/legendsbrowser-macos-m1 + +buildWindows: + GOOS=windows GOARCH=amd64 go build -o ../bin/legendsbrowser-win-x64.exe buildMacOs: + GOOS=darwin GOARCH=amd64 go build -o ../bin/legendsbrowser-mac + GOOS=darwin GOARCH=arm64 go build -o ../bin/legendsbrowser-mac-m1 + +buildMacOsApp: mkdir -p /tmp/build/macos cp -r macos/LegendsBrowser.app /tmp/build/macos/ GOOS=darwin GOARCH=amd64 go build -o /tmp/build/macos/LegendsBrowser.app/Contents/MacOS/LegendsBrowser genisoimage -D -V "LegendsBrowser" -no-pad -r -apple -o /tmp/build/uncompressed.dmg /tmp/build/macos dmg dmg /tmp/build/uncompressed.dmg ../bin/LegendsBrowser.dmg +build: buildLinux buildWindows buildMacOs + runLast: go run main.go -c conf.json -l=true diff --git a/backend/macos/LegendsBrowser.app/Contents/Info.plist b/backend/macos/LegendsBrowser.app/Contents/Info.plist index 82e4a7e..e5cece0 100644 --- a/backend/macos/LegendsBrowser.app/Contents/Info.plist +++ b/backend/macos/LegendsBrowser.app/Contents/Info.plist @@ -24,6 +24,7 @@ 1 NSHighResolutionCapable NSSupportsAutomaticGraphicsSwitching - LSBackgroundOnly + LSUIElement + LSBackgroundOnly