Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
fix: download addon version issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Jul 13, 2022
1 parent 0a0fbf3 commit 19d542c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/getConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 19d542c

Please sign in to comment.