2021-07-14 08:25:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
|
|
|
|
update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
|
|
|
|
export VELOREN_USERDATA_STRATEGY=executable
|
2022-07-09 21:54:01 +00:00
|
|
|
|
|
|
|
# RUSTFLAGS is set here in addition to env.sh (which is used for all targets not just windows) due to
|
|
|
|
# https://github.com/rust-lang/cargo/issues/5376 which prevents the windows-specific rustflags set in
|
|
|
|
# .cargo/config from being applied
|
|
|
|
export RUSTFLAGS="-D warnings -C link-arg=-lpsapi"
|
|
|
|
|
2021-11-22 07:04:19 +00:00
|
|
|
time cargo build --target=x86_64-pc-windows-gnu --release --no-default-features --features default-publish
|