Compare commits
2 commits
1b0ae5a17a
...
deb0124fe6
Author | SHA1 | Date | |
---|---|---|---|
deb0124fe6 | |||
cc32b533da |
2 changed files with 21 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
/target
|
/target
|
||||||
inventory-fix.png
|
inventory-fix.png
|
||||||
|
/product
|
19
build_x64.sh
Executable file
19
build_x64.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
cargo build --target x86_64-unknown-linux-musl --package rpfixer --bin rpfixer --release
|
||||||
|
cargo build --target x86_64-pc-windows-gnu --package rpfixer --bin rpfixer --release
|
||||||
|
|
||||||
|
mkdir -p product
|
||||||
|
|
||||||
|
cp ./target/x86_64-pc-windows-gnu/release/rpfixer.exe ./product/rpfixer-windows-x64.exe
|
||||||
|
cp ./target/x86_64-unknown-linux-musl/release/rpfixer ./product/rpfixer-linux-x64
|
||||||
|
|
||||||
|
pkgversion=$(cargo metadata --format-version=1 --no-deps | jq '.packages[] | select(.name == "rpfixer") | .version')
|
||||||
|
echo "package version is:"
|
||||||
|
echo $pkgversion
|
||||||
|
balls=${pkgversion::-1}
|
||||||
|
balls2=${balls:1}
|
||||||
|
echo $balls2
|
||||||
|
|
||||||
|
cd product
|
||||||
|
|
||||||
|
zip "rpfixer-windows-x64-${balls2}.zip" rpfixer-windows-x64.exe
|
||||||
|
zip "rpfixer-linux-x64-${balls2}.zip" rpfixer-linux-x64
|
Loading…
Reference in a new issue