ios: This fixes the build on macos and runs in the simulator.

This commit is contained in:
Cory McWilliams 2025-02-18 21:28:03 -05:00
parent 3029919553
commit 8f4b6e83eb
2 changed files with 10 additions and 8 deletions

View File

@ -912,8 +912,10 @@ src/android/AndroidManifest.xml : $(firstword $(MAKEFILE_LIST))
src/ios/Info.plist : $(firstword $(MAKEFILE_LIST)) src/ios/Info.plist : $(firstword $(MAKEFILE_LIST))
@echo "[ios_version] $@" @echo "[ios_version] $@"
@sed -z -r -i \ @cat $@ | \
-e 's@(<key>CFBundleShortVersionString</key>\s*<string>)[0-9.]*(</string>)@\1$(VERSION_NUMBER)\2@' \ tr '\n' '^' | \
sed -r -e 's@(<key>CFBundleShortVersionString</key>\s*<string>)[0-9.]*(</string>)@\1$(VERSION_NUMBER)\2@' | \
tr '^' '\n' > \
$@ $@
## ##
@ -973,11 +975,11 @@ out/apk/classes.dex: $(CLASS_FILES)
@$(ANDROID_BUILD_TOOLS)/d8 --lib $(ANDROID_PLATFORM)/android.jar --output $(dir $@) out/classes/com/unprompted/tildefriends/*.class @$(ANDROID_BUILD_TOOLS)/d8 --lib $(ANDROID_PLATFORM)/android.jar --output $(dir $@) out/classes/com/unprompted/tildefriends/*.class
PACKAGE_DIRS := \ PACKAGE_DIRS := \
apps/ \ apps \
core/ \ core \
deps/codemirror/ \ deps/codemirror \
deps/prettier/ \ deps/prettier \
deps/lit/ deps/lit
RAW_FILES := $(sort $(filter-out apps/blog% apps/issues% apps/welcome% apps/journal% %.map, $(shell find $(PACKAGE_DIRS) -type f -not -name '.*'))) RAW_FILES := $(sort $(filter-out apps/blog% apps/issues% apps/welcome% apps/journal% %.map, $(shell find $(PACKAGE_DIRS) -type f -not -name '.*')))

View File

@ -19,7 +19,7 @@
<string>iPhoneOS</string> <string>iPhoneOS</string>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>6</string> <string>7</string>
<key>DTPlatformName</key> <key>DTPlatformName</key>
<string>iphoneos</string> <string>iphoneos</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>