apple: extract bundled assets.zip based on bundle version (#17231)

This commit is contained in:
Eric Warmenhoven 2024-12-04 02:37:01 -05:00 committed by GitHub
parent 14a0c186f3
commit d642e38423
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -464,8 +464,9 @@ static void frontend_darwin_get_env(int *argc, char *argv[],
settings->paths.bundle_assets_dst,
application_data
);
/* TODO/FIXME: Just hardcode this for now */
configuration_set_uint(settings, settings->uints.bundle_assets_extract_version_current, 1);
NSString *bundleVersionString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];
NSInteger bundleVersion = [bundleVersionString integerValue];
configuration_set_uint(settings, settings->uints.bundle_assets_extract_version_current, (uint)bundleVersion);
}
CFTemporaryDirectory(temp_dir, sizeof(temp_dir));