Adapted for Prod

This commit is contained in:
CICD - Pipeline 2023-04-26 23:56:18 +02:00
parent 9854270413
commit dede436d6f
3 changed files with 80 additions and 3006 deletions

View File

@ -1,5 +1,4 @@
const {app, BrowserWindow, ipcMain, Notification, nativeImage, Tray, Menu, shell} = require("electron")
const { autoUpdater, AppUpdater } = require("electron-updater")
const path = require("path")
const fs = require("fs")
const ipc = ipcMain
@ -10,8 +9,6 @@ const { platform } = require("os");
// [Function] Main Window Function
autoUpdater.autoDownload = false;
autoUpdater.autoInstallOnAppQuit = true;
async function createWindow() {
const win = new BrowserWindow({
@ -38,9 +35,13 @@ async function createWindow() {
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,
reconnection: false

3064
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,24 +10,11 @@
"type": "git",
"url": "https://git.raphix.fr/subsonics/manager.git"
},
"build": {
"appId":"fr.raphix.submanager",
"productName":"Submanager",
"win": {
"target": "nsis"
},
"directories": {
"output":"dist"
}
},
"keywords": [],
"author": "Raphix",
"license": "ISC",
"dependencies": {
"electron": "^24.1.2",
"electron-builder": "^23.6.0",
"electron-updater": "^5.3.0",
"nodemon": "^2.0.22",
"socket.io-client": "^4.6.1"
},