Skip to content

Commit

Permalink
Remove the zip archive after downloading the models
Browse files Browse the repository at this point in the history
  • Loading branch information
gvne committed Jun 5, 2020
1 parent 34ab0fe commit f2efdb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/add_spleeter_models.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

# ----------------------------------
Expand Down Expand Up @@ -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()

2 comments on commit f2efdb4

@Holzhaus
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please revert this, it always causes a full redownload on each recompile. :(

@gvne
Copy link
Owner Author

@gvne gvne commented on f2efdb4 Jul 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry about that... I fixed it already with 4a4f1e7 on another branch. I'll release it as soon as I get home.

Please sign in to comment.