2021-11-17 21:04:20 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# ========================= Boilerplate =========================
|
|
|
|
BUILD_DIR=$1
|
|
|
|
BUNDLE=$2
|
|
|
|
|
|
|
|
source macos/bundle_utils.sh
|
|
|
|
|
|
|
|
# ========================= Prepare dotapp structure =========================
|
|
|
|
|
|
|
|
# Clear .app
|
|
|
|
rm -rf $BUNDLE
|
|
|
|
|
|
|
|
# Create .app structure
|
|
|
|
bundle_create_struct $BUNDLE
|
|
|
|
|
|
|
|
# Add resources
|
|
|
|
cp -R root/res/* $BUNDLE/Contents/Resources/
|
|
|
|
|
|
|
|
# Create the icon file
|
2022-02-03 12:57:38 +00:00
|
|
|
bundle_create_icns root/res/icons/sdrpp.macos.png $BUNDLE/Contents/Resources/sdrpp
|
2021-11-17 21:04:20 +00:00
|
|
|
|
|
|
|
# Create the property list
|
2022-07-08 18:31:53 +00:00
|
|
|
bundle_create_plist sdrpp SDR++ org.sdrpp.sdrpp 1.1.0 sdrp sdrpp sdrpp $BUNDLE/Contents/Info.plist
|
2021-11-17 21:04:20 +00:00
|
|
|
|
|
|
|
# ========================= Install binaries =========================
|
|
|
|
|
|
|
|
# Core
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/MacOS $BUILD_DIR/sdrpp
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Frameworks $BUILD_DIR/core/libsdrpp_core.dylib
|
|
|
|
|
|
|
|
# Source modules
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/airspy_source/airspy_source.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/airspyhf_source/airspyhf_source.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/bladerf_source/bladerf_source.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/file_source/file_source.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/hackrf_source/hackrf_source.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/limesdr_source/limesdr_source.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/plutosdr_source/plutosdr_source.dylib
|
2022-01-22 01:30:08 +00:00
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/rfspace_source/rfspace_source.dylib
|
2021-11-17 21:04:20 +00:00
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/rtl_sdr_source/rtl_sdr_source.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/rtl_tcp_source/rtl_tcp_source.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/sdrplay_source/sdrplay_source.dylib
|
2022-01-22 01:30:08 +00:00
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/sdrpp_server_source/sdrpp_server_source.dylib
|
2021-11-17 21:04:20 +00:00
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/soapy_source/soapy_source.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/source_modules/spyserver_source/spyserver_source.dylib
|
|
|
|
|
|
|
|
# Sink modules
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/sink_modules/portaudio_sink/audio_sink.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/sink_modules/network_sink/network_sink.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/sink_modules/new_portaudio_sink/new_portaudio_sink.dylib
|
|
|
|
|
|
|
|
# Decoder modules
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/decoder_modules/m17_decoder/m17_decoder.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/decoder_modules/meteor_demodulator/meteor_demodulator.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/decoder_modules/radio/radio.dylib
|
|
|
|
|
2022-08-30 14:07:49 +00:00
|
|
|
# Misc modules
|
2021-11-17 21:04:20 +00:00
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/misc_modules/discord_integration/discord_integration.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/misc_modules/frequency_manager/frequency_manager.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/misc_modules/recorder/recorder.dylib
|
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/misc_modules/rigctl_server/rigctl_server.dylib
|
2022-08-30 14:07:49 +00:00
|
|
|
bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/misc_modules/scanner/scanner.dylib
|
2021-11-17 21:04:20 +00:00
|
|
|
|
|
|
|
# ========================= Finalize =========================
|
|
|
|
|
|
|
|
# Sign the app
|
|
|
|
bundle_sign $BUNDLE
|