Skip to content

Commit

Permalink
chore: more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Jun 19, 2024
1 parent a98f657 commit 62132d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const main = async () => {
target: [
{
target: 'default',
arch: ['x64', 'arm64'],
arch: ['arm64'],
},
],
publish: publishOptions,
Expand All @@ -34,9 +34,9 @@ const main = async () => {
gatekeeperAssess: false,
entitlements: 'electron/entitlements.mac.plist',
entitlementsInherit: 'electron/entitlements.mac.plist',
notarize: {
teamId: process.env.APPLETEAMID,
},
// notarize: {
// teamId: process.env.APPLETEAMID,
// },
},
},
});
Expand Down
5 changes: 3 additions & 2 deletions electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,16 +280,17 @@ async function launchDaemon() {
// Free up backend port if already occupied
try {
await fetch(`http://localhost:${appConfig.ports.prod.operate}/api`);
console.log('Killing backend server!');
appendLog('Killing backend server!');
let endpoint = fs
.readFileSync(`${OperateDirectory}/operate.kill`)
.toString()
.trimLeft()
.trimRight();
await fetch(`http://localhost:${appConfig.ports.prod.operate}/${endpoint}`);
} catch (err) {
console.log('Backend not running!');
appendLog('Backend not running!');
}
appendLog(`Starting backend server! Opeate cmd: ${OperateCmd}`);

const check = new Promise(function (resolve, _reject) {
operateDaemon = spawn(
Expand Down

0 comments on commit 62132d8

Please sign in to comment.