From fb552b7a527902ff465639ec8d26a690c9f305ed Mon Sep 17 00:00:00 2001 From: nezu Date: Mon, 21 Oct 2024 16:46:23 +0200 Subject: [PATCH] add build script --- .gitignore | 3 ++- build.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 build.sh 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