diff --git a/cmd/compile.sh b/cmd/compile.sh index ad6336e..dbd7800 100755 --- a/cmd/compile.sh +++ b/cmd/compile.sh @@ -4,7 +4,7 @@ set -x set -e # General build flags -FLAGS="-s -w -X gitlab.com/offline-twitter/twitter_offline_engine/internal/webserver.use_embedded=true" +FLAGS="-s -w -X gitlab.com/offline-twitter/twitter_offline_engine/pkg/webserver.use_embedded=true" # Check for the `--static` flag and consume it USE_STATIC=false diff --git a/cmd/windows-compile.sh b/cmd/windows-compile.sh index 4631818..8105ea6 100755 --- a/cmd/windows-compile.sh +++ b/cmd/windows-compile.sh @@ -14,12 +14,12 @@ if [[ -z "$1" ]]; then fi # Always use static build for windows -FLAGS="-s -w -X gitlab.com/offline-twitter/twitter_offline_engine/internal/webserver.use_embedded=true" +FLAGS="-s -w -X gitlab.com/offline-twitter/twitter_offline_engine/pkg/webserver.use_embedded=true" SPECIAL_FLAGS_FOR_STATIC_BUILD="-linkmode=external -extldflags=-static" # Add an application icon using `windres` and `.syso` # The `.syso` should be picked up automatically, since it's in the same directory we run `go build` from` -echo '1 ICON "../internal/webserver/static/twitter.ico"' > /tmp/icon.rc +echo '1 ICON "../pkg/webserver/static/twitter.ico"' > /tmp/icon.rc x86_64-w64-mingw32-windres /tmp/icon.rc -o icon.syso go build -ldflags="$FLAGS $SPECIAL_FLAGS_FOR_STATIC_BUILD -X main.version_string=$1" -o twitter.exe ./twitter