[fix] パッケージ化すると自身のバージョン情報を取得できなくなっていたのを修正

This commit is contained in:
ocogeclub 2022-01-14 17:37:03 +09:00
parent d0552778d4
commit 36683b31ba
4 changed files with 1580 additions and 18285 deletions

File diff suppressed because it is too large Load Diff

View File

@ -100,7 +100,9 @@ app.whenReady().then(() => {
label: 'About',
click: () => {
var os = require('os')
var detail = 'Version: ' + process.env.npm_package_version + '\n'
const { version } = require('./package.json')
// var detail = 'Version: ' + process.env.npm_package_version + '\n'
var detail = 'Version: ' + version + '\n'
+ 'Node.js: ' + process.versions.node + '\n'
+ 'Chrome: ' + process.versions.chrome + '\n'
+ 'Electron: ' + process.versions.electron + '\n'

1730
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@
"@electron-forge/cli": "^6.0.0-beta.63",
"@electron-forge/maker-deb": "^6.0.0-beta.63",
"@electron-forge/maker-rpm": "^6.0.0-beta.63",
"@electron-forge/maker-squirrel": "6.0.0-beta.63",
"@electron-forge/maker-squirrel": "^6.0.0-beta.33",
"@electron-forge/maker-zip": "^6.0.0-beta.63",
"electron": "^16.0.7",
"electron-rebuild": "^3.2.7"