Skip to content

Commit

Permalink
Fix windows builds for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang authored Feb 25, 2020
1 parent 997d563 commit c8c925e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,17 @@ notifications:
before_deploy:
- |
if [[ $TRAVIS_OS_NAME == "windows" ]]; then
choco install zip;
rustup target add x86_64-pc-windows-msvc;
cargo build --release --target x86_64-pc-windows-msvc;
strip ./target/x86_64-pc-windows-msvc/release/btm;
mv ./target/x86_64-pc-windows-msvc/release/btm ./target/x86_64-pc-windows-msvc/release/btm.exe;
zip -r bottom_x86_64-pc-windows-msvc.zip ./target/x86_64-pc-windows-msvc/release/btm.exe;
strip "./target/x86_64-pc-windows-msvc/release/btm";
mv "./target/x86_64-pc-windows-msvc/release/btm" "./target/x86_64-pc-windows-msvc/release/btm.exe";
zip bottom_x86_64-pc-windows-msvc.zip "./target/x86_64-pc-windows-msvc/release/btm.exe";
rustup target add i686-pc-windows-msvc;
cargo build --release --target i686-pc-windows-msvc;
strip ./target/i686-pc-windows-msvc/release/btm;
mv ./target/i686-pc-windows-msvc/release/btm ./target/i686-pc-windows-msvc/release/btm.exe;
zip -r bottom_i686-pc-windows-msvc.zip ./target/i686-pc-windows-msvc/release/btm.exe;
strip "./target/i686-pc-windows-msvc/release/btm";
mv "./target/i686-pc-windows-msvc/release/btm" "./target/i686-pc-windows-msvc/release/btm.exe";
zip bottom_i686-pc-windows-msvc.zip "./target/i686-pc-windows-msvc/release/btm.exe";
else
cargo build --release;
cp ./target/release/btm btm;
Expand Down

0 comments on commit c8c925e

Please sign in to comment.