mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-14 19:42:38 +01:00
shebang: Move parameters from set. Add newline after for consistency. curl: Add -f; Prevents output on error. Use -O where applicable; -o with the same filename as the URL is pointless. Add -S after -s: Makes curl still error despite being silent. build-symbols: Add zip fallback. get-discord-rpc: Move git clone parameters before repository for readability. Use --depth 1 to speed up cloning. install-nsis: Use ProgramData environment variable. build-appimage-docker.sh: Add -e to docker run. Run script directly. build-appimage.sh: Make if more consistent. Remove unused Travis scripts. setenv: unset instead of blanking variables. vstool.cmd: Use ProgramFiles(x86) environment variable.
27 lines
720 B
Bash
Executable File
27 lines
720 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Check 7z or zip is available
|
|
if [ -x "$(command -v 7z)" ]; then
|
|
archiver="7z a"
|
|
elif [ -x "$(command -v zip)" ]; then
|
|
archiver=zip
|
|
else
|
|
echo -e >&2 "\033[0;7z and zip not found\033[0m"
|
|
exit 1
|
|
fi
|
|
|
|
# Create a Windows symbols archive for OpenRCT2
|
|
basedir="$(readlink -f `dirname $0`/..)"
|
|
cd $basedir/bin
|
|
|
|
destination=../artifacts/openrct2-symbols-$CONFIGURATION-$PLATFORM.zip
|
|
|
|
echo -e "\033[0;36mCreating symbols archive for OpenRCT2...\033[0m"
|
|
if [[ -f $destination ]]; then
|
|
rm $destination
|
|
fi
|
|
$archiver $destination openrct2.exe openrct2.com openrct2-win.pdb
|
|
|
|
destination=$(cygpath -w $(readlink -f $destination))
|
|
printf '\033[0;32m%s\033[0m\n' "${destination} created successfully"
|