Updated README, fixed config bug, added build to notarize.js
This commit is contained in:
parent
6fb6407f6a
commit
4936c76770
3 changed files with 9 additions and 2 deletions
|
|
@ -48,6 +48,8 @@ Debug electron-osx-sign:
|
||||||
|
|
||||||
### Some things to note:
|
### Some things to note:
|
||||||
|
|
||||||
|
If new package.json, build manually. Only copies src code into /Resources/app.
|
||||||
|
|
||||||
#### Gatekeeper Assess
|
#### Gatekeeper Assess
|
||||||
Electron-osx-sign seems to have a bug where the sign will fail if "gatekeeper-assess" is true (default).
|
Electron-osx-sign seems to have a bug where the sign will fail if "gatekeeper-assess" is true (default).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ const sign = require("electron-osx-sign").signAsync;
|
||||||
const notarize = require("electron-notarize").notarize;
|
const notarize = require("electron-notarize").notarize;
|
||||||
|
|
||||||
const app = "Electron.app";
|
const app = "Electron.app";
|
||||||
|
const dir = `${app}/Contents/Resources/app`;
|
||||||
|
|
||||||
const runShellCommand = (cmd) => (new Promise((resolve, reject) => {
|
const runShellCommand = (cmd) => (new Promise((resolve, reject) => {
|
||||||
exec(cmd, (error, stdout, stderr) => {
|
exec(cmd, (error, stdout, stderr) => {
|
||||||
|
|
@ -30,7 +31,11 @@ const notarizeConfig = {
|
||||||
|
|
||||||
try
|
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}`);
|
await runShellCommand(`xattr -cr ${app}`);
|
||||||
|
|
||||||
console.log("Signing...");
|
console.log("Signing...");
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,6 @@ const DOMAIN = "crimata.com";
|
||||||
const prod = !process.defaultApp;
|
const prod = !process.defaultApp;
|
||||||
|
|
||||||
module.exports = {
|
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`
|
API: prod ? `https://${DOMAIN}/api` : `http://localhost:8761`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue