File 0001-disable-git-commit.patch of Package mullvadvpn
--- mullvadvpn-app-2023.1.orig/mullvad-daemon/build.rs
+++ mullvadvpn-app-2023.1/mullvad-daemon/build.rs
@@ -7,7 +7,7 @@ fn make_lang_id(p: u16, s: u16) -> u16 {
fn main() {
let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
- fs::write(out_dir.join("git-commit-date.txt"), commit_date()).unwrap();
+ // fs::write(out_dir.join("git-commit-date.txt"), commit_date()).unwrap();
#[cfg(windows)]
{
--- mullvadvpn-app-2023.1.orig/mullvad-daemon/src/version.rs
+++ mullvadvpn-app-2023.1/mullvad-daemon/src/version.rs
@@ -1,15 +1,15 @@
/// Contains the date of the git commit this was built from
-pub const COMMIT_DATE: &str = include_str!(concat!(env!("OUT_DIR"), "/git-commit-date.txt"));
+// pub const COMMIT_DATE: &str = include_str!(concat!(env!("OUT_DIR"), "/git-commit-date.txt"));
pub fn is_beta_version() -> bool {
mullvad_version::VERSION.contains("beta")
}
pub fn log_version() {
- log::info!(
- "Starting {} - {} {}",
- env!("CARGO_PKG_NAME"),
- mullvad_version::VERSION,
- COMMIT_DATE,
- )
+ // log::info!(
+ // "Starting {} - {} {}",
+ // env!("CARGO_PKG_NAME"),
+ // mullvad_version::VERSION,
+ // COMMIT_DATE,
+ // )
}
--- mullvadvpn-app-2023.1.orig/mullvad-version/build.rs
+++ mullvadvpn-app-2023.1/mullvad-version/build.rs
@@ -72,7 +72,8 @@
Target::Desktop => product_version.to_owned(),
};
+ return Some("".to_owned());
// Get the git commit hashes for the latest release and current HEAD
// Return `None` if unable to find the hash for HEAD.
let head_commit_hash = git_rev_parse_commit_hash("HEAD")?;
let product_version_commit_hash = git_rev_parse_commit_hash(&release_tag);