2024-03-08 20:09:27 +11:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
mkdir client_distribution
|
|
|
|
mkdir client_distribution/assets
|
2024-03-17 22:54:28 +11:00
|
|
|
mkdir client_distribution/assets/user
|
2024-03-08 20:09:27 +11:00
|
|
|
|
|
|
|
./dist/asset_packer -c scripts/packing.config assets/opensb client_distribution/assets/opensb.pak
|
|
|
|
|
|
|
|
mkdir client_distribution/mods
|
|
|
|
touch client_distribution/mods/mods_go_here
|
|
|
|
|
|
|
|
mkdir client_distribution/linux
|
|
|
|
cp \
|
|
|
|
dist/starbound \
|
|
|
|
dist/btree_repacker \
|
|
|
|
dist/asset_packer \
|
|
|
|
dist/asset_unpacker \
|
|
|
|
dist/dump_versioned_json \
|
|
|
|
dist/make_versioned_json \
|
2024-03-17 22:59:56 +11:00
|
|
|
lib/linux/libdiscord_game_sdk.so \
|
|
|
|
lib/linux/libsteam_api.so \
|
2024-03-08 20:09:27 +11:00
|
|
|
scripts/ci/linux/sbinit.config \
|
|
|
|
scripts/ci/linux/run-client.sh \
|
2024-06-24 18:35:35 +10:00
|
|
|
scripts/steam_appid.txt \
|
2024-03-08 20:09:27 +11:00
|
|
|
client_distribution/linux/
|
|
|
|
|
|
|
|
mkdir server_distribution
|
|
|
|
mkdir server_distribution/assets
|
|
|
|
|
|
|
|
mkdir server_distribution/mods
|
|
|
|
touch server_distribution/mods/mods_go_here
|
|
|
|
|
|
|
|
./dist/asset_packer -c scripts/packing.config -s assets/opensb server_distribution/assets/opensb.pak
|
|
|
|
|
|
|
|
mkdir server_distribution/linux
|
|
|
|
|
2024-07-30 12:13:43 +10:00
|
|
|
# makes the server function on older Linux versions (this is so stupid)
|
|
|
|
nm --dynamic --undefined-only --with-symbol-versions dist/starbound_server | grep GLIBC_2.29
|
|
|
|
./scripts/ci/linux/patchelf dist/starbound_server \
|
|
|
|
--clear-symbol-version exp \
|
|
|
|
--clear-symbol-version exp2 \
|
|
|
|
--clear-symbol-version log \
|
|
|
|
--clear-symbol-version log2 \
|
|
|
|
--clear-symbol-version pow
|
|
|
|
|
2024-03-08 20:09:27 +11:00
|
|
|
cp \
|
|
|
|
dist/starbound_server \
|
|
|
|
dist/btree_repacker \
|
|
|
|
scripts/ci/linux/run-server.sh \
|
|
|
|
scripts/ci/linux/sbinit.config \
|
2024-06-24 18:35:35 +10:00
|
|
|
scripts/steam_appid.txt \
|
2024-03-08 20:09:27 +11:00
|
|
|
server_distribution/linux/
|
2024-03-17 22:30:29 +11:00
|
|
|
|
|
|
|
tar -cvf dist.tar dist
|
|
|
|
tar -cvf client.tar client_distribution
|
|
|
|
tar -cvf server.tar server_distribution
|