#!/bin/bash # TRAVIS_BRANCH is the branch name or the name of the tag. VERSION="$(echo ${TRAVIS_BRANCH:-${GITHUB_REF}} | tr / -)" OS="${TRAVIS_OS_NAME:-${BUILD:-$(uname)}}" ARCH="$(uname -m)" cp -a images/examples palettes symbols fonts dist/inkstitch cp -a icons locales print dist/inkstitch/bin if [ "$BUILD" = "osx" ]; then cp -a electron/dist/mac dist/inkstitch/electron else cp -a electron/dist/*-unpacked dist/inkstitch/electron fi mkdir artifacts for d in inx/*; do lang=${d%.*} lang=${lang#*/} cp $d/*.inx dist cd dist python -m zipfile -c ../artifacts/inkstitch-${VERSION}-${OS}-${lang}.zip * cd .. done