add build script

This commit is contained in:
nezu 2024-10-21 16:46:23 +02:00
parent 1b5fe4e85e
commit fb552b7a52
2 changed files with 10 additions and 1 deletions

3
.gitignore vendored
View file

@ -29,4 +29,5 @@ go.work.sum
.vscode/
*.AppImage
squashfs-root/
/lychee-slicer*
/lychee-slicer*
build/

8
build.sh Executable file
View file

@ -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