diff --git a/build_cross.sh b/build_cross.sh new file mode 100644 index 0000000..ddefeeb --- /dev/null +++ b/build_cross.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# Build linux targets +echo "Building for linux" + +echo "Building x86_64" +env GOOS=linux GOARCH=amd64 go build -o build/ginko_linux_x86_64 + +echo "Building x86" +env GOOS=linux GOARCH=386 go build -o build/ginko_linux_x86 + +echo "Building arm" +env GOOS=linux GOARCH=arm go build -o build/ginko_linux_arm + +echo "Building arm64" +env GOOS=linux GOARCH=arm64 go build -o build/ginko_linux_arm64 + +# Build windows targets +echo +echo "Building for windows" + +echo "Building x86_64" +env GOOS=windows GOARCH=amd64 go build -o build/ginko_win_x86_64.exe + +echo "Building x86" +env GOOS=windows GOARCH=386 go build -o build/ginko_win_x86.exe + +# Build mac targets +echo +echo "Building for MacOS" + +echo "Building x86_64" +env GOOS=darwin GOARCH=amd64 go build -o build/ginko_darwin_x86_64 + +echo "Building x86" +env GOOS=darwin GOARCH=386 go build -o build/ginko_darwin_x86 \ No newline at end of file diff --git a/sample.env b/sample.env index 39b9fb3..7264195 100644 --- a/sample.env +++ b/sample.env @@ -2,4 +2,5 @@ BOT_API_KEY= BOT_NAME= OWNER_USERNAME= OWNER_ID= +DATABASE_URI= SUDO_USERS=