settings file for scanner

This commit is contained in:
2026-03-01 02:21:17 -03:00
parent 676f299796
commit fcb75cb5a4
2 changed files with 102 additions and 14 deletions

31
ScannerGO/build.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/bin/bash
# Define binary names
LINUX_BIN="ScannerGO-linux"
WINDOWS_BIN="ScannerGO-windows.exe"
echo "Starting build process..."
# Build for Linux (64-bit)
echo "Building for Linux..."
GOOS=linux GOARCH=amd64 go build -o "$LINUX_BIN" main.go
if [ $? -eq 0 ]; then
echo "Successfully built: $LINUX_BIN"
else
echo "Failed to build Linux binary"
exit 1
fi
# Build for Windows (64-bit)
echo "Building for Windows..."
GOOS=windows GOARCH=amd64 go build -o "$WINDOWS_BIN" main.go
if [ $? -eq 0 ]; then
echo "Successfully built: $WINDOWS_BIN"
else
echo "Failed to build Windows binary"
exit 1
fi
echo "Build complete."