SDRPlusPlus/make_windows_package.ps1

100 lines
4.3 KiB
PowerShell
Raw Normal View History

2021-04-24 23:25:44 +02:00
$build_dir=$args[0]
$root_dir=$args[1]
2020-12-24 14:43:14 +01:00
mkdir sdrpp_windows_x64
# Copy root
2021-04-24 23:25:44 +02:00
cp -Recurse $root_dir/* sdrpp_windows_x64/
2020-12-24 14:43:14 +01:00
# Copy core
2021-04-24 23:25:44 +02:00
cp $build_dir/Release/* sdrpp_windows_x64/
2020-12-24 14:43:14 +01:00
cp 'C:/Program Files/PothosSDR/bin/volk.dll' sdrpp_windows_x64/
2021-06-28 16:28:10 +02:00
# Copy source modules
2021-10-03 16:50:36 +02:00
cp $build_dir/source_modules/airspy_source/Release/airspy_source.dll sdrpp_windows_x64/modules/
2021-06-28 16:28:10 +02:00
cp 'C:/Program Files/PothosSDR/bin/airspy.dll' sdrpp_windows_x64/
2020-12-24 14:43:14 +01:00
2021-10-03 16:50:36 +02:00
cp $build_dir/source_modules/airspyhf_source/Release/airspyhf_source.dll sdrpp_windows_x64/modules/
2020-12-24 14:43:14 +01:00
cp 'C:/Program Files/PothosSDR/bin/airspyhf.dll' sdrpp_windows_x64/
2023-02-21 20:46:28 +01:00
cp $build_dir/source_modules/audio_source/Release/audio_source.dll sdrpp_windows_x64/modules/
2021-10-03 16:50:36 +02:00
cp $build_dir/source_modules/bladerf_source/Release/bladerf_source.dll sdrpp_windows_x64/modules/
2021-06-28 16:28:10 +02:00
cp 'C:/Program Files/PothosSDR/bin/bladeRF.dll' sdrpp_windows_x64/
2021-01-29 17:24:10 +01:00
2021-10-03 16:50:36 +02:00
cp $build_dir/source_modules/file_source/Release/file_source.dll sdrpp_windows_x64/modules/
2021-04-18 15:59:37 +02:00
2021-10-03 16:50:36 +02:00
cp $build_dir/source_modules/hackrf_source/Release/hackrf_source.dll sdrpp_windows_x64/modules/
2021-06-28 02:22:51 +02:00
cp 'C:/Program Files/PothosSDR/bin/hackrf.dll' sdrpp_windows_x64/
2022-10-23 17:41:10 +02:00
cp $build_dir/source_modules/hermes_source/Release/hermes_source.dll sdrpp_windows_x64/modules/
2021-02-13 22:48:42 +01:00
2021-10-03 16:50:36 +02:00
cp $build_dir/source_modules/limesdr_source/Release/limesdr_source.dll sdrpp_windows_x64/modules/
2021-06-28 16:28:10 +02:00
cp 'C:/Program Files/PothosSDR/bin/LimeSuite.dll' sdrpp_windows_x64/
2020-12-24 14:43:14 +01:00
2023-06-10 20:22:32 +02:00
cp $build_dir/source_modules/perseus_source/Release/perseus_source.dll sdrpp_windows_x64/modules/
cp 'C:/Program Files/PothosSDR/bin/perseus-sdr.dll' sdrpp_windows_x64/
2022-10-23 17:41:10 +02:00
cp $build_dir/source_modules/plutosdr_source/Release/plutosdr_source.dll sdrpp_windows_x64/modules/
cp 'C:/Program Files/PothosSDR/bin/libiio.dll' sdrpp_windows_x64/
cp 'C:/Program Files/PothosSDR/bin/libad9361.dll' sdrpp_windows_x64/
cp $build_dir/source_modules/rfspace_source/Release/rfspace_source.dll sdrpp_windows_x64/modules/
2022-10-23 17:41:10 +02:00
cp $build_dir/source_modules/rtl_sdr_source/Release/rtl_sdr_source.dll sdrpp_windows_x64/modules/
cp 'C:/Program Files/PothosSDR/bin/rtlsdr.dll' sdrpp_windows_x64/
2021-10-03 16:50:36 +02:00
cp $build_dir/source_modules/rtl_tcp_source/Release/rtl_tcp_source.dll sdrpp_windows_x64/modules/
2020-12-24 14:43:14 +01:00
2021-10-03 16:50:36 +02:00
cp $build_dir/source_modules/sdrplay_source/Release/sdrplay_source.dll sdrpp_windows_x64/modules/ -ErrorAction SilentlyContinue
2021-04-25 00:25:02 +02:00
cp 'C:/Program Files/SDRplay/API/x64/sdrplay_api.dll' sdrpp_windows_x64/ -ErrorAction SilentlyContinue
2021-03-30 03:37:40 +02:00
2022-01-21 20:41:39 +01:00
cp $build_dir/source_modules/sdrpp_server_source/Release/sdrpp_server_source.dll sdrpp_windows_x64/modules/
2021-10-03 16:50:36 +02:00
cp $build_dir/source_modules/soapy_source/Release/soapy_source.dll sdrpp_windows_x64/modules/
2021-06-28 16:28:10 +02:00
2021-10-03 16:50:36 +02:00
cp $build_dir/source_modules/spyserver_source/Release/spyserver_source.dll sdrpp_windows_x64/modules/
2021-07-19 14:25:28 +02:00
2022-11-12 02:19:53 +01:00
# cp $build_dir/source_modules/usrp_source/Release/usrp_source.dll sdrpp_windows_x64/modules/
2022-10-23 17:41:10 +02:00
2021-04-01 17:33:59 +02:00
2021-06-28 16:28:10 +02:00
# Copy sink modules
2021-10-03 16:50:36 +02:00
cp $build_dir/sink_modules/audio_sink/Release/audio_sink.dll sdrpp_windows_x64/modules/
2021-03-07 16:14:08 +01:00
cp "C:/Program Files (x86)/RtAudio/bin/rtaudio.dll" sdrpp_windows_x64/
2022-10-23 17:41:10 +02:00
2021-10-03 16:50:36 +02:00
cp $build_dir/sink_modules/network_sink/Release/network_sink.dll sdrpp_windows_x64/modules/
2020-12-24 14:43:14 +01:00
2021-06-28 16:28:10 +02:00
# Copy decoder modules
2021-10-03 16:50:36 +02:00
cp $build_dir/decoder_modules/m17_decoder/Release/m17_decoder.dll sdrpp_windows_x64/modules/
cp "C:/Program Files/codec2/lib/libcodec2.dll" sdrpp_windows_x64/
2021-10-03 16:50:36 +02:00
cp $build_dir/decoder_modules/meteor_demodulator/Release/meteor_demodulator.dll sdrpp_windows_x64/modules/
2022-10-23 17:41:10 +02:00
2021-10-03 16:50:36 +02:00
cp $build_dir/decoder_modules/radio/Release/radio.dll sdrpp_windows_x64/modules/
2021-06-28 16:28:10 +02:00
# Copy misc modules
2021-10-03 16:50:36 +02:00
cp $build_dir/misc_modules/discord_integration/Release/discord_integration.dll sdrpp_windows_x64/modules/
2022-10-23 17:41:10 +02:00
2021-10-03 16:50:36 +02:00
cp $build_dir/misc_modules/frequency_manager/Release/frequency_manager.dll sdrpp_windows_x64/modules/
2022-10-23 17:41:10 +02:00
2024-02-01 18:36:25 +01:00
cp $build_dir/misc_modules/iq_exporter/Release/iq_exporter.dll sdrpp_windows_x64/modules/
2021-10-03 16:50:36 +02:00
cp $build_dir/misc_modules/recorder/Release/recorder.dll sdrpp_windows_x64/modules/
2022-10-23 17:41:10 +02:00
2023-02-22 21:45:19 +01:00
cp $build_dir/misc_modules/rigctl_client/Release/rigctl_client.dll sdrpp_windows_x64/modules/
2021-10-03 16:50:36 +02:00
cp $build_dir/misc_modules/rigctl_server/Release/rigctl_server.dll sdrpp_windows_x64/modules/
2022-10-23 17:41:10 +02:00
2022-08-30 16:07:49 +02:00
cp $build_dir/misc_modules/scanner/Release/scanner.dll sdrpp_windows_x64/modules/
2021-06-28 16:28:10 +02:00
2021-04-24 04:06:04 +02:00
2021-03-20 21:53:44 +01:00
# Copy supporting libs
cp 'C:/Program Files/PothosSDR/bin/libusb-1.0.dll' sdrpp_windows_x64/
2021-04-20 22:53:23 +02:00
cp 'C:/Program Files/PothosSDR/bin/pthreadVC2.dll' sdrpp_windows_x64/
2021-03-20 21:53:44 +01:00
2020-12-24 14:43:14 +01:00
Compress-Archive -Path sdrpp_windows_x64/ -DestinationPath sdrpp_windows_x64.zip
2021-07-19 14:25:28 +02:00
rm -Force -Recurse sdrpp_windows_x64