mirror of
https://github.com/pcvolkmer/cert-tools.git
synced 2025-04-19 17:06:49 +00:00
build: use generated version on package build
This commit is contained in:
parent
a777289dcc
commit
274cb89af7
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cert-tools"
|
name = "cert-tools"
|
||||||
description = "Application to show and merge content of PEM files"
|
description = "Application to show and merge content of PEM files"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
authors = ["Paul-Christian Volkmer"]
|
authors = ["Paul-Christian Volkmer"]
|
||||||
|
16
Makefile
16
Makefile
@ -46,13 +46,29 @@ binary-all: win-binary-x86_64 linux-binary-x86_64
|
|||||||
|
|
||||||
.PHONY: win-binary-x86_64
|
.PHONY: win-binary-x86_64
|
||||||
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 --target=x86_64-pc-windows-gnu
|
||||||
cargo build --release --package cert-tools-ui --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
|
.PHONY: linux-binary-x86_64
|
||||||
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 --target=x86_64-unknown-linux-gnu
|
||||||
cargo build --release --package cert-tools-ui --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
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cert-tools-ui"
|
name = "cert-tools-ui"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cert-tools = { path = "..", version = "*" }
|
cert-tools = { path = ".." }
|
||||||
iced = { version = "0.13", features = ["wgpu", "tiny-skia", "tokio", "web-colors", "image"], default-features = false }
|
iced = { version = "0.13", features = ["wgpu", "tiny-skia", "tokio", "web-colors", "image"], default-features = false }
|
||||||
rfd = "0.15"
|
rfd = "0.15"
|
||||||
itertools = "0.14"
|
itertools = "0.14"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user