SDRPlusPlus/make_macos_package.sh
2021-04-30 20:10:29 +02:00

15 lines
199 B
Bash

#!/bin/sh
mkdir sdrpp
# Copy files
ORIG_DIR=$PWD
cd $1
make install DESTDIR=$ORIG_DIR/sdrpp
cd $ORIG_DIR
# Create archive
productbuild --root sdrpp / sdrpp_macos_amd64.pkg
# Cleanup
rm -rf sdrpp/