electron: Generate icns icon for macOS apps

This commit is contained in:
Thomas Weber committed 2022-06-26 19:26:06 -05:00
1 parent be3fd4f74b
commit 751a5f66da
1 file changed
+3
+3
View File
@@ -672,6 +672,9 @@ cd "$(dirname "$0")"
for (const type of HELPERS) {
await this.updatePlistInZip(zip, `${contentsPrefix}Frameworks/Electron Helper${type}.app/Contents/Info.plist`);
}
const icns = await pngToAppleICNS(icon);
zip.file(`${contentsPrefix}Resources/electron.icns`, icns);
}
return zip;