From 32740e8318f05f1cdbedcffc5a5d896bbff3f290 Mon Sep 17 00:00:00 2001 From: endernon Date: Tue, 5 Nov 2024 21:22:04 +0000 Subject: [PATCH] finalise the build script --- build_x64.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build_x64.sh b/build_x64.sh index d9493db..7322a4b 100755 --- a/build_x64.sh +++ b/build_x64.sh @@ -5,7 +5,16 @@ mkdir -p product cp ./target/x86_64-pc-windows-gnu/release/idmangler-cli.exe ./product/idmangler-cli-windows-x64.exe cp ./target/x86_64-unknown-linux-gnu/release/idmangler-cli ./product/idmangler-cli-linux-x64 -cp -u -p ./{config.json,config_hanafupookie.json,config_singu.json} ./product/ +cp -u -p ./{config.json,config_hanafupookie.json,config_singu.json,README.md} ./product/ + +pkgversion=$(cargo metadata --format-version=1 --no-deps | jq '.packages[] | select(.name == "idmangler-cli") | .version') +echo "package version is:" +echo $pkgversion +balls=${pkgversion::-1} +balls2=${balls:1} +echo $balls2 cd product -zip + +zip "idmangler-windows-x64-${balls2}.zip" config.json config_hanafupookie.json config_singu.json config.md idmangler-cli-windows-x64.exe +zip "idmangler-linux-x64-${balls2}.zip" config.json config_hanafupookie.json config_singu.json config.md idmangler-cli-linux-x64