lokinet/osx-setup/make-release.sh

20 lines
699 B
Bash
Raw Normal View History

#!/bin/sh
VERSION=$1
echo "Copying latest build"
mkdir -p osx-pkg/usr/local/bin
2019-09-11 06:07:10 +00:00
mkdir osx-pkg/usr/local/lib
cp ../lokinet osx-pkg/usr/local/bin
2019-09-11 06:07:10 +00:00
echo "Copying /usr/local/lib/libuv.dylib into package"
cp /usr/local/lib/libuv.dylib osx-pkg/usr/local/lib
# just incase they want to switch networks later
cp ../lokinet-bootstrap osx-pkg/usr/local/bin
echo "Building package $VERSION"
mkdir -p pkg1
rm pkg1/lokinet.pkg
pkgbuild --root osx-pkg --scripts scripts --identifier network.loki.lokinet --version $VERSION pkg1/lokinet.pkg
2019-05-06 07:47:43 +00:00
rm lokinet-v$VERSION.pkg
2019-05-21 21:59:30 +00:00
productbuild --distribution distribution.xml --resources resources --package-path pkg1 --version $VERSION lokinet_macos64_installer_v$VERSION.pkg