add build script
This commit is contained in:
parent
1b5fe4e85e
commit
fb552b7a52
2 changed files with 10 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -29,4 +29,5 @@ go.work.sum
|
||||||
.vscode/
|
.vscode/
|
||||||
*.AppImage
|
*.AppImage
|
||||||
squashfs-root/
|
squashfs-root/
|
||||||
/lychee-slicer*
|
/lychee-slicer*
|
||||||
|
build/
|
8
build.sh
Executable file
8
build.sh
Executable 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
|
Loading…
Reference in a new issue