1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoview_ynh.git synced 2024-09-03 20:05:55 +02:00

Cleanup sources after build

This commit is contained in:
Salamandar 2024-03-09 17:23:55 +01:00
parent 5029713f11
commit edba5fae57
3 changed files with 11 additions and 0 deletions

View file

@ -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
#=================================================

View file

@ -46,6 +46,8 @@ build_api
ynh_script_progression --message="Building static UI files..." --weight=10
build_ui
cleanup_sources
#=================================================
# ADD A CONFIGURATION
#=================================================

View file

@ -64,6 +64,8 @@ build_api
ynh_script_progression --message="Building static UI files..." --weight=45
build_ui
cleanup_sources
#=================================================
# UPDATE A CONFIG FILE
#=================================================