diff --git a/src/packager/plist.js b/src/packager/plist.js index f987382..d91d126 100644 --- a/src/packager/plist.js +++ b/src/packager/plist.js @@ -5,60 +5,60 @@ - BuildMachineOSBuild - 20F71 - CFBundleDevelopmentRegion - en - CFBundleExecutable - WebView - CFBundleIconFile - AppIcon - CFBundleIconName - AppIcon - CFBundleIdentifier - org.turbowarp.webviews.mac - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - WebView - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSupportedPlatforms - - MacOSX - - CFBundleVersion - 1 - DTCompiler - com.apple.compilers.llvm.clang.1_0 - DTPlatformBuild - 12E507 - DTPlatformName - macosx - DTPlatformVersion - 11.3 - DTSDKBuild - 20E214 - DTSDKName - macosx11.3 - DTXcode - 1251 - DTXcodeBuild - 12E507 - LSApplicationCategoryType - public.app-category.games - LSMinimumSystemVersion - 10.12 - NSMainStoryboardFile - Main - NSPrincipalClass - NSApplication - ExampleBooleanTrue - - ExampleBooleanFalse - + BuildMachineOSBuild + 20F71 + CFBundleDevelopmentRegion + en + CFBundleExecutable + WebView + CFBundleIconFile + AppIcon + CFBundleIconName + AppIcon + CFBundleIdentifier + org.turbowarp.webviews.mac + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + WebView + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 12E507 + DTPlatformName + macosx + DTPlatformVersion + 11.3 + DTSDKBuild + 20E214 + DTSDKName + macosx11.3 + DTXcode + 1251 + DTXcodeBuild + 12E507 + LSApplicationCategoryType + public.app-category.games + LSMinimumSystemVersion + 10.12 + NSMainStoryboardFile + Main + NSPrincipalClass + NSApplication + ExampleBooleanTrue + + ExampleBooleanFalse + */ @@ -77,10 +77,10 @@ const xmlToValue = (node) => { } else if (node.tagName === 'string') { return node.textContent; } else if (node.tagName === 'true') { - return true; - } else if (node.tagName === 'false') { - return false; - } + return true; + } else if (node.tagName === 'false') { + return false; + } console.warn('unknown plist xml', node); return null; }; @@ -107,9 +107,9 @@ const valueToXml = (doc, value) => { node.textContent = value; return node; } else if (typeof value === 'boolean') { - const node = doc.createElement(value.toString()); - return node; - } + const node = doc.createElement(value.toString()); + return node; + } console.warn('unknown plist value', value); return valueToXml(doc, `${value}`); };