diff --git a/dist/PKGBUILD b/dist/arch/PKGBUILD similarity index 100% rename from dist/PKGBUILD rename to dist/arch/PKGBUILD diff --git a/dist/win/build b/dist/win/build new file mode 100755 index 0000000..5d7bf69 --- /dev/null +++ b/dist/win/build @@ -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 \ No newline at end of file