macOS: ensure bundled assets get extracted properly (#17444)

This commit is contained in:
Eric Warmenhoven 2025-01-20 15:38:29 -05:00 committed by GitHub
parent 6fda41900d
commit ef4512dd02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -454,7 +454,7 @@ static void frontend_darwin_get_env(int *argc, char *argv[],
application_data application_data
); );
NSString *bundleVersionString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]; NSString *bundleVersionString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];
NSInteger bundleVersion = [bundleVersionString integerValue]; NSInteger bundleVersion = [bundleVersionString integerValue] || 1;
configuration_set_uint(settings, settings->uints.bundle_assets_extract_version_current, (uint)bundleVersion); configuration_set_uint(settings, settings->uints.bundle_assets_extract_version_current, (uint)bundleVersion);
} }

View File

@ -1805,6 +1805,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CURRENT_PROJECT_VERSION = 1;
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
}; };
name = Debug; name = Debug;
@ -1815,6 +1816,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CURRENT_PROJECT_VERSION = 1;
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
}; };
name = Release; name = Release;