Finished script to create and package statically linked binary on Linux
This commit is contained in:
@@ -17,10 +17,10 @@ meson compile -C "$BASE_DIR/build/"
|
|||||||
|
|
||||||
# Package the application:
|
# Package the application:
|
||||||
# 1. Copy the executable to REL_DIR
|
# 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"
|
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
|
# Reset default build target to shared
|
||||||
meson configure -Ddefault_library=shared "$BASE_DIR/build/"
|
meson configure -Ddefault_library=shared "$BASE_DIR/build/"
|
||||||
|
Reference in New Issue
Block a user