ios: Now with more sed.

This commit is contained in:
Cory McWilliams 2025-02-18 21:46:04 -05:00
parent 8f4b6e83eb
commit f02423d084
2 changed files with 3 additions and 3 deletions

View File

@ -914,9 +914,9 @@ src/ios/Info.plist : $(firstword $(MAKEFILE_LIST))
@echo "[ios_version] $@"
@cat $@ | \
tr '\n' '^' | \
sed -r -e 's@(<key>CFBundleShortVersionString</key>\s*<string>)[0-9.]*(</string>)@\1$(VERSION_NUMBER)\2@' | \
sed -r -e 's@(<key>CFBundleShortVersionString</key>\^[[:space:]]*<string>)[0-9.]*(</string>)@\1$(VERSION_NUMBER:%-wip=%)\2@' | \
tr '^' '\n' > \
$@
$@.tmp && mv $@.tmp $@ || rm -f $@.tmp
##
## Android targets:

View File

@ -13,7 +13,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.0.28-wip</string>
<string>0.0.28</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>