2022-05-08 22:22:09 +03:00
|
|
|
buildLinux:
|
2022-04-30 21:08:36 +03:00
|
|
|
GOOS=linux GOARCH=amd64 go build -o ../bin/legendsbrowser-linux-x64
|
2022-05-08 22:22:09 +03:00
|
|
|
|
|
|
|
buildWindows:
|
|
|
|
GOOS=windows GOARCH=amd64 go build -o ../bin/legendsbrowser-win-x64.exe
|
2022-04-30 21:08:36 +03:00
|
|
|
|
|
|
|
buildMacOs:
|
2022-05-08 22:22:09 +03:00
|
|
|
GOOS=darwin GOARCH=amd64 go build -o ../bin/legendsbrowser-mac
|
|
|
|
GOOS=darwin GOARCH=arm64 go build -o ../bin/legendsbrowser-mac-m1
|
|
|
|
|
2023-11-17 16:50:14 +02:00
|
|
|
buildMacOsApp: buildMacOs
|
2022-04-30 21:08:36 +03:00
|
|
|
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
|
|
|
|
|
2022-05-08 22:22:09 +03:00
|
|
|
build: buildLinux buildWindows buildMacOs
|
|
|
|
|
2022-05-05 13:55:33 +03:00
|
|
|
runLast:
|
|
|
|
go run main.go -c conf.json -l=true
|