diff --git a/scripts/_common.sh b/scripts/_common.sh index dcada09..64b4c6f 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -86,6 +86,13 @@ function build_ui { cp -rT "$install_dir/sources/ui/build" "$install_dir/output/ui" } +function cleanup_sources { + ynh_secure_remove --file="$install_dir/libheif" + ynh_secure_remove --file="$install_dir/sources" + ynh_secure_remove --file="$install_dir/go" + ynh_secure_remove --file="$install_dir/.cache/go-build" +} + #================================================= # EXPERIMENTAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index e84a404..0db6ebf 100755 --- a/scripts/install +++ b/scripts/install @@ -46,6 +46,8 @@ build_api ynh_script_progression --message="Building static UI files..." --weight=10 build_ui +cleanup_sources + #================================================= # ADD A CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f077fb1..d2ae849 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -64,6 +64,8 @@ build_api ynh_script_progression --message="Building static UI files..." --weight=45 build_ui +cleanup_sources + #================================================= # UPDATE A CONFIG FILE #=================================================