mirror of
https://github.com/ricoriedel/wipe.git
synced 2024-11-22 16:06:38 +00:00
Add windows build script
This commit is contained in:
parent
ad95b2d167
commit
ea466f63fd
0
dist/PKGBUILD → dist/arch/PKGBUILD
vendored
0
dist/PKGBUILD → dist/arch/PKGBUILD
vendored
30
dist/win/build
vendored
Executable file
30
dist/win/build
vendored
Executable file
@ -0,0 +1,30 @@
|
||||
#!/usr/bin/bash
|
||||
set -e
|
||||
|
||||
target='x86_64-pc-windows-gnu'
|
||||
pkgdir="$PWD"
|
||||
pkgfile="$pkgdir/win.zip"
|
||||
srcdir="$PWD/../.."
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
export CARGO_TARGET_DIR=target
|
||||
|
||||
cargo fetch --locked --target "$target"
|
||||
cargo build --frozen --release --all-features --target "$target"
|
||||
cargo test --frozen --all-features
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"
|
||||
cp "target/$target/release/wipe.exe" "$pkgdir"
|
||||
cp 'LICENSE' "$pkgdir"
|
||||
|
||||
cd "$pkgdir"
|
||||
zip -m "$pkgfile" 'wipe.exe' 'LICENSE'
|
||||
}
|
||||
|
||||
build
|
||||
package
|
Loading…
Reference in New Issue
Block a user