mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix Linux file saving bugs in third party builds
Fix development mode not being recognized on linux and mac
This commit is contained in:
parent
4b2862af34
commit
8e7abc4897
@ -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
|
||||
|
2
main.js
2
main.js
@ -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
8
package-lock.json
generated
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user