Skip to content

Commit

Permalink
Use pkg format for macosx.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpre committed Jul 6, 2018
1 parent 1282d2e commit 51fe550
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ script:
# Create the anaconda based hyperspy bundle
- constructor -v .

# Rename the output file
- export BUILD_NAME=HyperSpy-bundle-${TRAVIS_TAG}-${PYTHON_VERSION}-${PLATFORM}-64bit.sh
# Rename the output file which can have .sh or .pkg extension
- ls
- mv HyperSpy-*.sh $BUILD_NAME
# We need to "rev" twice to retrieve the last field of the "cut"
- EXT=`echo HyperSpy-* | rev | cut -d'.' -f1 | rev`
- echo $EXT
- BUILD_NAME=HyperSpy-bundle-${TRAVIS_TAG}-${PYTHON_VERSION}-${PLATFORM}-64bit.${EXT}
- mv HyperSpy-*.${EXT} $BUILD_NAME
- ls

# Install the build
Expand Down
2 changes: 2 additions & 0 deletions construct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ post_install: post_installation.sh # [linux]
post_install: post_installation-macosx.sh # [osx]
post_install: post_installation.bat # [win]

installer_type: pkg # [osx]

install_in_dependency_order: True

license_file: LICENSE
Expand Down

0 comments on commit 51fe550

Please sign in to comment.