From 9d7624ba507e54a8d0c91c1815b1b571b2feffed Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 11 Apr 2020 11:35:30 -0400 Subject: [PATCH] Use project settings to control version Info.plist keys. This also enables apple-generic versioning. --- Info.plist | 6 +++--- MacGDBp.xcodeproj/project.pbxproj | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Info.plist b/Info.plist index 88342fe..f2eafc4 100644 --- a/Info.plist +++ b/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable ${EXECUTABLE_NAME} CFBundleGetInfoString - ${EXECUTABLE_NAME} 2.0.1, Copyright 2007-2020 Blue Static + ${EXECUTABLE_NAME} ${MARKETING_VERSION}, Copyright 2007-2020 Blue Static CFBundleIconFile MacGDBp CFBundleIdentifier @@ -19,11 +19,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.0.1 + ${MARKETING_VERSION} CFBundleSignature ???? CFBundleVersion - 201.0 + ${CURRENT_PROJECT_VERSION} NSMainNibFile MainMenu NSPrincipalClass diff --git a/MacGDBp.xcodeproj/project.pbxproj b/MacGDBp.xcodeproj/project.pbxproj index 744b371..339a0e4 100644 --- a/MacGDBp.xcodeproj/project.pbxproj +++ b/MacGDBp.xcodeproj/project.pbxproj @@ -736,6 +736,7 @@ CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_ENTITLEMENTS = MacGDBp.entitlements; COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 201.0; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)", @@ -746,8 +747,10 @@ INSTALL_PATH = "$(HOME)/Applications"; LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks"; MACGDBP_APP_SANDBOX = 1; + MARKETING_VERSION = 2.0.1; PRODUCT_BUNDLE_IDENTIFIER = org.bluestatic.macgdbp; PRODUCT_NAME = MacGDBp; + VERSIONING_SYSTEM = "apple-generic"; WRAPPER_EXTENSION = app; }; name = "Release-AppSandbox"; @@ -778,6 +781,7 @@ CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 201.0; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)", @@ -788,8 +792,10 @@ INSTALL_PATH = "$(HOME)/Applications"; LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks"; MACGDBP_APP_SANDBOX = 0; + MARKETING_VERSION = 2.0.1; PRODUCT_BUNDLE_IDENTIFIER = org.bluestatic.macgdbp; PRODUCT_NAME = MacGDBp; + VERSIONING_SYSTEM = "apple-generic"; WRAPPER_EXTENSION = app; }; name = Debug; @@ -802,6 +808,7 @@ CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 201.0; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)", @@ -812,8 +819,10 @@ INSTALL_PATH = "$(HOME)/Applications"; LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks"; MACGDBP_APP_SANDBOX = 0; + MARKETING_VERSION = 2.0.1; PRODUCT_BUNDLE_IDENTIFIER = org.bluestatic.macgdbp; PRODUCT_NAME = MacGDBp; + VERSIONING_SYSTEM = "apple-generic"; WRAPPER_EXTENSION = app; }; name = Release; -- 2.43.5