Adapted for Prod
This commit is contained in:
parent
9854270413
commit
dede436d6f
9
main.js
9
main.js
@ -1,5 +1,4 @@
|
|||||||
const {app, BrowserWindow, ipcMain, Notification, nativeImage, Tray, Menu, shell} = require("electron")
|
const {app, BrowserWindow, ipcMain, Notification, nativeImage, Tray, Menu, shell} = require("electron")
|
||||||
const { autoUpdater, AppUpdater } = require("electron-updater")
|
|
||||||
const path = require("path")
|
const path = require("path")
|
||||||
const fs = require("fs")
|
const fs = require("fs")
|
||||||
const ipc = ipcMain
|
const ipc = ipcMain
|
||||||
@ -10,8 +9,6 @@ const { platform } = require("os");
|
|||||||
|
|
||||||
// [Function] Main Window Function
|
// [Function] Main Window Function
|
||||||
|
|
||||||
autoUpdater.autoDownload = false;
|
|
||||||
autoUpdater.autoInstallOnAppQuit = true;
|
|
||||||
|
|
||||||
async function createWindow() {
|
async function createWindow() {
|
||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
@ -38,9 +35,13 @@ async function createWindow() {
|
|||||||
|
|
||||||
await win.loadFile("templates/login/login.html")
|
await win.loadFile("templates/login/login.html")
|
||||||
|
|
||||||
|
/*const socket = io("ws://localhost:4000", {
|
||||||
|
autoConnect: false,
|
||||||
|
reconnection: false
|
||||||
|
|
||||||
|
});*/
|
||||||
|
|
||||||
const socket = io("ws://localhost:4000", {
|
const socket = io("ws://alpha.raphix.fr:4000", {
|
||||||
autoConnect: false,
|
autoConnect: false,
|
||||||
reconnection: false
|
reconnection: false
|
||||||
|
|
||||||
|
3064
package-lock.json
generated
3064
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -10,24 +10,11 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.raphix.fr/subsonics/manager.git"
|
"url": "https://git.raphix.fr/subsonics/manager.git"
|
||||||
},
|
},
|
||||||
"build": {
|
|
||||||
"appId":"fr.raphix.submanager",
|
|
||||||
"productName":"Submanager",
|
|
||||||
"win": {
|
|
||||||
"target": "nsis"
|
|
||||||
},
|
|
||||||
"directories": {
|
|
||||||
"output":"dist"
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Raphix",
|
"author": "Raphix",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"electron": "^24.1.2",
|
"electron": "^24.1.2",
|
||||||
"electron-builder": "^23.6.0",
|
|
||||||
"electron-updater": "^5.3.0",
|
|
||||||
"nodemon": "^2.0.22",
|
"nodemon": "^2.0.22",
|
||||||
"socket.io-client": "^4.6.1"
|
"socket.io-client": "^4.6.1"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user