1
0
mirror of https://github.com/pcvolkmer/cert-tools.git synced 2025-04-19 09:06:49 +00:00

build: use generated version on package build

This commit is contained in:
Paul-Christian Volkmer 2025-01-25 17:14:49 +01:00
parent a777289dcc
commit 274cb89af7
3 changed files with 19 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[package]
name = "cert-tools"
description = "Application to show and merge content of PEM files"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
license = "GPL-3.0-or-later"
authors = ["Paul-Christian Volkmer"]

View File

@ -46,13 +46,29 @@ binary-all: win-binary-x86_64 linux-binary-x86_64
.PHONY: win-binary-x86_64
win-binary-x86_64:
# Temp cargo file
cp Cargo.toml Cargo.toml.0
cp ui/Cargo.toml ui/Cargo.toml.0
sed -i 's/^version.*/version = $(VERSION)/' Cargo.toml
sed -i 's/^version = .*/version = $(VERSION)/' ui/Cargo.toml
cargo build --release --target=x86_64-pc-windows-gnu
cargo build --release --package cert-tools-ui --target=x86_64-pc-windows-gnu
# Restore temp
mv Cargo.toml.0 Cargo.toml
mv ui/Cargo.toml.0 ui/Cargo.toml
.PHONY: linux-binary-x86_64
linux-binary-x86_64:
# Temp cargo file
cp Cargo.toml Cargo.toml.0
cp ui/Cargo.toml ui/Cargo.toml.0
sed -i 's/^version.*/version = $(VERSION)/' Cargo.toml
sed -i 's/^version = .*/version = $(VERSION)/' ui/Cargo.toml
cargo build --release --target=x86_64-unknown-linux-gnu
cargo build --release --package cert-tools-ui --target=x86_64-unknown-linux-gnu
# Restore temp
mv Cargo.toml.0 Cargo.toml
mv ui/Cargo.toml.0 ui/Cargo.toml
.PHONY: install
install:

View File

@ -1,10 +1,10 @@
[package]
name = "cert-tools-ui"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
[dependencies]
cert-tools = { path = "..", version = "*" }
cert-tools = { path = ".." }
iced = { version = "0.13", features = ["wgpu", "tiny-skia", "tokio", "web-colors", "image"], default-features = false }
rfd = "0.15"
itertools = "0.14"