diff --git a/Sources/WireGuardApp/Config/Version.xcconfig b/Sources/WireGuardApp/Config/Version.xcconfig index 9438d1a..214f202 100644 --- a/Sources/WireGuardApp/Config/Version.xcconfig +++ b/Sources/WireGuardApp/Config/Version.xcconfig @@ -1,2 +1,8 @@ -VERSION_NAME = 1.0.1 -VERSION_ID = 6 +VERSION_NAME = 2.0.0 +VERSION_ID_IOS = 6 +VERSION_ID_MACOS = 7 + +MARKETING_VERSION = $(VERSION_NAME) +CURRENT_PROJECT_VERSION[sdk=iphoneos*] = $(VERSION_ID_IOS) +CURRENT_PROJECT_VERSION[sdk=iphonesimulator*] = $(VERSION_ID_IOS) +CURRENT_PROJECT_VERSION[sdk=macosx*] = $(VERSION_ID_MACOS) diff --git a/Sources/WireGuardApp/UI/iOS/Info.plist b/Sources/WireGuardApp/UI/iOS/Info.plist index 11e6f1c..dcd7415 100644 --- a/Sources/WireGuardApp/UI/iOS/Info.plist +++ b/Sources/WireGuardApp/UI/iOS/Info.plist @@ -68,9 +68,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.0.0 + $(MARKETING_VERSION) CFBundleVersion - $(VERSION_ID) + $(CURRENT_PROJECT_VERSION) ITSAppUsesNonExemptEncryption LSRequiresIPhoneOS diff --git a/Sources/WireGuardApp/UI/macOS/Info.plist b/Sources/WireGuardApp/UI/macOS/Info.plist index 7f4a515..52a0926 100644 --- a/Sources/WireGuardApp/UI/macOS/Info.plist +++ b/Sources/WireGuardApp/UI/macOS/Info.plist @@ -37,9 +37,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.0.0 + $(MARKETING_VERSION) CFBundleVersion - 1 + $(CURRENT_PROJECT_VERSION) ITSAppUsesNonExemptEncryption LSApplicationCategoryType diff --git a/Sources/WireGuardApp/UI/macOS/LoginItemHelper/Info.plist b/Sources/WireGuardApp/UI/macOS/LoginItemHelper/Info.plist index 185de16..e1eb594 100644 --- a/Sources/WireGuardApp/UI/macOS/LoginItemHelper/Info.plist +++ b/Sources/WireGuardApp/UI/macOS/LoginItemHelper/Info.plist @@ -1,15 +1,16 @@ - - + + ITSAppUsesNonExemptEncryption - + CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIconFile - + CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion @@ -19,9 +20,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - $(VERSION_NAME) + $(MARKETING_VERSION) CFBundleVersion - $(VERSION_ID) + $(CURRENT_PROJECT_VERSION) LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) NSHumanReadableCopyright @@ -29,7 +30,7 @@ NSPrincipalClass NSApplication LSBackgroundOnly - + com.wireguard.macos.app_id $(APP_ID_MACOS) com.wireguard.macos.app_group_id diff --git a/Sources/WireGuardNetworkExtension/Info.plist b/Sources/WireGuardNetworkExtension/Info.plist index 7e0801e..8bb75d3 100644 --- a/Sources/WireGuardNetworkExtension/Info.plist +++ b/Sources/WireGuardNetworkExtension/Info.plist @@ -1,9 +1,10 @@ - - + + ITSAppUsesNonExemptEncryption - + CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName @@ -19,9 +20,9 @@ CFBundlePackageType XPC! CFBundleShortVersionString - $(VERSION_NAME) + $(MARKETING_VERSION) CFBundleVersion - $(VERSION_ID) + $(CURRENT_PROJECT_VERSION) NSExtension NSExtensionPointIdentifier diff --git a/WireGuard.xcodeproj/project.pbxproj b/WireGuard.xcodeproj/project.pbxproj index bc9600c..1628f1d 100644 --- a/WireGuard.xcodeproj/project.pbxproj +++ b/WireGuard.xcodeproj/project.pbxproj @@ -1590,7 +1590,6 @@ CODE_SIGN_ENTITLEMENTS = Sources/WireGuardApp/UI/macOS/WireGuard.entitlements; CODE_SIGN_IDENTITY = "Mac Developer"; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 4; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = Sources/WireGuardApp/UI/macOS/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = AmneziaWG; @@ -1599,7 +1598,6 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 12.0; - MARKETING_VERSION = 2.0.0; PRODUCT_BUNDLE_IDENTIFIER = org.amnezia.awg; SDKROOT = macosx; SWIFT_EMIT_LOC_STRINGS = YES; @@ -1614,7 +1612,6 @@ CODE_SIGN_ENTITLEMENTS = Sources/WireGuardApp/UI/macOS/WireGuard.entitlements; CODE_SIGN_IDENTITY = "Mac Developer"; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 4; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = Sources/WireGuardApp/UI/macOS/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = AmneziaWG; @@ -1623,7 +1620,6 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 12.0; - MARKETING_VERSION = 2.0.0; PRODUCT_BUNDLE_IDENTIFIER = org.amnezia.awg; SDKROOT = macosx; SWIFT_EMIT_LOC_STRINGS = YES; @@ -1855,13 +1851,11 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/WireGuardApp/UI/iOS/WireGuard.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 4; INFOPLIST_FILE = Sources/WireGuardApp/UI/iOS/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 2.0.0; PRODUCT_BUNDLE_IDENTIFIER = org.amnezia.awg; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; @@ -1874,13 +1868,11 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = Sources/WireGuardApp/UI/iOS/WireGuard.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 4; INFOPLIST_FILE = Sources/WireGuardApp/UI/iOS/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 2.0.0; PRODUCT_BUNDLE_IDENTIFIER = org.amnezia.awg; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0;