mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ios: Add entitlements.plist and codesign the generated ipa with said plist in createipa.sh
This commit is contained in:
12
engine/platform/ios/bundle/entitlements.plist
Normal file
12
engine/platform/ios/bundle/entitlements.plist
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>application-identifier</key>
|
||||
<string>AAAAAAAAA.su.xash.engine</string>
|
||||
<key>com.apple.developer.team-identifier</key>
|
||||
<string>AAAAAAAAA</string>
|
||||
<key>get-task-allow</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -3,7 +3,6 @@
|
||||
#cd into script directory
|
||||
cd "${0%/*}"
|
||||
BUILDDIR=$(realpath ../../build)
|
||||
echo $BUILDDIR
|
||||
cd "../../engine/platform/ios/bundle"
|
||||
|
||||
if [ -d $BUILDDIR ]; then
|
||||
@@ -12,11 +11,8 @@ if [ -d $BUILDDIR ]; then
|
||||
cp -r "$BUILDDIR/ios/dlls" "$BUILDDIR/ios/xash3d.app"
|
||||
cp -r "$BUILDDIR/ios/cl_dlls" "$BUILDDIR/ios/xash3d.app"
|
||||
cp -r "$BUILDDIR/ios/cstrike" "$BUILDDIR/ios/xash3d.app"
|
||||
echo "Generating dSYMs for cl_dlls"
|
||||
find "$BUILDDIR/ios/xash3d.app/cl_dlls" -name "*.dylib" -type f -exec dsymutil {} \;
|
||||
echo "Generating dSYMS for dlls"
|
||||
find "$BUILDDIR/ios/xash3d.app/dlls" -name "*.dylib" -type f -exec dsymutil {} \;
|
||||
cp *.plist "$BUILDDIR/ios/xash3d.app"
|
||||
cp Info.plist "$BUILDDIR/ios/xash3d.app"
|
||||
cp ftp_commands.plist "$BUILDDIR/ios/xash3d.app"
|
||||
if [ ! -d $BUILDDIR/SDL2.framework ]; then
|
||||
echo "Couldn't find SDL2.framework, place it in the build directory"
|
||||
exit 1
|
||||
@@ -25,9 +21,10 @@ if [ -d $BUILDDIR ]; then
|
||||
|
||||
cd ../../../../
|
||||
|
||||
./waf install --destdir="$BUILDDIR/ios/xash3d.app"
|
||||
find "$BUILDDIR/ios/xash3d.app" -name "*.dylib" -type f -exec dsymutil {} \;
|
||||
dsymutil "$BUILDDIR/ios/xash3d.app/xash"
|
||||
./waf build install --destdir="$BUILDDIR/ios/xash3d.app"
|
||||
#echo "Generating dSYMs"
|
||||
#find "$BUILDDIR/ios/xash3d.app" -name "*.dylib" -type f -exec dsymutil {} \;
|
||||
#dsymutil "$BUILDDIR/ios/xash3d.app/xash"
|
||||
|
||||
cd $BUILDDIR
|
||||
|
||||
@@ -37,6 +34,10 @@ if [ -d $BUILDDIR ]; then
|
||||
cp -r "$BUILDDIR/ios/xash3d.app" ios/Payload/
|
||||
rm -r "$BUILDDIR/ios/xash3d.app"
|
||||
cd ios
|
||||
codesign --entitlements $(realpath ../../engine/platform/ios/bundle/entitlements.plist) --sign "-" --force Payload/xash3d.app
|
||||
if [ -e ../xash3d.ipa ]; then
|
||||
rm ../xash3d.ipa
|
||||
fi
|
||||
zip -q -r ../xash3d.ipa Payload
|
||||
else
|
||||
echo "Couldn't find the build directory, compile the engine before running this script!"
|
||||
|
||||
Reference in New Issue
Block a user