]> Repos - mime-chat/commitdiff
Updated README, fixed config bug, added build to notarize.js
authorAndrew Gundersen <gundersena@xavier.edu>
Mon, 14 Mar 2022 11:30:59 +0000 (06:30 -0500)
committerAndrew Gundersen <gundersena@xavier.edu>
Mon, 14 Mar 2022 11:30:59 +0000 (06:30 -0500)
README.md
notarize.js
src/config.js

index ea78a49e74e85fad5ff52100f58cea98e983a83f..1bec458de59494f17154c35784b95756da1909e5 100644 (file)
--- a/README.md
+++ b/README.md
@@ -48,6 +48,8 @@ Debug electron-osx-sign:
 
 ### Some things to note:
 
+If new package.json, build manually. Only copies src code into /Resources/app.
+
 #### Gatekeeper Assess
 Electron-osx-sign seems to have a bug where the sign will fail if "gatekeeper-assess" is true (default).
 
index 8f87192a6bf5863ca4aaa046640f3efb5bf2d7fe..39449da271f085c6aaa584f5e81201ef3573494b 100644 (file)
@@ -3,6 +3,7 @@ const sign = require("electron-osx-sign").signAsync;
 const notarize = require("electron-notarize").notarize;
 
 const app = "Electron.app";
+const dir = `${app}/Contents/Resources/app`;
 
 const runShellCommand = (cmd) => (new Promise((resolve, reject) => {
     exec(cmd, (error, stdout, stderr) => {
@@ -30,7 +31,11 @@ const notarizeConfig = {
 
     try 
     {
-        console.log("Cleaning App...");
+        console.log("Building...");
+        await runShellCommand(`rm -rf ${dir} && mkdir ${dir} && cp -r {package.json,src,node_modules} ${dir}
+        `);
+
+        console.log("Cleaning...");
         await runShellCommand(`xattr -cr ${app}`);
 
         console.log("Signing...");
index b3b11049ec668d8cbc3b6322d175fa9351615d9c..cabf8f3e6709f16629734725eb232caa8b85a42b 100644 (file)
@@ -5,6 +5,6 @@ const DOMAIN = "crimata.com";
 const prod = !process.defaultApp;
 
 module.exports = {
-    PLATFORM: prod ? `http://app.${DOMAIN}` : `http://localhost:8760`,
+    PLATFORM: prod ? `https://app.${DOMAIN}` : `http://localhost:8760`,
     API: prod ? `https://${DOMAIN}/api` : `http://localhost:8761`
 }