Skip to content

Commit

Permalink
Fix building both Windows versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikogan committed Dec 31, 2016
1 parent 96d60be commit ab6ab2c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ set -e

echo "Building on ${TRAVIS_OS_NAME}..."

rm -Rf dist/
mkdir -p dist/release

if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
if [[ "${TRAVIS_OS_NAME}" == "linux" || "${TRAVIS_OS_NAME}" == "all" ]]; then
npm run dist:win64
mv -v dist/*.exe dist/release
FILENAME=$(basename "`ls dist/*.exe`" | sed 's/ /-/g' | tr "[:upper:]" "[:lower:]" | sed 's/farnsworth-launcher/farnsworth-launcher-x64/')
mv -v dist/*.exe dist/release/${FILENAME}
npm run dist:win32
mv -v dist/*.exe dist/release
FILENAME=$(basename "`ls dist/*.exe`" | sed 's/ /-/g' | tr "[:upper:]" "[:lower:]" | sed 's/farnsworth-launcher/farnsworth-launcher-x86/')
mv -v dist/*.exe dist/release/${FILENAME}
npm run dist:linux64
npm run dist:linux32
mv -v dist/*.rpm dist/release
mv -v dist/*.deb dist/release
mv -v dist/*.tar.gz dist/release
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
elif [[ "${TRAVIS_OS_NAME}" == "osx" || "${TRAVIS_OS_NAME}" == "all" ]]; then
npm run dist:darwin
mv -v dist/mac/*.dmg dist/release
else
Expand Down

0 comments on commit ab6ab2c

Please sign in to comment.