Fixes localization in Universal bundles on macOS

This commit is contained in:
Dmitry Vedenko 2022-12-08 16:38:23 +03:00
parent 8d63383548
commit 91c5df95c0
No known key found for this signature in database
GPG Key ID: F4C37A6204F983A2
2 changed files with 7 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,12 @@ async function create (targetPath, inputBundles) {
firstBundle = await fileUtils.getAudacityMacOSBundleFiles(inputBundles[0]);
await fileUtils.copyFiles(inputBundles[0], firstBundle.misc, targetPath);
// Audacity creates empty en.lproj directory in the bundle
enlprojPath = path.join(targetPath, 'Contents', 'Resources', 'en.lproj');
if (!fs.existsSync(enlprojPath)) {
fs.mkdirSync(enlprojPath, { recursive: true });
}
const binaries = [
...firstBundle.MacOS,
...firstBundle.Frameworks.dylib,