From cd68259c31cbb4433825692e6f8cb55f714ef38a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 4 Dec 2023 21:02:28 +0100 Subject: [PATCH] the actual source is actually in a dist/ subdir x_x --- scripts/install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 7414ba7..29ef770 100644 --- a/scripts/install +++ b/scripts/install @@ -16,7 +16,11 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Setting up source files..." --weight=4 -ynh_setup_source --dest_dir="$install_dir" +tmp_dir=$(mktemp -d) +ynh_setup_source --dest_dir="$tmp_dir" +# Dist is the compiled version. Other directories are source code and tools to build the program +cp -a "$tmp_dir/dist/." "$install_dir/" +ynh_secure_remove --file="$tmp_dir" chown -R $app:www-data "$install_dir"