diff --git a/.gitignore b/.gitignore index a4cb47a..a3d8476 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,5 @@ go.work.sum .vscode/ *.AppImage squashfs-root/ -/lychee-slicer* \ No newline at end of file +/lychee-slicer* +build/ \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..6220960 --- /dev/null +++ b/build.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +mkdir -p build +GOOS=windows GOARCH=amd64 go build -ldflags "-H=windowsgui -s -w" -o build/lychee-slicer-launcher-windows.exe +GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o build/lychee-slicer-launcher-linux + +gpg --output build/lychee-slicer-launcher-windows.exe.sig --detach-sig build/lychee-slicer-launcher-windows.exe +gpg --output build/lychee-slicer-launcher-linux.sig --detach-sig build/lychee-slicer-launcher-linux \ No newline at end of file