This commit is contained in:
parent
0cf4aa3cd0
commit
3fd31a36b4
8
build/entitlements.mac.plist
Normal file
8
build/entitlements.mac.plist
Normal file
@ -0,0 +1,8 @@
|
||||
<?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-unsigned-executable-memory</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
22
build/icon.svg
Normal file
22
build/icon.svg
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 161.6 161.6" style="enable-background:new 0 0 161.6 161.6;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#F08705;}
|
||||
.st1{fill:#DF6C0C;}
|
||||
.st2{fill:#FFFFFF;}
|
||||
.st3{fill:#333333;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st0" d="M161.6,154.7c0,3.9-3.2,6.9-6.9,6.9H6.9c-3.9,0-6.9-3.2-6.9-6.9V6.9C0,3,3.2,0,6.9,0h147.8
|
||||
c3.9,0,6.9,3.2,6.9,6.9L161.6,154.7L161.6,154.7z"/>
|
||||
<g>
|
||||
<path class="st1" d="M161.6,154.7c0,3.9-3.2,6.9-6.9,6.9H55.3l-32.2-32.7l20-32.7l59.4-73.8l58.9,60.7L161.6,154.7z"/>
|
||||
</g>
|
||||
<path class="st2" d="M132.7,90.3h-17l-18-30.6c4-0.8,7-4.4,7-8.6V28c0-4.9-3.9-8.8-8.8-8.8h-30c-4.9,0-8.8,3.9-8.8,8.8v23.1
|
||||
c0,4.3,3,7.8,6.9,8.6L46,90.4H29c-4.9,0-8.8,3.9-8.8,8.8v23.1c0,4.9,3.9,8.8,8.8,8.8h30c4.9,0,8.8-3.9,8.8-8.8V99.2
|
||||
c0-4.9-3.9-8.8-8.8-8.8h-2.9L73.9,60h13.9l17.9,30.4h-3c-4.9,0-8.8,3.9-8.8,8.8v23.1c0,4.9,3.9,8.8,8.8,8.8h30
|
||||
c4.9,0,8.8-3.9,8.8-8.8V99.2C141.5,94.3,137.6,90.3,132.7,90.3z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
18
build/notarize.js
Normal file
18
build/notarize.js
Normal file
@ -0,0 +1,18 @@
|
||||
require('dotenv').config();
|
||||
const { notarize } = require('electron-notarize');
|
||||
|
||||
exports.default = async function notarizing(context) {
|
||||
const { electronPlatformName, appOutDir } = context;
|
||||
const appName = context.packager.appInfo.productFilename;
|
||||
|
||||
if (electronPlatformName !== 'darwin') {
|
||||
return;
|
||||
}
|
||||
|
||||
return await notarize({
|
||||
appBundleId: 'com.jgraph.drawio.desktop',
|
||||
appPath: `${appOutDir}/${appName}.app`,
|
||||
appleId: process.env.APPLEID,
|
||||
appleIdPassword: process.env.APPLEIDPASS,
|
||||
});
|
||||
};
|
@ -30,15 +30,20 @@
|
||||
"artifactName": "${productName}-${version}-portable.${ext}"
|
||||
},
|
||||
"mac": {
|
||||
"hardenedRuntime": true,
|
||||
"gatekeeperAssess": false,
|
||||
"entitlements": "build/entitlements.mac.plist",
|
||||
"entitlementsInherit": "build/entitlements.mac.plist",
|
||||
"category": "public.app-category.graphics-design",
|
||||
"target": [
|
||||
"zip",
|
||||
"dmg"
|
||||
]
|
||||
},
|
||||
"dmg": {},
|
||||
"afterSign": "build/notarize.js",
|
||||
"dmg": {
|
||||
},
|
||||
"linux": {
|
||||
"executableName": "draw-io",
|
||||
"category": "Graphics",
|
||||
"maintainer": "JGraph <support@draw.io>",
|
||||
"target": [
|
||||
@ -48,11 +53,20 @@
|
||||
"snap"
|
||||
]
|
||||
},
|
||||
"fileAssociations": {
|
||||
"ext": "drawio",
|
||||
"name": "draw.io Diagram",
|
||||
"description": "draw.io Diagram",
|
||||
"mimeType": "application/vnd.jgraph.mxfile",
|
||||
"role": "Editor"
|
||||
}
|
||||
"fileAssociations": [
|
||||
{
|
||||
"ext": "drawio",
|
||||
"name": "draw.io Diagram",
|
||||
"description": "draw.io Diagram",
|
||||
"mimeType": "application/vnd.jgraph.mxfile",
|
||||
"role": "Editor"
|
||||
},
|
||||
{
|
||||
"ext": "vsdx",
|
||||
"name": "VSDX Document",
|
||||
"description": "VSDX Document",
|
||||
"mimeType": "application/vnd.visio",
|
||||
"role": "Editor"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -35,8 +35,10 @@
|
||||
"crc": "^3.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"dotenv": "^8.0.0",
|
||||
"electron": "^5.0.1",
|
||||
"electron-builder": "^20.41.0",
|
||||
"electron-builder": "^20.43.0",
|
||||
"electron-notarize": "^0.1.1",
|
||||
"sumchecker": "^2.0.2"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user