From 6ddc613b5af1f46b0c14306acd47fff07177cc1b Mon Sep 17 00:00:00 2001 From: cutls Date: Wed, 8 Apr 2020 18:12:58 +0900 Subject: [PATCH] fix --- app/view/make/make.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/view/make/make.js b/app/view/make/make.js index 958a364d..2422bc1c 100644 --- a/app/view/make/make.js +++ b/app/view/make/make.js @@ -1,5 +1,7 @@ const fs = require('fs') -const package = fs.readFileSync('../../package.json') +const path = require('path') +const basefile = path.join(__dirname, '../../') +const package = fs.readFileSync(basefile + 'package.json') const data = JSON.parse(package) const version = data.version const codename = data.codename @@ -14,8 +16,7 @@ var pwa = false if (process.argv.indexOf('--pwa') > 0) { var pwa = true } -const path = require('path') -const basefile = path.join(__dirname, '../../') + function main(ver, basefile, pwa) { const execSync = require('child_process').execSync let gitHash = execSync('git rev-parse HEAD')