Skip to content

Commit bd12fbe

Browse files
committed
Update Windows build
1 parent 334d4ed commit bd12fbe

File tree

7 files changed

+11
-32
lines changed

7 files changed

+11
-32
lines changed

ci

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

src/bat/ci/before_deploy.bash renamed to ci/before_deploy.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,21 @@ pack() {
3030

3131
# copying the main binary
3232
cp "target/$TARGET/release/$PROJECT_NAME" "$tempdir/$package_name/"
33-
"${gcc_prefix}"strip "$tempdir/$package_name/$PROJECT_NAME"
33+
if [ "$TRAVIS_OS_NAME" != windows ]; then
34+
"${gcc_prefix}"strip "$tempdir/$package_name/$PROJECT_NAME"
35+
fi
3436

3537
# manpage, readme and license
3638
cp README.md "$tempdir/$package_name"
3739
cp LICENSE "$tempdir/$package_name"
3840

3941
# archiving
4042
pushd "$tempdir"
41-
tar czf "$out_dir/$package_name.tar.gz" "$package_name"/*
43+
if [ "$TRAVIS_OS_NAME" = windows ]; then
44+
7z a "$out_dir/$package_name.zip" "$package_name"/*
45+
else
46+
tar czf "$out_dir/$package_name.tar.gz" "$package_name"/*
47+
fi
4248
popd
4349
rm -r "$tempdir"
4450
}
File renamed without changes.
File renamed without changes.

src/bat/.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ matrix:
5757
sudo: required
5858

5959
before_install:
60-
- cd src/bat
61-
- ci/before_install.bash
60+
- ci/before_install.sh
6261

6362
env:
6463
global:
@@ -73,10 +72,10 @@ install:
7372
- if [[ $TRAVIS_OS_NAME = linux && $HOST != $TARGET ]]; then rustup target add $TARGET; fi
7473

7574
script:
76-
- ci/script.bash
75+
- ci/script.sh
7776

7877
before_deploy:
79-
- bash ci/before_deploy.bash
78+
- bash ci/before_deploy.sh
8079

8180
deploy:
8281
provider: releases

src/bat/ci/before_deploy.ps1

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)