fix issue #2963: run gen_version no matter debug or release
This commit is contained in:
parent
bd5ed0d671
commit
ec1da900ec
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user