diff --git a/conf/app.src b/conf/app.src
deleted file mode 100644
index a7727af..0000000
--- a/conf/app.src
+++ /dev/null
@@ -1,6 +0,0 @@
-SOURCE_URL=https://github.com/keeweb/keeweb/archive/v1.7.7.tar.gz
-SOURCE_SUM=cd36bd933c7f948d02be9beb02fe0ecdb46e630b875fbeebb42cb0a7558191af
-SOURCE_SUM_PRG=sha256sum
-SOURCE_FORMAT=tar.gz
-SOURCE_IN_SUBDIR=true
-SOURCE_FILENAME=
diff --git a/manifest.json b/manifest.json
index f5fc5a1..65e9e4c 100644
--- a/manifest.json
+++ b/manifest.json
@@ -6,7 +6,7 @@
"en": "Password manager compatible with KeePass.",
"fr": "Gestionnaire de mots de passe compatible avec KeePass."
},
- "version": "1.7.7~ynh2",
+ "version": "1.7.7~ynh3",
"url": "https://keeweb.info/",
"license": "MIT",
"maintainer": {
diff --git a/scripts/install b/scripts/install
index 3e61ec1..59fb85a 100644
--- a/scripts/install
+++ b/scripts/install
@@ -52,15 +52,18 @@ ynh_webpath_register $app $domain $path_url
ynh_app_setting_set $app domain $domain
ynh_app_setting_set $app path $path_url
ynh_app_setting_set $app is_public $is_public
+ynh_app_setting_set $app final_path $final_path
#=================================================
# STANDARD MODIFICATIONS
#=================================================
-# DOWNLOAD, CHECK AND UNPACK SOURCE
+# INSTALL SOURCES
#=================================================
-ynh_app_setting_set $app final_path $final_path
-ynh_setup_source "$final_path" # Télécharge la source, décompresse et copie dans $final_path
+# To avoid a complete rebuild, I downloaded the gh-pages as explained here: https://github.com/keeweb/keeweb#self-hosting
+# and put all files in "../sources/extra_files/app/", like that I can assure the version install in YunoHost is the version described in the manifest
+mkdir -p "$final_path"
+cp ../sources/extra_files/app/* "$final_path"
#=================================================
# NGINX CONFIGURATION
@@ -74,20 +77,20 @@ ynh_add_nginx_config
# USE THE CONFIG FILE
#=================================================
-ynh_replace_string "(no-config)" "config.json" "$final_path/app/index.html"
+ynh_replace_string "(no-config)" "config.json" "$final_path/index.html"
#=================================================
# COPY THE CONFIG FILE
#=================================================
-cp ../conf/config.json "$final_path/app/"
+cp ../conf/config.json "$final_path/"
#=================================================
# STORE THE CHECKSUM OF THE CONFIG FILE
#=================================================
# Enregistre la somme de contrôle du fichier de config
-ynh_store_file_checksum "$final_path/app/config.json"
+ynh_store_file_checksum "$final_path/config.json"
#=================================================
# GENERIC FINALISATION
diff --git a/scripts/upgrade b/scripts/upgrade
index 689fddc..0be9abb 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -71,13 +71,11 @@ ynh_maintenance_mode_ON
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
-# DOWNLOAD, CHECK AND UNPACK SOURCE
+# INSTALL SOURCES
#=================================================
-if [ "$upgrade_type" == "UPGRADE_APP" ]
-then
- ynh_setup_source "$final_path" # Télécharge la source, décompresse et copie dans $final_path
-fi
+mkdir -p "$final_path"
+cp ../sources/extra_files/app/* "$final_path"
#=================================================
# NGINX CONFIGURATION
@@ -91,16 +89,16 @@ ynh_add_nginx_config
# USE THE CONFIG FILE
#=================================================
-ynh_replace_string "(no-config)" "config.json" "$final_path/app/index.html"
+ynh_replace_string "(no-config)" "config.json" "$final_path/index.html"
#=================================================
# COPY THE CONFIG FILE
#=================================================
# Copie ou modification d'un fichier de config
-ynh_backup_if_checksum_is_different "$final_path/app/config.json" # Créé un backup du fichier de config si il a été modifié.
-cp ../conf/config.json "$final_path/app/"
-ynh_store_file_checksum "$final_path/app/config.json" # Réenregistre la somme de contrôle du fichier de config
+ynh_backup_if_checksum_is_different "$final_path/config.json" # Créé un backup du fichier de config si il a été modifié.
+cp ../conf/config.json "$final_path/"
+ynh_store_file_checksum "$final_path/config.json" # Réenregistre la somme de contrôle du fichier de config
#=================================================
# GENERIC FINALISATION
diff --git a/sources/extra_files/app/CNAME b/sources/extra_files/app/CNAME
new file mode 100644
index 0000000..f268389
--- /dev/null
+++ b/sources/extra_files/app/CNAME
@@ -0,0 +1 @@
+app.keeweb.info
diff --git a/sources/extra_files/app/browserconfig.xml b/sources/extra_files/app/browserconfig.xml
new file mode 100644
index 0000000..57b24d9
--- /dev/null
+++ b/sources/extra_files/app/browserconfig.xml
@@ -0,0 +1,12 @@
+
+