diff --git a/.travis.yml b/.travis.yml index d6cc59e031..4dcf7cc39b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,12 +15,12 @@ dist: trusty before_install: - sh package/common/travis-decrypt-key - - export SLIC3R_GIT_VERSION=$(git rev-parse HEAD) + - export SLIC3R_GIT_VERSION=$(git rev-parse --short HEAD) script: - if [[ "${TRAVIS_OS_NAME}" == "linux" && "$TARGET" == "main" ]]; then ./package/linux/travis-build-main.sh; fi - if [[ "${TRAVIS_OS_NAME}" == "linux" && "$TARGET" == "cpp" ]]; then ./package/linux/travis-build-cpp.sh; fi - - if [[ "${TRAVIS_OS_NAME}" == "osx" && "$TARGET" == "main" ]]; then travis_wait 60 ./package/osx/travis-build-main.sh; fi + - if [[ "${TRAVIS_OS_NAME}" == "osx" && "$TARGET" == "main" ]]; then ./package/osx/travis-build-main.sh; fi - if [[ "${TRAVIS_OS_NAME}" == "osx" && "$TARGET" == "cpp" ]]; then ./package/osx/travis-build-cpp.sh; fi branches: diff --git a/package/osx/make_dmg.sh b/package/osx/make_dmg.sh index 5b06cd9f3a..81b0b9012f 100755 --- a/package/osx/make_dmg.sh +++ b/package/osx/make_dmg.sh @@ -7,6 +7,15 @@ set -euo pipefail # Adapted from script written by bubnikv for Prusa3D. # Run from slic3r repo root directory. +# While we might have a pp executable in our path, it might not be +# using the perl binary we have in path, so make sure they belong +# to the same Perl instance: +if !(perl -Mlocal::lib=local-lib -MPAR::Packer -e1 2> /dev/null); then + echo "The PAR::Packer module was not found; installing..." + cpanm --local-lib local-lib PAR::Packer + exit 1 +fi + WD=$(dirname $0) appname=Slic3r @@ -59,6 +68,7 @@ PkgInfoContents="APPL????" source $WD/plist.sh # Our slic3r dir and location of perl +eval $(perl -Mlocal::lib=local-lib) PERL_BIN=$(which perl) PP_BIN=$(which pp) SLIC3R_DIR=$(perl -MCwd=realpath -e "print realpath '${WD}/../../'") diff --git a/package/osx/travis-deploy-main.sh b/package/osx/travis-deploy-main.sh index 94df9482d0..56c0c49776 100755 --- a/package/osx/travis-deploy-main.sh +++ b/package/osx/travis-deploy-main.sh @@ -1,4 +1,5 @@ #!/bin/bash set -euo pipefail -package/osx/make_dmg.sh foo +package/osx/make_dmg.sh +package/deploy/sftp.sh mac ~/slic3r-upload.rsa *.bz2 Slic3r*.dmg