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:
parent
5029713f11
commit
edba5fae57
3 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -46,6 +46,8 @@ build_api
|
|||
ynh_script_progression --message="Building static UI files..." --weight=10
|
||||
build_ui
|
||||
|
||||
cleanup_sources
|
||||
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -64,6 +64,8 @@ build_api
|
|||
ynh_script_progression --message="Building static UI files..." --weight=45
|
||||
build_ui
|
||||
|
||||
cleanup_sources
|
||||
|
||||
#=================================================
|
||||
# UPDATE A CONFIG FILE
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue