Skip to content

Commit 27b61ea

Browse files
committed
clean up not used tags
1 parent 3e6a2b5 commit 27b61ea

File tree

3 files changed

+3
-41
lines changed

3 files changed

+3
-41
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "serial-monitor-rust"
3-
version = "0.3.3"
3+
version = "0.3.2"
44
edition = "2021"
55
authors = ["Linus Leo Stöckli"]
66
description = "Serial Monitor and Plotter written in rust."
@@ -36,11 +36,9 @@ regex = "1.11"
3636
name = "Serial Monitor"
3737
identifier = "com.hacknus.serial_monitor"
3838
icon = ["./icons/install.png"]
39-
version = "0.3.3"
4039
copyright = "Copyright (c) hacknus 2025. All rights reserved."
4140
category = "Developer Tool"
4241
short_description = "Serial Monitor and Plotter written in rust."
43-
license = "GPL-3.0"
4442
osx_minimum_system_version = "10.8"
4543
osx_url_schemes = ["com.hacknus.serial_monitor"]
4644

@@ -49,5 +47,4 @@ dbg-build = false
4947
dbg-name = false
5048
name = "Serial Monitor"
5149
no-build = false
52-
output = "target/wix/SerialMonitorInstaller.msi"
53-
version = "0.3.3"
50+
output = "target/wix/SerialMonitorInstaller.msi"

build.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,3 @@
1-
use std::fs;
21
fn main() {
32
println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.8");
4-
5-
// Get the package version from the environment variable
6-
let version = env!("CARGO_PKG_VERSION");
7-
8-
// Define the paths to `Cargo.toml`
9-
let cargo_toml_path = "Cargo.toml";
10-
11-
// Read `Cargo.toml`
12-
let content = fs::read_to_string(cargo_toml_path).expect("Failed to read Cargo.toml");
13-
14-
// Replace `version = ...` only within `[package.metadata.bundle]` and `[package.metadata.wix]`
15-
let updated_content = content
16-
.lines()
17-
.map(|line| {
18-
if line.trim_start().starts_with("version =") {
19-
// Check if we're inside the relevant sections
20-
if content.contains("[package.metadata.bundle]")
21-
|| content.contains("[package.metadata.wix]")
22-
{
23-
format!(r#"version = "{}""#, version)
24-
} else {
25-
line.to_string()
26-
}
27-
} else {
28-
line.to_string()
29-
}
30-
})
31-
.collect::<Vec<_>>()
32-
.join("\n");
33-
34-
// Write the updated content back to `Cargo.toml`
35-
fs::write(cargo_toml_path, updated_content).expect("Failed to write updated Cargo.toml");
36-
37-
println!("cargo:rerun-if-changed={}", cargo_toml_path);
383
}

0 commit comments

Comments
 (0)