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] $@" @echo "[ios_version] $@"
@cat $@ | \ @cat $@ | \
tr '\n' '^' | \ 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' > \ tr '^' '\n' > \
$@ $@.tmp && mv $@.tmp $@ || rm -f $@.tmp
## ##
## Android targets: ## Android targets:

View File

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