From 19d542c7d9ceba9226ac25ad4f6a4c361d47f31b Mon Sep 17 00:00:00 2001 From: HUI Date: Wed, 13 Jul 2022 14:49:42 +0800 Subject: [PATCH] fix: download addon version issue --- scripts/getConfig.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/getConfig.js b/scripts/getConfig.js index 2d9f090..3a7e7f0 100644 --- a/scripts/getConfig.js +++ b/scripts/getConfig.js @@ -12,7 +12,8 @@ logger.info(`process.env.INIT_CWD ${process.env.INIT_CWD}`); const getArgvFromPkgJson = () => { const projectDir = path.join(INIT_CWD, "package.json"); - const { agora_electron = {}, version } = require(projectDir); + const { agora_electron = {} } = require(projectDir); + const { version } = require(path.join(process.env.INIT_CWD, "package.json")); const { prebuilt = true, platform = process.platform,