Initial project scaffold for Dimma

This commit is contained in:
2026-06-10 20:53:30 +02:00
commit 64f55c81b0
17 changed files with 702 additions and 0 deletions
Executable
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
# Build script for Go updater
# Usage: ./build.sh [os] [arch]
# Default: builds for current OS/architecture
MODULE="gitea.sanplex.xyz/Sansan/dimma-updater"
OUTPUT_DIR="../build"
BIN_NAME="go-updater"
OS=${1:-$(go env GOOS)}
ARCH=${2:-$(go env GOARCH)}
case "$OS" in
windows) EXT=".exe" ;;
*) EXT="" ;;
esac
OUTPUT="${OUTPUT_DIR}/${BIN_NAME}-${OS}-${ARCH}${EXT}"
mkdir -p "$OUTPUT_DIR"
echo "Building Go updater for ${OS}/${ARCH}..."
echo "Output: ${OUTPUT}"
go build -o "$OUTPUT" ./
if [ "$OS" = "linux" ] || [ "$OS" = "darwin" ]; then
chmod +x "$OUTPUT"
fi
echo "Build complete: ${OUTPUT}"