Skip to content

Commit

Permalink
💚 修复ci打包版本号错误
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Jan 17, 2022
1 parent aeeda0f commit b218cf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/pack.js
Expand Up @@ -11,7 +11,7 @@ fs.writeFileSync("./build/scriptcat/manifest.json", str);

// 处理config.ts version
str = fs.readFileSync("./src/apps/config.ts").toString();
str = str.replace(/ExtVersion = "(.*?)";/, 'ExtVersion = "' + pjson.version + '";');
str = str.replace(/ExtVersion = '(.*?)';/, 'ExtVersion = "' + pjson.version + '";');
fs.writeFileSync("./src/apps/config.ts", str);

execSync("npm run build", { stdio: 'inherit' });
Expand Down
2 changes: 1 addition & 1 deletion src/apps/config.ts
@@ -1,4 +1,4 @@
export const ExtVersion = '0.8.0';
export const ExtVersion = "0.8.1";

export const Server = process.env.NODE_ENV == 'production' ? 'https://sc.icodef.com/' : 'http://localhost:8080/';

Expand Down

0 comments on commit b218cf4

Please sign in to comment.