Merge pull request #2116 from NAmorim/develop

Workflow with MacOS Electron Binary
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-10-12 11:43:20 -04:00
commit c841c2c6bc
4 files changed
+8 -8

No files matched your search

+3 -3
View File
@@ -11,16 +11,16 @@ jobs:
strategy:
matrix:
os: [windows-latest]
os: [windows-latest, macos-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 14
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
+1 -1
View File
@@ -63,7 +63,7 @@
//console.log('[INFO] Client -> Task Manager Server -> runTask -> Task Name = ' + message.event.taskName)
//console.log('[INFO] Client -> Task Manager Server -> runTask -> Task Id = ' + message.event.taskId)
let path = './TaskServerRoot.js'
let path = global.env.BASE_PATH + '/TaskServerRoot.js'
/* Workarround to avoid having the same debug port at the forked process which makes it crash. */
for (let i = 0; i < process.execArgv.length; i++) {
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+4 -4
View File
@@ -3,7 +3,7 @@ const {app, Menu, BrowserWindow} = require('electron')
const path = require('path')
const fs = require('fs')
// To check for update on Github repo
const {autoUpdater} = require("electron-updater");
const {autoUpdater} = require("electron-updater")
// Enable non contribution mode (test)
process.env.SA_MODE = 'gitDisable'
@@ -23,11 +23,11 @@ run()
function run() {
if (process.env.PORTABLE_EXECUTABLE_DIR) {
process.env.PORTABLE_USER_DOCUMENTS = app.getPath("documents")
}
process.env.PORTABLE_USER_DOCUMENTS = app.getPath("userData")
}
const { fork } = require('child_process')
fork(path.join(__dirname, './PlatformRoot.js'), ["noBrowser"])
fork(path.join(__dirname, '/PlatformRoot.js'), ["noBrowser"])
server_ready = true
if (app_ready) open()