Initial commit
Co-Authored-By: Eric Tuvesson <eric.tuvesson@gmail.com> Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com> Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com> Co-Authored-By: Anders Larsson <64838990+anders-topp@users.noreply.github.com> Co-Authored-By: Johan <4934465+joolsus@users.noreply.github.com> Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com> Co-Authored-By: victoratndl <99176179+victoratndl@users.noreply.github.com>
16
packages/noodl-editor/build/entitlements.mac.plist
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
||||
<true/>
|
||||
<key>com.apple.security.device.audio-input</key>
|
||||
<true/>
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
packages/noodl-editor/build/icon.icns
Normal file
BIN
packages/noodl-editor/build/icon.ico
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
packages/noodl-editor/build/icons/1024x1024.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
packages/noodl-editor/build/icons/128x128.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
packages/noodl-editor/build/icons/256x256.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
packages/noodl-editor/build/icons/32x32.png
Normal file
|
After Width: | Height: | Size: 671 B |
BIN
packages/noodl-editor/build/icons/48x48.png
Normal file
|
After Width: | Height: | Size: 925 B |
BIN
packages/noodl-editor/build/icons/512x512.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
packages/noodl-editor/build/icons/64x64.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
36
packages/noodl-editor/build/macos-notarize.js
Normal file
@@ -0,0 +1,36 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
var electron_notarize = require('electron-notarize');
|
||||
|
||||
module.exports = async function (params) {
|
||||
if (process.platform !== 'darwin') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!process.env.appleIdPassword) {
|
||||
console.log('apple password not set, skipping notarization');
|
||||
return;
|
||||
}
|
||||
|
||||
const appId = 'noodl.net.noodl';
|
||||
|
||||
const appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`);
|
||||
if (!fs.existsSync(appPath)) {
|
||||
throw new Error(`Cannot find application at: ${appPath}`);
|
||||
}
|
||||
|
||||
console.log(`Notarizing ${appId} found at ${appPath}`);
|
||||
|
||||
try {
|
||||
await electron_notarize.notarize({
|
||||
appBundleId: appId,
|
||||
appPath: appPath,
|
||||
appleId: process.env.appleId,
|
||||
appleIdPassword: process.env.appleIdPassword
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
console.log(`Done notarizing ${appId}`);
|
||||
};
|
||||