osb/scripts/ci/linux/assemble.sh
2024-05-26 21:04:49 +03:00

46 lines
1.2 KiB
Bash
Executable File

#!/bin/sh -e
mkdir -p client_distribution
mkdir -p client_distribution/assets
mkdir -p client_distribution/assets/user
./dist/asset_packer -c scripts/packing.config assets/opensb client_distribution/assets/opensb.pak
mkdir -p client_distribution/mods
touch client_distribution/mods/mods_go_here
mkdir -p client_distribution/linux
cp \
dist/starbound \
dist/btree_repacker \
dist/asset_packer \
dist/asset_unpacker \
dist/dump_versioned_json \
dist/make_versioned_json \
lib/linux/libdiscord_game_sdk.so \
lib/linux/libsteam_api.so \
scripts/ci/linux/sbinit.config \
scripts/ci/linux/run-client.sh \
client_distribution/linux/
mkdir -p server_distribution
mkdir -p server_distribution/assets
mkdir -p 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 -p server_distribution/linux
cp \
dist/starbound_server \
dist/btree_repacker \
scripts/ci/linux/run-server.sh \
scripts/ci/linux/sbinit.config \
server_distribution/linux/
tar -cvf dist.tar dist
tar -cvf client.tar client_distribution
tar -cvf server.tar server_distribution