From f2efdb486c8425c9f1e73e81ff42ba858a8bd6fe Mon Sep 17 00:00:00 2001 From: gvne Date: Fri, 5 Jun 2020 12:19:39 +0200 Subject: [PATCH] Remove the zip archive after downloading the models --- cmake/add_spleeter_models.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/add_spleeter_models.cmake b/cmake/add_spleeter_models.cmake index 11bd462..41b7ba1 100644 --- a/cmake/add_spleeter_models.cmake +++ b/cmake/add_spleeter_models.cmake @@ -27,6 +27,7 @@ if (NOT "${sha256}" STREQUAL "${expected_sha256}") COMMAND ${CMAKE_COMMAND} -E tar -xf ${zip_file} WORKING_DIRECTORY ${spleeter_models_dir} ) + file(REMOVE ${zip_path}) # Cleanup endif() # ---------------------------------- @@ -55,5 +56,6 @@ if (${spleeter_enable_filter}) COMMAND ${CMAKE_COMMAND} -E tar -xf ${zip_file} WORKING_DIRECTORY ${spleeter_filter_models_dir} ) + file(REMOVE ${zip_path}) # Cleanup endif() endif()