aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrustdesk <[email protected]>2023-02-01 10:49:16 +0800
committerrustdesk <[email protected]>2023-02-01 10:49:16 +0800
commitfe3b42809ab1f50ee0529c997c0d5ad122b0e6f2 (patch)
tree13c0732518bc799a08841b995738797983c83c13
parent2830be95a75e8cdd59c65697d2e77762982e305b (diff)
downloadrustdesk-server-fe3b42809ab1f50ee0529c997c0d5ad122b0e6f2.tar.gz
rustdesk-server-fe3b42809ab1f50ee0529c997c0d5ad122b0e6f2.zip
run gen_version no matter debug or release
-rw-r--r--libs/hbb_common/build.rs2
-rw-r--r--libs/hbb_common/src/lib.rs3
-rw-r--r--src/version.rs2
3 files changed, 2 insertions, 5 deletions
diff --git a/libs/hbb_common/build.rs b/libs/hbb_common/build.rs
index fe0d310..35ced59 100644
--- a/libs/hbb_common/build.rs
+++ b/libs/hbb_common/build.rs
@@ -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)
diff --git a/libs/hbb_common/src/lib.rs b/libs/hbb_common/src/lib.rs
index 9e00437..c9f9e90 100644
--- a/libs/hbb_common/src/lib.rs
+++ b/libs/hbb_common/src/lib.rs
@@ -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();
diff --git a/src/version.rs b/src/version.rs
index 7df1331..6cf4a19 100644
--- a/src/version.rs
+++ b/src/version.rs
@@ -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";