diff --git a/packaging/generate_bottle.sh b/packaging/generate_bottle.sh deleted file mode 100755 index ebf7f2c1..00000000 --- a/packaging/generate_bottle.sh +++ /dev/null @@ -1,59 +0,0 @@ -#! /bin/bash - -VERS=$(sw_vers -productVersion | awk '/10\.14\..*/{print $0}') -if [[ -z "$VERS" ]]; then - VERS=$(sw_vers -productVersion | awk '/10\.15.*/{print $0}') - if [[ -z $VERS ]]; then - echo "Error, unsupported OS X version" - exit 1 - fi - MAC_VERSION="catalina" -else - MAC_VERSION="mojave" -fi - -NAME="${PROJECT}-${VERSION}.${MAC_VERSION}.bottle" - -mkdir -p "$PROJECT"/"$VERSION"/opt/antelopeio_dune/lib/cmake - -PREFIX="${PROJECT}/${VERSION}" -SPREFIX="\/usr\/local" -SUBPREFIX="opt/${PROJECT}" -SSUBPREFIX="opt\/${PROJECT}" - -export PREFIX -export SPREFIX -export SUBPREFIX -export SSUBPREFIX - -. ./generate_tarball.sh "$NAME" - -hash=$(openssl dgst -sha256 "$NAME".tar.gz | awk 'NF>1{print $NF}') - -echo "class AntelopeioDune < Formula - # typed: false - # frozen_string_literal: true - - homepage \"${URL}\" - revision 0 - url \"https://github.com/AntelopeIO/DUNE/archive/refs/tags/v${VERSION}.tar.gz\" - version \"${VERSION}\" - - option :universal - - depends_on \"wget\" => :build - depends_on xcode: :build - depends_on macos: :mojave - depends_on arch: :intel - - bottle do - root_url \"https://github.com/AntelopeIO/DUNE/archive/refs/tags/v${VERSION}\" - sha256 ${MAC_VERSION}: \"${hash}\" - end - def install - raise \"Error, only supporting binary packages at this time\" - end -end -__END__" &> antelopeio.dune.rb - -rm -r "$PROJECT" || exit 1 diff --git a/packaging/generate_package.sh b/packaging/generate_package.sh index 20a1ce2b..0c8529bb 100755 --- a/packaging/generate_package.sh +++ b/packaging/generate_package.sh @@ -44,9 +44,7 @@ export EMAIL mkdir -p tmp -if [[ ${VARIANT} == "brew" ]]; then - . "$DIR"./generate_bottle.sh -elif [[ ${VARIANT} == "deb" ]]; then +if [[ ${VARIANT} == "deb" ]]; then . "$DIR"/generate_deb.sh "${OS}" else echo "Error, unknown package type. Use either ['brew', 'deb']."