Skip to content

Commit 779b1a2

Browse files
committed
build: 更新生成update.json代码以匹配新版本号规则
1 parent eb883c5 commit 779b1a2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fn gen_module_prop(data: &CargoConfig) -> Result<()> {
106106

107107
fn update_json(data: &CargoConfig) -> Result<()> {
108108
let version = &data.package.version;
109-
let version_code: usize = version.replace('.', "").trim().parse()?;
109+
let version_code = cal_version_code(version)?;
110110
let version = format!("v{version}");
111111

112112
let zip_url =

update/update.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"versionCode": 491,
2+
"versionCode": 409001,
33
"version": "v4.9.1",
44
"zipUrl": "https://github.com/shadow3aaa/fas-rs/releases/download/v4.9.1/fas-rs.zip",
55
"changelog": "https://github.com/shadow3aaa/fas-rs/raw/master/update/zh-CN/changelog.md"

update/update_en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"versionCode": 491,
2+
"versionCode": 409001,
33
"version": "v4.9.1",
44
"zipUrl": "https://github.com/shadow3aaa/fas-rs/releases/download/v4.9.1/fas-rs.zip",
55
"changelog": "https://github.com/shadow3aaa/fas-rs/raw/master/update/en-US/changelog.md"

0 commit comments

Comments
 (0)