chore: update some stuff #2

Merged
Future merged 2 commits from build/update into main 2024-09-23 05:50:43 +00:00
Showing only changes of commit bbac4f1ffc - Show all commits

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -e
# Validate OAT version # Validate OAT version
if [[ -z "$OAT_VERSION" ]]; then if [[ -z "$OAT_VERSION" ]]; then
echo "No OAT version was specified, please set the OAT_VERSION environment variable." echo "No OAT version was specified, please set the OAT_VERSION environment variable."
@ -7,9 +9,10 @@ if [[ -z "$OAT_VERSION" ]]; then
fi fi
# Make sure we have cURL (and file for debugging) # Make sure we have cURL (and file for debugging)
echo "Downloading dependencies"
dpkg --add-architecture i386 dpkg --add-architecture i386
apt-get update apt-get update > /dev/null 2>&1
apt-get install -y curl file libstdc++-13-dev:i386 apt-get install -y curl file libstdc++-13-dev:i386 > /dev/null 2>&1
# Construct the download URL # Construct the download URL
DOWNLOAD_URL="https://github.com/Laupetin/OpenAssetTools/releases/download/v${OAT_VERSION}/oat-linux.tar.gz" DOWNLOAD_URL="https://github.com/Laupetin/OpenAssetTools/releases/download/v${OAT_VERSION}/oat-linux.tar.gz"