diff --git a/create_static_linux.sh b/create_static_linux.sh index 067b90e..9d7f266 100755 --- a/create_static_linux.sh +++ b/create_static_linux.sh @@ -17,10 +17,10 @@ meson compile -C "$BASE_DIR/build/" # Package the application: # 1. Copy the executable to REL_DIR -# 2. Create a tarball +# 2. Create a tarball after cd'ing into the parent directory. cp "$BASE_DIR/build/pong" "$REL_DIR" -tar -czf "$BASE_DIR/release/pong.tar.gz" "$REL_DIR" +tar -C "$BASE_DIR/release/static" -czf "$BASE_DIR/release/pong.tar.gz" "pong/" # Reset default build target to shared meson configure -Ddefault_library=shared "$BASE_DIR/build/"