From 8011c5e8b99791e8b47c070e0fc7360539b4e65a Mon Sep 17 00:00:00 2001 From: Rockingcool Date: Sun, 10 Mar 2024 16:13:45 -0500 Subject: [PATCH] Finished script to create and package statically linked binary on Linux --- create_static_linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/"