Files
rsa-file-encryption/build.sh
Ron Rise 7c87254fe4
All checks were successful
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Successful in 2m52s
oops - thought I got that one.
2025-05-13 22:24:31 -04:00

14 lines
501 B
Bash
Executable File

#!/usr/bin/env bash
go install
for distro in $(go tool dist list)
do
arrIN=(${distro//\// })
if [[ ${arrIN[0]} == 'linux' || ${arrIN[0]} == 'darwin' ]]; then
echo "Building $distro..."
GOOS=${arrIN[0]} GOARCH=${arrIN[1]} go build --ldflags="-X 'github.com/siteworxpro/rsa-file-encryption/printer.Version=$(git describe --tags --abbrev=0)'" -o dist/rsa-file-encryption_${arrIN[0]}_${arrIN[1]}
gpg --detach-sign "dist/rsa-file-encryption_${arrIN[0]}_${arrIN[1]}"
fi
done