1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Allow specifying build number for Xcode projects

This commit is contained in:
reuk 2021-04-27 22:09:41 +01:00
parent 768c2f6db1
commit f5a7d4eea5
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
7 changed files with 38 additions and 10 deletions

View file

@ -248,7 +248,8 @@ juce::build_tools::PlistOptions parsePlistOptions (const juce::File& file,
updateField ("SHOULD_ADD_STORYBOARD", result.shouldAddStoryboardToProject);
updateField ("LAUNCH_STORYBOARD_FILE", result.storyboardName);
updateField ("PROJECT_NAME", result.projectName);
updateField ("VERSION", result.version);
updateField ("VERSION", result.marketingVersion);
updateField ("BUILD_VERSION", result.currentProjectVersion);
updateField ("COMPANY_COPYRIGHT", result.companyCopyright);
updateField ("DOCUMENT_EXTENSIONS", result.documentExtensions);
updateField ("FILE_SHARING_ENABLED", result.fileSharingEnabled);
@ -274,7 +275,7 @@ juce::build_tools::PlistOptions parsePlistOptions (const juce::File& file,
updateField ("ICON_FILE", result.iconFile);
result.type = type;
result.versionAsHex = juce::build_tools::getVersionAsHexInteger (result.version);
result.versionAsHex = juce::build_tools::getVersionAsHexInteger (result.marketingVersion);
if (result.storyboardName.isNotEmpty())
result.storyboardName = result.storyboardName.fromLastOccurrenceOf ("/", false, false)