fix issue #2963: run gen_version no matter debug or release

This commit is contained in:
rustdesk 2023-02-01 10:42:02 +08:00
parent bd5ed0d671
commit ec1da900ec

View File

@ -197,9 +197,6 @@ pub fn get_version_from_url(url: &str) -> String {
}
pub fn gen_version() {
if Ok("release".to_owned()) != std::env::var("PROFILE") {
return;
}
println!("cargo:rerun-if-changed=Cargo.toml");
use std::io::prelude::*;
let mut file = File::create("./src/version.rs").unwrap();