Replace deprecated native OpenAL with OpenAL Soft on macOS.

This commit is contained in:
Paul Chote
2020-03-16 22:44:24 +00:00
committed by abcdefg30
parent 3c2e9be248
commit 9faf9aa1b9
3 changed files with 11 additions and 6 deletions

View File

@@ -13,7 +13,7 @@
# MACOS_DEVELOPER_PASSWORD: App-specific password for the developer account
#
LAUNCHER_TAG="osx-launcher-20200306"
LAUNCHER_TAG="osx-launcher-20200316"
if [ $# -ne "2" ]; then
echo "Usage: $(basename "$0") tag outputdir"

View File

@@ -1,6 +1,6 @@
#!/bin/bash
LAUNCHER_TAG="osx-launcher-20200306"
LAUNCHER_TAG="osx-launcher-20200316"
download_dir="${0%/*}/download/osx"
mkdir -p "$download_dir"
@@ -25,3 +25,8 @@ if [ ! -f libfreetype.6.dylib ]; then
echo "Fetching OS X FreeType library from GitHub."
curl -LOs https://github.com/OpenRA/OpenRALauncherOSX/releases/download/${LAUNCHER_TAG}/libfreetype.6.dylib
fi
if [ ! -f libopenal.1.dylib ]; then
echo "Fetching OS X OpenAL Soft library from GitHub."
curl -LOs https://github.com/OpenRA/OpenRALauncherOSX/releases/download/${LAUNCHER_TAG}/libopenal.1.dylib
fi

View File

@@ -71,11 +71,11 @@ fi
if [ ! -f OpenAL-CS.dll ] || [ ! -f OpenAL-CS.dll.config ]; then
echo "Fetching OpenAL-CS from GitHub."
if command -v curl >/dev/null 2>&1; then
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20190907/OpenAL-CS.dll
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20190907/OpenAL-CS.dll.config
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20200316/OpenAL-CS.dll
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20200316/OpenAL-CS.dll.config
else
wget -cq https://github.com/OpenRA/OpenAL-CS/releases/download/20190907/OpenAL-CS.dll
wget -cq https://github.com/OpenRA/OpenAL-CS/releases/download/20190907/OpenAL-CS.dll.config
wget -cq https://github.com/OpenRA/OpenAL-CS/releases/download/20200316/OpenAL-CS.dll
wget -cq https://github.com/OpenRA/OpenAL-CS/releases/download/20200316/OpenAL-CS.dll.config
fi
fi