Fix Linux file saving bugs in third party builds

Fix development mode not being recognized on linux and mac
This commit is contained in:
JannisX11 2024-06-28 21:18:22 +02:00
parent 4b2862af34
commit 8e7abc4897
4 changed files with 6 additions and 7 deletions

View File

@ -19,7 +19,6 @@ jobs:
- name: "Linux"
os: linux
script:
- npm install electron@30.0.3
- npm run prepublish
- sudo apt-get install rpm
- electron-builder --publish=onTagOrDraft

View File

@ -269,7 +269,7 @@ app.on('ready', () => {
}
app_was_loaded = true;
if (process.execPath && process.execPath.match(/electron\.\w+$/)) {
if (process.execPath && process.execPath.match(/node_modules[\\\/]electron/)) {
console.log('[Blockbench] App launched in development mode')

8
package-lock.json generated
View File

@ -17,7 +17,7 @@
"devDependencies": {
"@electron/notarize": "^2.3.0",
"blockbench-types": "^4.6.1",
"electron": "^30.0.8",
"electron": "^30.0.3",
"electron-builder": "^24.13.3",
"webpack": "^5.74.0",
"webpack-cli": "^4.5.0",
@ -4097,9 +4097,9 @@
}
},
"node_modules/electron": {
"version": "30.0.8",
"resolved": "https://registry.npmjs.org/electron/-/electron-30.0.8.tgz",
"integrity": "sha512-ivzXJJ/9gdb4oOw+5SDuaZpSInz8C+Z021dKZfFLMltKbDa4sSqt5cRBiUg7J36Z2kdus+Jai0bdHWutYE9wAA==",
"version": "30.0.3",
"resolved": "https://registry.npmjs.org/electron/-/electron-30.0.3.tgz",
"integrity": "sha512-h+suwx6e0fnv/9wi0/cmCMtG+4LrPzJZa+3DEEpxcPcP+pcWnBI70t8QspxgMNIh2wzXLMD9XVqrLkEbiBAInw==",
"hasInstallScript": true,
"dependencies": {
"@electron/get": "^2.0.0",

View File

@ -110,7 +110,7 @@
"devDependencies": {
"@electron/notarize": "^2.3.0",
"blockbench-types": "^4.6.1",
"electron": "^30.0.8",
"electron": "^30.0.3",
"electron-builder": "^24.13.3",
"webpack": "^5.74.0",
"webpack-cli": "^4.5.0",