mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2025-08-16 16:35:52 +00:00
no gen_version if debug
This commit is contained in:
parent
605d0dd6c1
commit
ee794d2e40
@ -180,6 +180,10 @@ pub fn get_version_from_url(url: &str) -> String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn gen_version() {
|
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::*;
|
use std::io::prelude::*;
|
||||||
let mut file = File::create("./src/version.rs").unwrap();
|
let mut file = File::create("./src/version.rs").unwrap();
|
||||||
for line in read_lines("Cargo.toml").unwrap().flatten() {
|
for line in read_lines("Cargo.toml").unwrap().flatten() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user