From 69023df4286fa108a6942325ba0f996342c1fd12 Mon Sep 17 00:00:00 2001 From: Owen Quinlan <46948241+BuyMyMojo@users.noreply.github.com> Date: Fri, 19 Nov 2021 21:48:07 +1100 Subject: [PATCH] change build scripts to work with TeamCity --- build-id-parser.sh | 4 ++-- build-locate-id.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build-id-parser.sh b/build-id-parser.sh index b9763d8..8f67a0f 100755 --- a/build-id-parser.sh +++ b/build-id-parser.sh @@ -2,7 +2,7 @@ go mod download -package="./User ID Parser/IdParser.go" +package="$PWD/User ID Parser/IdParser.go" package_split=(${package//\// }) package_name="IdParser" @@ -19,7 +19,7 @@ do output_name+='.exe' fi - env GOOS=$GOOS GOARCH=$GOARCH GOPATH="./User ID Parser/" go build -o ./User ID Praser/build/$output_name $package + env GOOS=$GOOS GOARCH=$GOARCH GOPATH="$PWD/User ID Parser/" go build -o ./User ID Praser/build/$output_name $package if [ $? -ne 0 ]; then echo 'An error has occurred! Aborting the script execution...' exit 1 diff --git a/build-locate-id.sh b/build-locate-id.sh index 89619bc..6460d2e 100755 --- a/build-locate-id.sh +++ b/build-locate-id.sh @@ -2,7 +2,7 @@ go mod download -package="./Locate ID/LocateID.go" +package="$PWD/Locate ID/LocateID.go" package_split=(${package//\// }) package_name="LocateID" @@ -19,7 +19,7 @@ do output_name+='.exe' fi - env GOOS=$GOOS GOARCH=$GOARCH GOPATH="./Locate ID/" go build -o "./Locate ID/build/$output_name" $package + env GOOS=$GOOS GOARCH=$GOARCH GOPATH="$PWD/Locate ID/" go build -o "./Locate ID/build/$output_name" $package if [ $? -ne 0 ]; then echo 'An error has occurred! Aborting the script execution...' exit 1