@@ -15,18 +15,20 @@ if [[ "$1" == "" ]]; then
1515 # Nightly Build
1616 LINUX_ARM=" https://github.com/webui-dev/webui/releases/download/nightly/webui-linux-gcc-arm.zip"
1717 LINUX_ARM64=" https://github.com/webui-dev/webui/releases/download/nightly/webui-linux-gcc-arm64.zip"
18- LINUX_X64=" https://github.com/webui-dev/webui/releases/download/nightly/webui-linux-gcc-x64.zip"
18+ LINUX_GCC_X64=" https://github.com/webui-dev/webui/releases/download/nightly/webui-linux-gcc-x64.zip"
19+ LINUX_CLANG_X64=" https://github.com/webui-dev/webui/releases/download/nightly/webui-linux-clang-x64.zip"
1920 MACOS_ARM64=" https://github.com/webui-dev/webui/releases/download/nightly/webui-macos-clang-arm64.zip"
2021 MACOS_X64=" https://github.com/webui-dev/webui/releases/download/nightly/webui-macos-clang-x64.zip"
2122 WINDOWS_MSVC_X64=" https://github.com/webui-dev/webui/releases/download/nightly/webui-windows-msvc-x64.zip"
2223
2324 # Release
24- # LINUX_ARM="https://github.com/webui-dev/webui/releases/download/2.4.2/webui-linux-gcc-arm.zip"
25- # LINUX_ARM64="https://github.com/webui-dev/webui/releases/download/2.4.2/webui-linux-gcc-arm64.zip"
26- # LINUX_X64="https://github.com/webui-dev/webui/releases/download/2.4.2/webui-linux-gcc-x64.zip"
27- # MACOS_ARM64="https://github.com/webui-dev/webui/releases/download/2.4.2/webui-macos-clang-arm64.zip"
28- # MACOS_X64="https://github.com/webui-dev/webui/releases/download/2.4.2/webui-macos-clang-x64.zip"
29- # WINDOWS_MSVC_X64="https://github.com/webui-dev/webui/releases/download/2.4.2/webui-windows-msvc-x64.zip"
25+ # LINUX_ARM="https://github.com/webui-dev/webui/releases/download/2.5.0-beta.2/webui-linux-gcc-arm.zip"
26+ # LINUX_ARM64="https://github.com/webui-dev/webui/releases/download/2.5.0-beta.2/webui-linux-gcc-arm64.zip"
27+ # LINUX_GCC_X64="https://github.com/webui-dev/webui/releases/download/2.5.0-beta.2/webui-linux-gcc-x64.zip"
28+ # LINUX_CLANG_X64="https://github.com/webui-dev/webui/releases/download/2.5.0-beta.2/webui-linux-clang-x64.zip"
29+ # MACOS_ARM64="https://github.com/webui-dev/webui/releases/download/2.5.0-beta.2/webui-macos-clang-arm64.zip"
30+ # MACOS_X64="https://github.com/webui-dev/webui/releases/download/2.5.0-beta.2/webui-macos-clang-x64.zip"
31+ # WINDOWS_MSVC_X64="https://github.com/webui-dev/webui/releases/download/2.5.0-beta.2/webui-windows-msvc-x64.zip"
3032
3133 # Download and extract archives
3234 download_and_extract () {
@@ -49,7 +51,8 @@ if [[ "$1" == "" ]]; then
4951
5052 download_and_extract $LINUX_ARM " webui-linux-gcc-arm" " webui-2.so"
5153 download_and_extract $LINUX_ARM64 " webui-linux-gcc-arm64" " webui-2.so"
52- download_and_extract $LINUX_X64 " webui-linux-gcc-x64" " webui-2.so"
54+ download_and_extract $LINUX_GCC_X64 " webui-linux-gcc-x64" " webui-2.so"
55+ download_and_extract $LINUX_CLANG_X64 " webui-linux-clang-x64" " webui-2.so"
5356 download_and_extract $MACOS_ARM64 " webui-macos-clang-arm64" " webui-2.dylib"
5457 download_and_extract $MACOS_X64 " webui-macos-clang-x64" " webui-2.dylib"
5558 download_and_extract $WINDOWS_MSVC_X64 " webui-windows-msvc-x64" " webui-2.dll"
@@ -66,14 +69,14 @@ if [[ "$1" == "minimal" ]]; then
6669 # Download WebUI library for only the current OS.
6770
6871 # Nightly Build
69- # BASE_URL="https://github.com/webui-dev/webui/releases/download/nightly/"
72+ BASE_URL=" https://github.com/webui-dev/webui/releases/download/nightly/"
7073
7174 # Release
72- BASE_URL=" https://github.com/webui-dev/webui/releases/download/2.4 .2/"
75+ # BASE_URL="https://github.com/webui-dev/webui/releases/download/2.5.0-beta .2/"
7376
7477 # Detect OS (macOS / Linux)
7578 OS=" linux"
76- CC=" gcc"
79+ CC=" clang " # " gcc"
7780 EXT=" so"
7881 if [[ " $OSTYPE " == " darwin" * ]]; then
7982 OS=" macos"
@@ -97,6 +100,9 @@ if [[ "$1" == "minimal" ]]; then
97100 elif [ " $ARCH " = " aarch64" ]; then
98101 # ARM 64Bit
99102 FILENAME=" webui-${OS} -${CC} -arm64"
103+ elif [ " $ARCH " = " arm64" ]; then
104+ # ARM 64bit - apple
105+ FILENAME=" webui-${OS} -${CC} -arm64"
100106 else
101107 echo " Error: Unknown architecture '$ARCH '"
102108 exit 1
@@ -106,7 +112,11 @@ if [[ "$1" == "minimal" ]]; then
106112 mkdir -p " cache/$FILENAME " 2> /dev/null
107113
108114 # Download the archive using wget
109- wget -q " $BASE_URL$FILENAME .zip" -O " cache/$FILENAME .zip"
115+ if [ " $ARCH " = " arm64" ]; then
116+ curl -sL " $BASE_URL$FILENAME .zip" -o " cache/$FILENAME .zip"
117+ else
118+ wget -q " $BASE_URL$FILENAME .zip" -O " cache/$FILENAME .zip"
119+ fi
110120
111121 # Extract archive
112122 unzip -q " cache/$FILENAME .zip" -d " cache"
0 commit comments