Skip to content

Commit 5e1aff1

Browse files
committed
Remove vergen / GIT_COMMIT_SHA handling
1 parent 3846a7d commit 5e1aff1

File tree

9 files changed

+94
-226
lines changed

9 files changed

+94
-226
lines changed

Cargo.lock

Lines changed: 80 additions & 196 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ strip = "debuginfo"
1313
codegen-units = 1
1414

1515
[workspace.package]
16-
version = "2.0.0"
16+
version = "2.0.1"
1717
authors = ["Luke Street <[email protected]>"]
1818
edition = "2021"
1919
license = "MIT OR Apache-2.0"

objdiff-cli/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ description = """
1111
A local diffing tool for decompilation projects.
1212
"""
1313
publish = false
14-
build = "build.rs"
1514

1615
[dependencies]
1716
anyhow = "1.0"

objdiff-cli/build.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

objdiff-cli/src/argp_version.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ where T: FromArgs
3131
Ok(v) => {
3232
if v.version {
3333
println!(
34-
"{} {} {}",
34+
"{} {}",
3535
command_name.first().unwrap_or(&""),
3636
env!("CARGO_PKG_VERSION"),
37-
env!("GIT_COMMIT_SHA"),
3837
);
3938
std::process::exit(0);
4039
} else {

objdiff-core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ arm = ["any-arch", "cpp_demangle", "unarm", "arm-attr"]
2727
bindings = ["serde_json", "prost", "pbjson"]
2828
wasm = ["bindings", "console_error_panic_hook", "console_log"]
2929

30+
[package.metadata.docs.rs]
31+
features = ["all"]
32+
3033
[dependencies]
3134
anyhow = "1.0"
3235
byteorder = "1.5"

objdiff-gui/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ self_update = "0.41"
8989
path-slash = "0.2"
9090
winapi = "0.3"
9191

92-
[target.'cfg(windows)'.build-dependencies]
93-
winres = "0.1"
94-
9592
[target.'cfg(unix)'.dependencies]
9693
exec = "0.3"
9794

@@ -106,4 +103,6 @@ tracing-wasm = "0.2"
106103

107104
[build-dependencies]
108105
anyhow = "1.0"
109-
vergen-gitcl = { version = "1.0", features = ["build", "cargo"] }
106+
107+
[target.'cfg(windows)'.build-dependencies]
108+
tauri-winres = "0.1"

objdiff-gui/build.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
use anyhow::Result;
2-
use vergen_gitcl::{BuildBuilder, CargoBuilder, Emitter, GitclBuilder};
32

43
fn main() -> Result<()> {
54
#[cfg(windows)]
65
{
7-
winres::WindowsResource::new().set_icon("assets/icon.ico").compile()?;
6+
let mut res = tauri_winres::WindowsResource::new();
7+
res.set_icon("assets/icon.ico");
8+
res.set_language(0x0409); // US English
9+
res.compile()?;
810
}
9-
Emitter::default()
10-
.add_instructions(&BuildBuilder::all_build()?)?
11-
.add_instructions(&CargoBuilder::all_cargo()?)?
12-
.add_instructions(&GitclBuilder::all_git()?)?
13-
.emit()
11+
Ok(())
1412
}

objdiff-gui/src/views/config.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,7 @@ pub fn config_ui(
190190
if ui.add_enabled(!state.check_update_running, egui::Button::new("Check now")).clicked() {
191191
state.queue_check_update = true;
192192
}
193-
ui.label(format!("Current version: {}", cargo_crate_version!())).on_hover_ui_at_pointer(|ui| {
194-
ui.label(formatcp!("Git branch: {}", env!("VERGEN_GIT_BRANCH")));
195-
ui.label(formatcp!("Git commit: {}", env!("VERGEN_GIT_SHA")));
196-
ui.label(formatcp!("Build target: {}", env!("VERGEN_CARGO_TARGET_TRIPLE")));
197-
ui.label(formatcp!("Debug: {}", env!("VERGEN_CARGO_DEBUG")));
198-
});
193+
ui.label(format!("Current version: {}", env!("CARGO_PKG_VERSION")));
199194
if let Some(result) = &state.check_update {
200195
ui.label(format!("Latest version: {}", result.latest_release.version));
201196
if result.update_available {

0 commit comments

Comments
 (0)