add networks + random changes
This commit is contained in:
1 parent
bb36b2bd44
commit
5dc5a023b8
26 files changed
+1399
-1975
No files matched your search
+2
-4
@@ -88,7 +88,7 @@ function createWindow() {
|
||||
|
||||
mainWindow.loadURL(
|
||||
url.format({
|
||||
pathname: path.join(__dirname, 'dist', 'showy', 'browser', 'index.html'),
|
||||
pathname: path.join(__dirname, 'frontend_build', 'browser', 'index.html'),
|
||||
protocol: 'file:',
|
||||
slashes: true
|
||||
})
|
||||
@@ -99,14 +99,12 @@ function createWindow() {
|
||||
});
|
||||
|
||||
mainWindow.webContents.on('will-navigate', (event, url) => {
|
||||
event.preventDefault();
|
||||
console.log('hiiiiiiiii');
|
||||
event.preventDefault();;
|
||||
mainWindow.loadURL(`file://${path.join(__dirname, 'dist/showy/index.html')}`);
|
||||
});
|
||||
|
||||
mainWindow.webContents.on('did-fail-load', (event, url) => {
|
||||
// event.preventDefault();
|
||||
console.log('yoooo');
|
||||
mainWindow.loadURL(`file://${path.join(__dirname, 'dist/showy/browser/index.html')}`);
|
||||
});
|
||||
}
|
||||
+18
-6
@@ -7,32 +7,44 @@
|
||||
"electron": "electron .",
|
||||
"build-front": "ng build --configuration=production --base-href ./",
|
||||
"copy-front": "",
|
||||
"copy-back": "copyfiles backend/**/* dist/showy",
|
||||
"copy-back": "copyfiles ../backend/**/* ./frontend_build/",
|
||||
"generate-exe": "electron-builder"
|
||||
},
|
||||
"portable": true,
|
||||
"singleInstance": false,
|
||||
"build": {
|
||||
"appId": "xalo.showy",
|
||||
"appId": "x4lo.showy",
|
||||
"productName": "Showy",
|
||||
"win": {
|
||||
"target": [
|
||||
{
|
||||
"target": "dir",
|
||||
"arch": [
|
||||
"x64"
|
||||
"x64",
|
||||
"win32"
|
||||
]
|
||||
}
|
||||
],
|
||||
"icon": "src/assets/images/showy.ico"
|
||||
"icon": "../frontend/src/assets/images/showy.ico"
|
||||
},
|
||||
"directories": {
|
||||
"output": "dist"
|
||||
"output": "../dist/electron"
|
||||
}
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"axios": "^1.7.9",
|
||||
"body-parser": "^1.20.3",
|
||||
"copyfiles": "^2.4.1",
|
||||
"dotenv": "^16.4.7",
|
||||
"electron": "^34.0.1",
|
||||
"electron-builder": "^25.1.8"
|
||||
"electron-builder": "^25.1.8",
|
||||
"express": "^4.21.2",
|
||||
"multer": "1.4.5-lts.1",
|
||||
"mysql2": "^3.12.0",
|
||||
"sequelize": "^6.37.5",
|
||||
"sharp": "^0.33.5",
|
||||
"uuid": "^11.0.5"
|
||||
}
|
||||
}
|
||||
Generated
+1089
-6
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user