Sha256: 371f9c8108c4e116104692531c07af56ca1bb492de186323e27654b50442d88f
Contents?: true
Size: 1.14 KB
Versions: 11
Compression:
Stored size: 1.14 KB
Contents
#!/bin/bash #/ Usage: script/packages/mac [VERSION] #/ #/ WARNING: You should not need to call this directly. Please create packages using #/ `script/package [platform]` or `bundle exec rake package[platform]` #/ #/ Builds a mac distributable package for licensed for a given licensed VERSION. #/ Packages are of the form licensed-$VERSION-darwin-x64.tar.gz and contain a `./licensed` executable #/ Built packages are placed in the <root>/pkg directory. #/ #/ Must be called from a Mac OS. #/ #/ OPTIONS: #/ [VERSION] (optional, default to current git branch or SHA1) version of licensed to build exe at #/ set -euo pipefail if [[ "$(uname -s)" != "Darwin" ]]; then echo "A Mac OS is required to build a licensed executable for mac" >&2 exit 1 fi BASE_DIR="$(cd "$(dirname $0)/../.." && pwd)" brew update brew list "squashfs" &>/dev/null || brew install "squashfs" if [ ! -f "$BASE_DIR/bin/rubyc-darwin" ]; then mkdir -p "$BASE_DIR/bin" curl -L http://enclose.io/rubyc/rubyc-darwin-x64.gz | gunzip > "$BASE_DIR/bin/rubyc-darwin" chmod +x "$BASE_DIR/bin/rubyc-darwin" fi RUBYC="$BASE_DIR/bin/rubyc-darwin" "$BASE_DIR"/script/build-rubyc-exe
Version data entries
11 entries across 11 versions & 1 rubygems