Skip to content

Commit 7147ba8

Browse files
committed
feat: configuring and optimizing release binary
1 parent bc7df5f commit 7147ba8

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
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: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "systemd-manager-tui"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
description = "TUI for managing systemd services"
55
authors = ["Matheus-git <[email protected]>"]
66
license = "MIT"
@@ -14,6 +14,8 @@ repository = "https://github.com/matheus-git/systemd-manager-tui"
1414
keywords = ["ratatui", "systemd", "manager", "tui"]
1515

1616
[profile.release]
17+
debug = false
18+
opt-level = 3
1719
codegen-units = 1
1820
lto = true
1921

@@ -25,6 +27,13 @@ color-eyre = "0.6.3"
2527
ratatui = "0.29"
2628
textwrap = "0.16.2"
2729

30+
[package.metadata.deb]
31+
name = "systemd-manager-tui"
32+
maintainer = "Matheus-git <[email protected]>"
33+
depends = ""
34+
license-file = "LICENSE"
35+
copyright = "MIT @ Matheus-git"
36+
2837
[package.metadata.generate-rpm]
2938
name = "systemd-manager-tui"
3039
summary = "TUI for managing systemd services"

build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,21 @@ RESET="\033[0m"
99
echo -e "${YELLOW_BOLD}\ncargo build --release${RESET}"
1010
cargo build --release
1111

12+
echo -e "${YELLOW_BOLD}\nstrip target/release/systemd-manager-tui${RESET}"
13+
strip target/release/systemd-manager-tui
14+
1215
echo -e "${YELLOW_BOLD}\ncross build --release --target x86_64-unknown-linux-musl${RESET}"
1316
cross build --release --target x86_64-unknown-linux-musl
1417

18+
echo -e "${YELLOW_BOLD}\nstrip target/x86_64-unknown-linux-musl/release/systemd-manager-tui${RESET}"
19+
strip target/x86_64-unknown-linux-musl/release/systemd-manager-tui
20+
1521
echo -e "${YELLOW_BOLD}\ncross build --release --target aarch64-unknown-linux-musl${RESET}"
1622
cross build --release --target aarch64-unknown-linux-musl
1723

24+
echo -e "${YELLOW_BOLD}\nstrip target/aarch64-unknown-linux-musl/release/systemd-manager-tui${RESET}"
25+
strip target/aarch64-unknown-linux-musl/release/systemd-manager-tui
26+
1827
echo -e "${YELLOW_BOLD}\ncargo deb${RESET}"
1928
cargo deb --target x86_64-unknown-linux-musl --no-build
2029

0 commit comments

Comments
 (0)