mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-29 03:41:59 +08:00
Add package & deploy for OSX builds
This commit is contained in:
parent
b2ec596037
commit
ed1429b8ea
@ -15,12 +15,12 @@ dist: trusty
|
|||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sh package/common/travis-decrypt-key
|
- sh package/common/travis-decrypt-key
|
||||||
- export SLIC3R_GIT_VERSION=$(git rev-parse HEAD)
|
- export SLIC3R_GIT_VERSION=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [[ "${TRAVIS_OS_NAME}" == "linux" && "$TARGET" == "main" ]]; then ./package/linux/travis-build-main.sh; fi
|
- 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}" == "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
|
- if [[ "${TRAVIS_OS_NAME}" == "osx" && "$TARGET" == "cpp" ]]; then ./package/osx/travis-build-cpp.sh; fi
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
|
@ -7,6 +7,15 @@ set -euo pipefail
|
|||||||
# Adapted from script written by bubnikv for Prusa3D.
|
# Adapted from script written by bubnikv for Prusa3D.
|
||||||
# Run from slic3r repo root directory.
|
# 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)
|
WD=$(dirname $0)
|
||||||
appname=Slic3r
|
appname=Slic3r
|
||||||
|
|
||||||
@ -59,6 +68,7 @@ PkgInfoContents="APPL????"
|
|||||||
source $WD/plist.sh
|
source $WD/plist.sh
|
||||||
|
|
||||||
# Our slic3r dir and location of perl
|
# Our slic3r dir and location of perl
|
||||||
|
eval $(perl -Mlocal::lib=local-lib)
|
||||||
PERL_BIN=$(which perl)
|
PERL_BIN=$(which perl)
|
||||||
PP_BIN=$(which pp)
|
PP_BIN=$(which pp)
|
||||||
SLIC3R_DIR=$(perl -MCwd=realpath -e "print realpath '${WD}/../../'")
|
SLIC3R_DIR=$(perl -MCwd=realpath -e "print realpath '${WD}/../../'")
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user