SDRPlusPlus/make_windows_package.ps1

76 wiersze
3.1 KiB
PowerShell
Czysty Zwykły widok Historia

2021-04-24 21:25:44 +00:00
$build_dir=$args[0]
$root_dir=$args[1]
2020-12-24 13:43:14 +00:00
mkdir sdrpp_windows_x64
# Copy root
2021-04-24 21:25:44 +00:00
cp -Recurse $root_dir/* sdrpp_windows_x64/
2020-12-24 13:43:14 +00:00
# Copy core
2021-04-24 21:25:44 +00:00
cp $build_dir/Release/* sdrpp_windows_x64/
2020-12-24 13:43:14 +00:00
cp 'C:/Program Files/PothosSDR/bin/volk.dll' sdrpp_windows_x64/
2021-06-28 14:28:10 +00:00
# Copy source modules
cp $build_dir/airspy_source/Release/airspy_source.dll sdrpp_windows_x64/modules/
cp 'C:/Program Files/PothosSDR/bin/airspy.dll' sdrpp_windows_x64/
2020-12-24 13:43:14 +00:00
2021-04-24 21:25:44 +00:00
cp $build_dir/airspyhf_source/Release/airspyhf_source.dll sdrpp_windows_x64/modules/
2020-12-24 13:43:14 +00:00
cp 'C:/Program Files/PothosSDR/bin/airspyhf.dll' sdrpp_windows_x64/
2021-06-28 14:28:10 +00:00
cp $build_dir/bladerf_source/Release/bladerf_source.dll sdrpp_windows_x64/modules/
cp 'C:/Program Files/PothosSDR/bin/bladeRF.dll' sdrpp_windows_x64/
2021-01-29 16:24:10 +00:00
2021-06-28 14:28:10 +00:00
cp $build_dir/file_source/Release/file_source.dll sdrpp_windows_x64/modules/
2021-04-18 13:59:37 +00:00
2021-06-28 00:22:51 +00:00
cp $build_dir/hackrf_source/Release/hackrf_source.dll sdrpp_windows_x64/modules/
cp 'C:/Program Files/PothosSDR/bin/hackrf.dll' sdrpp_windows_x64/
2021-04-24 21:25:44 +00:00
cp $build_dir/rtl_sdr_source/Release/rtl_sdr_source.dll sdrpp_windows_x64/modules/
2021-02-13 21:48:42 +00:00
cp 'C:/Program Files/PothosSDR/bin/rtlsdr.dll' sdrpp_windows_x64/
2021-06-28 14:28:10 +00:00
cp $build_dir/limesdr_source/Release/limesdr_source.dll sdrpp_windows_x64/modules/
cp 'C:/Program Files/PothosSDR/bin/LimeSuite.dll' sdrpp_windows_x64/
2020-12-24 13:43:14 +00:00
2021-04-24 21:25:44 +00:00
cp $build_dir/rtl_tcp_source/Release/rtl_tcp_source.dll sdrpp_windows_x64/modules/
2020-12-24 13:43:14 +00:00
2021-04-24 22:25:02 +00:00
cp $build_dir/sdrplay_source/Release/sdrplay_source.dll sdrpp_windows_x64/modules/ -ErrorAction SilentlyContinue
cp 'C:/Program Files/SDRplay/API/x64/sdrplay_api.dll' sdrpp_windows_x64/ -ErrorAction SilentlyContinue
2021-03-30 01:37:40 +00:00
2021-06-28 14:28:10 +00:00
cp $build_dir/soapy_source/Release/soapy_source.dll sdrpp_windows_x64/modules/
cp $build_dir/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/
2021-07-19 12:25:28 +00:00
cp $build_dir/spyserver_source/Release/spyserver_source.dll sdrpp_windows_x64/modules/
2021-04-01 15:33:59 +00:00
2021-06-28 14:28:10 +00:00
# Copy sink modules
2021-04-24 21:25:44 +00:00
cp $build_dir/audio_sink/Release/audio_sink.dll sdrpp_windows_x64/modules/
2021-03-07 15:14:08 +00:00
cp "C:/Program Files (x86)/RtAudio/bin/rtaudio.dll" sdrpp_windows_x64/
cp $build_dir/network_sink/Release/network_sink.dll sdrpp_windows_x64/modules/
2020-12-24 13:43:14 +00:00
2021-06-28 14:28:10 +00:00
# Copy decoder modules
cp $build_dir/m17_decoder/Release/m17_decoder.dll sdrpp_windows_x64/modules/
cp "C:/Program Files/codec2/lib/libcodec2.dll" sdrpp_windows_x64/
2021-06-28 14:28:10 +00:00
cp $build_dir/meteor_demodulator/Release/meteor_demodulator.dll sdrpp_windows_x64/modules/
cp $build_dir/radio/Release/radio.dll sdrpp_windows_x64/modules/
# Copy misc modules
2021-04-24 21:25:44 +00:00
cp $build_dir/discord_integration/Release/discord_integration.dll sdrpp_windows_x64/modules/
cp $build_dir/frequency_manager/Release/frequency_manager.dll sdrpp_windows_x64/modules/
2021-06-28 14:28:10 +00:00
cp $build_dir/recorder/Release/recorder.dll sdrpp_windows_x64/modules/
2021-07-19 12:25:28 +00:00
cp $build_dir/rigctl_server/Release/rigctl_server.dll sdrpp_windows_x64/modules/
2021-06-28 14:28:10 +00:00
2021-04-24 02:06:04 +00:00
2021-03-20 20:53:44 +00:00
# Copy supporting libs
cp 'C:/Program Files/PothosSDR/bin/libusb-1.0.dll' sdrpp_windows_x64/
2021-04-20 20:53:23 +00:00
cp 'C:/Program Files/PothosSDR/bin/pthreadVC2.dll' sdrpp_windows_x64/
2021-03-20 20:53:44 +00:00
2020-12-24 13:43:14 +00:00
Compress-Archive -Path sdrpp_windows_x64/ -DestinationPath sdrpp_windows_x64.zip
2021-07-19 12:25:28 +00:00
rm -Force -Recurse sdrpp_windows_x64