-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaks to the verification and welcome procdures. Tweaks to the build…
… script. Fixes #2
- Loading branch information
AtomicNicos
committed
Sep 17, 2022
1 parent
7c66208
commit 8ccfa1b
Showing
6 changed files
with
146 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,52 @@ | ||
@echo off | ||
set VERSION=1.1.3-hotfix | ||
|
||
:: set GOOS=darwin && set GOARCH=amd64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=darwin && set GOARCH=arm64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
|
||
:: set GOOS=dragonfly && set GOARCH=amd64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
|
||
:: set GOOS=freebsd && set GOARCH=386 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=freebsd && set GOARCH=amd64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=freebsd && set GOARCH=arm && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
|
||
:: set GOOS=linux && set GOARCH=386 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
set GOOS=linux && set GOARCH=amd64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
set GOOS=linux && set GOARCH=arm && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
set GOOS=linux && set GOARCH=arm64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=linux && set GOARCH=ppc64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=linux && set GOARCH=ppc64le && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=linux && set GOARCH=mips && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=linux && set GOARCH=mipsle && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=linux && set GOARCH=mips64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=linux && set GOARCH=mips64le && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
|
||
:: set GOOS=netbsd && set GOARCH=386 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=netbsd && set GOARCH=amd64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=netbsd && set GOARCH=arm && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
|
||
:: set GOOS=openbsd && set GOARCH=386 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=openbsd && set GOARCH=amd64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=openbsd && set GOARCH=arm && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
|
||
:: set GOOS=plan9 && set GOARCH=386 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
:: set GOOS=plan9 && set GOARCH=amd64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
|
||
:: set GOOS=solaris && set GOARCH=amd64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH% . | ||
|
||
set GOOS=windows && set GOARCH=386 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH%.exe . | ||
set GOOS=windows && set GOARCH=amd64 && go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH%.exe . | ||
echo Building artifacts in /build | ||
set VERSION=%1 | ||
|
||
:: call :build darwin amd64 | ||
:: call :build darwin arm64 | ||
|
||
:: call :build dragonfly amd64 | ||
|
||
:: call :build freebsd 386 | ||
:: call :build freebsd amd64 | ||
:: call :build freebsd arm | ||
|
||
:: call :build linux 386 | ||
call :build linux amd64 | ||
call :build linux arm | ||
call :build linux arm64 | ||
:: call :build linux ppc64 | ||
:: call :build linux ppc64le | ||
:: call :build linux mips | ||
:: call :build linux mipsle | ||
:: call :build linux mips64 | ||
:: call :build linux mips64le | ||
|
||
:: call :build netbsd 386 | ||
:: call :build netbsd amd64 | ||
:: call :build netbsd arm | ||
|
||
:: call :build openbsd 386 | ||
:: call :build openbsd amd64 | ||
:: call :build openbsd arm | ||
|
||
:: call :build plan9 386 | ||
:: call :build plan9 amd64 | ||
|
||
:: call :build solaris amd64 | ||
|
||
call :build windows 386 | ||
call :build windows amd64 | ||
|
||
echo Done! | ||
exit /b | ||
|
||
:build | ||
set GOOS=%~1 | ||
set GOARCH=%~2 | ||
set EXT= | ||
if "%GOOS%"=="windows" ( | ||
set EXT=.exe | ||
) | ||
go build -o build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH%%EXT% . | ||
echo Built build/digital-overdose-bot-v%VERSION%-%GOOS%-%GOARCH%%EXT% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,42 @@ | ||
VERSION=1.1.3-hotfix | ||
|
||
#GOOS=darwin; GOARCH=amd64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-amd64 . | ||
#GOOS=darwin; GOARCH=arm64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-arm64 . | ||
|
||
#GOOS=dragonfly; GOARCH=amd64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-amd64 . | ||
|
||
#GOOS=freebsd; GOARCH=386; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-386 . | ||
#GOOS=freebsd; GOARCH=amd64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-amd64 . | ||
#GOOS=freebsd; GOARCH=arm; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-arm . | ||
|
||
#GOOS=linux; GOARCH=386; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-386 . | ||
GOOS=linux; GOARCH=amd64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-amd64 . | ||
GOOS=linux; GOARCH=arm; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-arm . | ||
GOOS=linux; GOARCH=arm64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-arm64 . | ||
#GOOS=linux; GOARCH=ppc64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-ppc64 . | ||
#GOOS=linux; GOARCH=ppc64le; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-ppc64le . | ||
#GOOS=linux; GOARCH=mips; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-mips . | ||
#GOOS=linux; GOARCH=mipsle; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-mipsle . | ||
#GOOS=linux; GOARCH=mips64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-mips64 . | ||
#GOOS=linux; GOARCH=mips64le; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-mips64le . | ||
|
||
#GOOS=netbsd; GOARCH=386; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-386 . | ||
#GOOS=netbsd; GOARCH=amd64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-amd64 . | ||
#GOOS=netbsd; GOARCH=arm; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-arm . | ||
|
||
#GOOS=openbsd; GOARCH=386; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-386 . | ||
#GOOS=openbsd; GOARCH=amd64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-amd64 . | ||
#GOOS=openbsd; GOARCH=arm; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-arm . | ||
|
||
#GOOS=plan9; GOARCH=386; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-386 . | ||
#GOOS=plan9; GOARCH=amd64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-amd64 . | ||
|
||
#GOOS=solaris; GOARCH=amd64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-amd64 . | ||
|
||
GOOS=windows; GOARCH=386; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-386.exe . | ||
GOOS=windows; GOARCH=amd64; go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH-amd64.exe . | ||
echo "Building artifacts in /build" | ||
VERSION=$1 | ||
|
||
build () { | ||
GOOS=$1 | ||
GOARCH=$2 | ||
EXT="" | ||
if [ "$2" = "windows" ] | ||
then | ||
EXT=".exe" | ||
fi | ||
|
||
go build -o build/digital-overdose-bot-v$VERSION-$GOOS-$GOARCH$EXT . | ||
} | ||
|
||
#build darwin amd64 | ||
#build darwin arm64 | ||
#build dragonfly amd64 | ||
#build freebsd 386 | ||
#build freebsd amd64 | ||
#build freebsd arm | ||
#build linux 386 | ||
build linux amd64 | ||
build linux arm | ||
build linux arm64 | ||
# build linux ppc64 | ||
# build linux ppc64le | ||
# build linux mips | ||
# build linux mipsle | ||
# build linux mips64 | ||
# build linux mips64le | ||
# build netbsd 386 | ||
# build netbsd amd64 | ||
# build netbsd arm | ||
# build openbsd 386 | ||
# build openbsd amd64 | ||
# build openbsd arm | ||
# build plan9 386 | ||
# build plan9 amd64 | ||
# build solaris amd64 | ||
build windows 386 | ||
build windows amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters