change build scripts to work with TeamCity

This commit is contained in:
Owen Quinlan 2021-11-19 21:38:46 +11:00
parent 9b116230d4
commit 7b1daeec40
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
go mod download go mod download
package="./IdParser.go" package="./User ID Praser/IdParser.go"
package_split=(${package//\// }) package_split=(${package//\// })
package_name="IdParser" package_name="IdParser"
@ -19,7 +19,7 @@ do
output_name+='.exe' output_name+='.exe'
fi fi
env GOOS=$GOOS GOARCH=$GOARCH go build -o ./build/$output_name $package env GOOS=$GOOS GOARCH=$GOARCH go build -o ./User ID Praser/build/$output_name $package
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo 'An error has occurred! Aborting the script execution...' echo 'An error has occurred! Aborting the script execution...'
exit 1 exit 1

View file

@ -2,7 +2,7 @@
go mod download go mod download
package="./LocateID.go" package="./Locate ID/LocateID.go"
package_split=(${package//\// }) package_split=(${package//\// })
package_name="LocateID" package_name="LocateID"
@ -19,7 +19,7 @@ do
output_name+='.exe' output_name+='.exe'
fi fi
env GOOS=$GOOS GOARCH=$GOARCH go build -o ./build/$output_name $package env GOOS=$GOOS GOARCH=$GOARCH go build -o "./Locate ID/build/$output_name" $package
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo 'An error has occurred! Aborting the script execution...' echo 'An error has occurred! Aborting the script execution...'
exit 1 exit 1