-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added build script and simulator support. Closes #2
- Loading branch information
1 parent
cc1a2e4
commit c6c5beb
Showing
7 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ __pycache__ | |
*.a | ||
*.xcuserstate | ||
godot_apple_signin.xcodeproj/xcuserdata/* | ||
.idea | ||
.sconsign.dblite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
name=libgodot_apple_signin | ||
version=3.3.4-stable | ||
declare -a targets=("release" "release_debug") | ||
|
||
while getopts v: flag | ||
do | ||
case "${flag}" in | ||
v) version=${OPTARG};; | ||
*) echo "default version is $version";; | ||
esac | ||
done | ||
cd ./godot || exit | ||
git checkout "$version" | ||
./../scripts/timeout.sh scons platform=iphone target=debug --jobs=$(sysctl -n hw.logicalcpu) | ||
cd ../ | ||
|
||
for target in "${targets[@]}" | ||
do | ||
scons platform=ios arch=arm64 target="$target" target_name=$name version=3.2 --jobs=$(sysctl -n hw.logicalcpu) | ||
scons platform=ios simulator=on arch=x86_64 target="$target" target_name=$name version=3.2 --jobs=$(sysctl -n hw.logicalcpu) | ||
|
||
output="release" | ||
if [ "$target" = "release_debug" ]; then | ||
output="debug" | ||
fi | ||
lipo -create bin/$name.arm64-iphone."$target".a bin/$name.x86_64-simulator."$target".a -output bin/$name.$output.a | ||
rm bin/$name.arm64-iphone."$target".a | ||
rm bin/$name.x86_64-simulator."$target".a | ||
done | ||
|
||
zip dist/Prebuilt.plugin.for.Godot.v"$version".zip bin/$name.release.a bin/$name.debug.a ./godot_apple_signin.gdip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
( | ||
sleep 5 | ||
|
||
kill -s SIGTERM $$ && kill -0 $$ || exit 0 | ||
sleep 1 | ||
kill -s SIGKILL $$ | ||
) 2> /dev/null & | ||
|
||
exec "$@" |