Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jgraph/drawio-desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorAshraf Teleb <ashraf.teleb85@gmail.com>2019-06-10 20:00:50 +0300
committerAshraf Teleb <ashraf.teleb85@gmail.com>2019-06-10 20:00:50 +0300
commit3fd31a36b4d4656b76fb2093db4a9d6f6d2e3856 (patch)
tree72ba85ada7f6b8a290a0d2530f7ae64feccc29e6 /build
parent0cf4aa3cd0650b590a4adcd4d869af0039d1b72e (diff)
#93 Mac Notarization, #107 wrong exec name in Linux, #105 vsdx file association, #96 svg icon
Diffstat (limited to 'build')
-rw-r--r--build/entitlements.mac.plist8
-rw-r--r--build/icon.svg22
-rw-r--r--build/notarize.js18
3 files changed, 48 insertions, 0 deletions
diff --git a/build/entitlements.mac.plist b/build/entitlements.mac.plist
new file mode 100644
index 0000000..bb87459
--- /dev/null
+++ b/build/entitlements.mac.plist
@@ -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> \ No newline at end of file
diff --git a/build/icon.svg b/build/icon.svg
new file mode 100644
index 0000000..f7d2b20
--- /dev/null
+++ b/build/icon.svg
@@ -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>
diff --git a/build/notarize.js b/build/notarize.js
new file mode 100644
index 0000000..8123833
--- /dev/null
+++ b/build/notarize.js
@@ -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,
+ });
+}; \ No newline at end of file