Initial working commit

This commit is contained in:
2024-04-23 08:52:59 -04:00
commit ee948f23c0
11 changed files with 625 additions and 0 deletions

13
build.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
go install
for distro in $(go tool dist list)
do
arrIN=(${distro//\// })
if [[ ${arrIN[0]} == 'linux' || ${arrIN[0]} == 'darwin' || ${arrIN[0]} == 'freebsd' || ${arrIN[0]} == 'windows' ]]; then
echo "Building $distro..."
GOOS=${arrIN[0]} GOARCH=${arrIN[1]} go build --ldflags="-X 'main.Version=$(git describe --tags --abbrev=0)'" -o dist/img_proxy_${arrIN[0]}_${arrIN[1]}
fi
done