1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
From: =?utf-8?q?Jeremy_B=C3=ADcha?= <jbicha@ubuntu.com>
Date: Sun, 31 Aug 2025 09:37:57 -0400
Subject: remove-git-version
rust-git-version isn't in Debian yet and we're not really packaging
git snapshots anyway
---
shell/Cargo.toml | 1 -
shell/src/application.rs | 5 +----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/shell/Cargo.toml b/shell/Cargo.toml
index 242f51e..59f31c9 100644
--- a/shell/Cargo.toml
+++ b/shell/Cargo.toml
@@ -22,7 +22,6 @@ log.workspace = true
gettext-rs = { version = "0.7", features = ["gettext-system"] }
lru = ">= 0.12, < 1"
futures = "0.3"
-git-version = "0.3"
[dependencies.oo7]
version = "0.4"
diff --git a/shell/src/application.rs b/shell/src/application.rs
index 6ed2958..1a24f29 100644
--- a/shell/src/application.rs
+++ b/shell/src/application.rs
@@ -3,7 +3,6 @@ use crate::deps::*;
use papers_document::{LinkDest, LinkDestType};
use papers_view::Job;
-use git_version::git_version;
use std::env;
use std::ffi::OsString;
use std::ops::ControlFlow;
@@ -230,14 +229,12 @@ mod imp {
gtk::micro_version()
);
- const GIT_COMMIT_ID: &str = git_version!(fallback = VERSION);
-
let debug_info = format!(
"Document Viewer ({})\n\n\
*Flatpak: {}\n\
*GTK: {}\n\
*Libadwaita: {}\n",
- GIT_COMMIT_ID,
+ VERSION,
if std::env::var("FLATPAK_ID").is_ok() {
"yes"
} else {
|