Skip to content

Commit 6efb319

Browse files
authored
craft.sh: use newer unity files for patch 23.4, small refactor (#22)
1 parent f841791 commit 6efb319

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

craft.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ download_hearthstone() {
7676
}
7777

7878
UNITY_ENGINE=Editor/Data/PlaybackEngines/LinuxStandaloneSupport/Variations/linux64_withgfx_nondevelopment_mono
79-
UNITY_HUB=/Hub/Editor/2019.4.21f1/$UNITY_ENGINE
79+
UNITY_VER=2019.4.37f1
80+
UNITY_INSTALLER_URL=https://download.unity3d.com/download_unity/019e31cfdb15/LinuxEditorInstaller/Unity.tar.xz
81+
UNITY_HUB=/Hub/Editor/$UNITY_VER/$UNITY_ENGINE
8082

8183
check_unity() {
8284
if [ -f "$TARGET_PATH/Bin/Hearthstone.x86_64" ]; then
@@ -99,9 +101,9 @@ check_unity() {
99101
}
100102

101103
download_unity() {
102-
echo -e "${RED}Unity files not found.\n${GREEN}Downloading Unity 2019.4.21f1 (This version is required for the game to run).${WHITE}\n"
104+
echo -e "${RED}Unity files not found.\n${GREEN}Downloading Unity ${UNITY_VER} (This version is required for the game to run).${WHITE}\n"
103105
mkdir -p tmp
104-
[ ! -f "tmp/Unity.tar.xz" ] && wget -P tmp https://netstorage.unity3d.com/unity/b76dac84db26/LinuxEditorInstaller/Unity.tar.xz
106+
[ ! -f "tmp/Unity.tar.xz" ] && wget -P tmp $UNITY_INSTALLER_URL
105107

106108
echo -e "${GREEN}Extracting Unity files....${WHITE}\n"
107109
tar -xf tmp/Unity.tar.xz -C tmp $UNITY_ENGINE/LinuxPlayer $UNITY_ENGINE/UnityPlayer.so $UNITY_ENGINE/Data/MonoBleedingEdge/

0 commit comments

Comments
 (0)