SDRPlusPlus/make_macos_package.sh

15 lines
199 B
Bash
Raw Normal View History

2021-04-30 19:23:43 +02:00
#!/bin/sh
2021-04-30 20:10:29 +02:00
mkdir sdrpp
2021-04-30 19:23:43 +02:00
# Copy files
ORIG_DIR=$PWD
cd $1
2021-04-30 20:10:29 +02:00
make install DESTDIR=$ORIG_DIR/sdrpp
2021-04-30 19:23:43 +02:00
cd $ORIG_DIR
# Create archive
2021-04-30 20:10:29 +02:00
productbuild --root sdrpp / sdrpp_macos_amd64.pkg
2021-04-30 19:23:43 +02:00
# Cleanup
2021-04-30 20:10:29 +02:00
rm -rf sdrpp/