[godot] More CI scripts work, web templates.

This commit is contained in:
Mario Zechner 2022-06-29 11:54:28 +02:00
parent a6f4bc0e8a
commit 3e98524b24
2 changed files with 9 additions and 2 deletions

View File

@ -72,7 +72,14 @@ elif [ "$platform" = "ios" ]; then
pushd ios_xcode pushd ios_xcode
zip -q -9 -r ../iphone.zip * zip -q -9 -r ../iphone.zip *
popd popd
popd popd
elif [ "$platform" = "web" ]; then
# --- WEB ---
# generates
scons platform=javascript tools=no target=release custom_modules="../spine_godot" -j8
scons platform=javascript tools=no target=release_debug custom_modules="../spine_godot" -j8
mv bin/godot.javascript.opt.zip bin/webassembly_release.zip
mv bin/godot.javascript.opt.debug.zip bin/webassembly_debug.zip
else else
echo "Unknown platform: $platform" echo "Unknown platform: $platform"
exit 1 exit 1

View File

@ -39,7 +39,7 @@ if [ `uname` == 'Darwin' ] && [ $dev = "false" ]; then
strip -S -x godot.osx.tools.universal strip -S -x godot.osx.tools.universal
cp godot.osx.tools.universal Godot.app/Contents/MacOS/Godot cp godot.osx.tools.universal Godot.app/Contents/MacOS/Godot
else else
lipo -create godot.osx.opt.tools.x86_64 godot.osx.opt.tools.arm64 -output godot.osx.tools.universal lipo -create godot.osx.opt.tools.x86_64 godot.osx.opt.tools.arm64 -output godot.osx.opt.tools.universal
strip -S -x godot.osx.opt.tools.universal strip -S -x godot.osx.opt.tools.universal
cp godot.osx.opt.tools.universal Godot.app/Contents/MacOS/Godot cp godot.osx.opt.tools.universal Godot.app/Contents/MacOS/Godot
fi fi