2024-11-05 21:03:45 +00:00
|
|
|
cargo build --target x86_64-unknown-linux-gnu --package idmangler-cli --bin idmangler-cli --release
|
|
|
|
cargo build --target x86_64-pc-windows-gnu --package idmangler-cli --bin idmangler-cli --release
|
2024-11-05 20:29:22 +00:00
|
|
|
|
|
|
|
mkdir -p product
|
|
|
|
|
2024-11-05 21:03:45 +00:00
|
|
|
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
|
2024-11-05 22:00:16 +00:00
|
|
|
cp -u -p ./{config.json,config_hanafupookie.json,config_singu.json,config.md} ./product/
|
2024-11-05 21:22:04 +00:00
|
|
|
|
|
|
|
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
|
2024-11-05 20:49:12 +00:00
|
|
|
|
|
|
|
cd product
|
2024-11-05 21:22:04 +00:00
|
|
|
|
|
|
|
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
|