|
1 | 1 | #!/bin/bash
|
2 | 2 | set -e
|
| 3 | +set -x |
3 | 4 |
|
4 | 5 | dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
5 | 6 | pushd "$dir" > /dev/null
|
@@ -132,18 +133,41 @@ elif [ "$platform" = "web" ]; then
|
132 | 133 | scons platform=web tools=no target=template_debug custom_modules="../spine_godot" --jobs=$cpus
|
133 | 134 | mv bin/godot.web.template_release.wasm32.zip bin/web_release.zip
|
134 | 135 | mv bin/godot.web.template_debug.wasm32.zip bin/web_debug.zip
|
| 136 | + |
135 | 137 | scons platform=web tools=no threads=no target=template_release custom_modules="../spine_godot" --jobs=$cpus
|
136 | 138 | scons platform=web tools=no threads=no target=template_debug custom_modules="../spine_godot" --jobs=$cpus
|
137 |
| - mv bin/godot.web.template_release.wasm32.nothreads.zip bin/web_nothreads_release.zip |
138 |
| - mv bin/godot.web.template_debug.wasm32.nothreads.zip bin/web_nothreads_debug.zip |
| 139 | + |
| 140 | + if [ -f bin/godot.web.template_release.wasm32.nothreads.zip ]; then |
| 141 | + mv bin/godot.web.template_release.wasm32.nothreads.zip bin/web_nothreads_release.zip |
| 142 | + else |
| 143 | + mv bin/godot.web.template_release.wasm32.zip bin/web_nothreads_release.zip |
| 144 | + fi |
| 145 | + |
| 146 | + if [ -f bin/godot.web.template_debug.wasm32.nothreads.zip ]; then |
| 147 | + mv bin/godot.web.template_debug.wasm32.nothreads.zip bin/web_nothreads_debug.zip |
| 148 | + else |
| 149 | + mv bin/godot.web.template_debug.wasm32.zip bin/web_nothreads_debug.zip |
| 150 | + fi |
| 151 | + |
139 | 152 | scons platform=web tools=no dlink_enabled=yes target=template_release custom_modules="../spine_godot" --jobs=$cpus
|
140 | 153 | scons platform=web tools=no dlink_enabled=yes target=template_debug custom_modules="../spine_godot" --jobs=$cpus
|
141 | 154 | mv bin/godot.web.template_release.wasm32.dlink.zip bin/web_dlink_release.zip
|
142 | 155 | mv bin/godot.web.template_debug.wasm32.dlink.zip bin/web_dlink_debug.zip
|
| 156 | + |
143 | 157 | scons platform=web tools=no threads=no dlink_enabled=yes target=template_release custom_modules="../spine_godot" --jobs=$cpus
|
144 | 158 | scons platform=web tools=no threads=no dlink_enabled=yes target=template_debug custom_modules="../spine_godot" --jobs=$cpus
|
145 |
| - mv bin/godot.web.template_release.wasm32.nothreads.dlink.zip bin/web_dlink_nothreads_release.zip |
146 |
| - mv bin/godot.web.template_debug.wasm32.nothreads.dlink.zip bin/web_dlink_nothreads_debug.zip |
| 159 | + |
| 160 | + if [ -f bin/godot.web.template_release.wasm32.nothreads.dlink.zip ]; then |
| 161 | + mv bin/godot.web.template_release.wasm32.nothreads.dlink.zip bin/web_dlink_nothreads_release.zip |
| 162 | + else |
| 163 | + mv bin/godot.web.template_release.wasm32.dlink.zip bin/web_dlink_nothreads_release.zip |
| 164 | + fi |
| 165 | + |
| 166 | + if [ -f bin/godot.web.template_debug.wasm32.nothreads.dlink.zip ]; then |
| 167 | + mv bin/godot.web.template_debug.wasm32.nothreads.dlink.zip bin/web_dlink_nothreads_debug.zip |
| 168 | + else |
| 169 | + mv bin/godot.web.template_debug.wasm32.dlink.zip bin/web_dlink_nothreads_debug.zip |
| 170 | + fi |
147 | 171 | elif [ "$platform" = "android" ]; then
|
148 | 172 | # --- ANROID ---
|
149 | 173 | # generates android_release.apk, android_debug.apk, android_source.zip
|
|
0 commit comments