mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2025-07-01 15:25:29 +00:00
run gen_version no matter debug or release
This commit is contained in:
parent
2830be95a7
commit
fe3b42809a
@ -2,7 +2,7 @@ fn main() {
|
||||
let out_dir = format!("{}/protos", std::env::var("OUT_DIR").unwrap());
|
||||
|
||||
std::fs::create_dir_all(&out_dir).unwrap();
|
||||
|
||||
|
||||
protobuf_codegen::Codegen::new()
|
||||
.pure()
|
||||
.out_dir(out_dir)
|
||||
|
@ -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();
|
||||
|
@ -1,3 +1,3 @@
|
||||
pub const VERSION: &str = "1.1.7";
|
||||
#[allow(dead_code)]
|
||||
pub const BUILD_DATE: &str = "2023-01-10 22:43";
|
||||
pub const BUILD_DATE: &str = "2023-02-01 10:45";
|
||||
|
Loading…
x
Reference in New Issue
Block a user