Skip to content

Commit

Permalink
删除构建时自动修改update.json,变为手动修改
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Nov 23, 2023
1 parent 8835832 commit 4c89329
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
13 changes: 0 additions & 13 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,6 @@ fn main() -> Result<(), Box<dyn Error>> {
"updateJson=https://github.com/shadow3aaa/fas-rs/raw/master/update/update.json"
)?;

let update_json = format!(
r#"
{{
"versionCode": {version_code},
"version": "v{0}",
"zipUrl": "https://github.com/shadow3aaa/fas-rs/releases/download/v{0}/fas-rs.zip",
"changelog": "https://github.com/shadow3aaa/fas-rs/raw/master/update/changelog.md"
}}
"#,
package.version
);
fs::write("update/update.json", update_json.trim())?;

let _ = fs::remove_file("module/README.md");
fs::copy("README.md", "module/README.md")?;

Expand Down
1 change: 0 additions & 1 deletion fas-rs-fw/src/scheduler/looper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ impl<P: PerformanceController> Looper<P> {
let events: Vec<_> = self
.buffers
.values_mut()
.filter(|buffer| buffer.last_update.elapsed() < Duration::from_secs(1))
.map(|buffer| {
Self::get_event(buffer, &self.config, &mut self.node)
.unwrap_or(Event::ReleaseMax)
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions update/update.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"versionCode": 100,
"version": "v1.0.0",
"zipUrl": "https://github.com/shadow3aaa/fas-rs/releases/download/v1.0.0/fas-rs.zip",
"changelog": "https://github.com/shadow3aaa/fas-rs/raw/master/update/changelog.md"
}
"changelog": "https://github.com/shadow3aaa/fas-rs/raw/master/update/changelog(v1.0.0).md"
}

0 comments on commit 4c89329

Please sign in to comment.