Skip to content

Commit b218cf4

Browse files
committed
💚 修复ci打包版本号错误
1 parent aeeda0f commit b218cf4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/pack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fs.writeFileSync("./build/scriptcat/manifest.json", str);
1111

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

1717
execSync("npm run build", { stdio: 'inherit' });

src/apps/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const ExtVersion = '0.8.0';
1+
export const ExtVersion = "0.8.1";
22

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

0 commit comments

Comments
 (0)