diff --git a/conf/app.src b/conf/app.src new file mode 100644 index 0000000..92ad300 --- /dev/null +++ b/conf/app.src @@ -0,0 +1,9 @@ +SOURCE_URL=https://github.com/jatekos101/20euros/archive/v0.1.zip +SOURCE_SUM=79e743f874eef952e8e0ca5f7a48d04872d7671a9c0581ce188fc42ee11bdf72 +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=tar.gz +SOURCE_IN_SUBDIR=true +SOURCE_FILENAME= + + + diff --git a/manifest.json b/manifest.json index c004c81..312e4c7 100644 --- a/manifest.json +++ b/manifest.json @@ -3,18 +3,18 @@ "id": "20euros", "packaging_format": 1, "description": { - "en": "2048 - 20euros", - "fr": "2048 - 20euros" + "en": "A 2048 variant with Euro coins and notes.", + "fr": "Une variante 2048 avec pièces et billets en euros." }, "version": "1.0~ynh2", "url": "https://github.com/jatekos101/20euros", "license": "MIT", "maintainer": { "name": "eric_G", - "email": "ericgaspar@free.fr" + "email": "" }, "requirements": { - "yunohost": ">= 3.7.0" + "yunohost": ">= 4.0.0" }, "multi_instance": true, "services": [ diff --git a/scripts/backup b/scripts/backup index 9f104b0..80e4cd6 100644 --- a/scripts/backup +++ b/scripts/backup @@ -17,13 +17,18 @@ ynh_abort_if_errors #================================================= # LOAD SETTINGS #================================================= -ynh_print_info --message="Backing up 20euros..." +ynh_print_info --message="Loading installation settings..." app=$YNH_APP_INSTANCE_NAME final_path=$(ynh_app_setting_get --app=$app --key=final_path) domain=$(ynh_app_setting_get --app=$app --key=domain) +#================================================= +# DECLARE DATA AND CONF FILES TO BACKUP +#================================================= +ynh_print_info --message="Declaring files to be backed up..." + #================================================= # BACKUP THE APP MAIN DIR #================================================= diff --git a/scripts/install b/scripts/install index dfdcdff..b40b1e0 100755 --- a/scripts/install +++ b/scripts/install @@ -54,9 +54,10 @@ ynh_app_setting_set --app=$app --key=is_public --value=$is_public ynh_script_progression --message="Setting up source files..." --weight=1 ynh_app_setting_set --app=$app --key=final_path --value=$final_path - -mkdir -p $final_path -cp -a ../sources/* $final_path +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$final_path" +#mkdir -p $final_path +#cp -a ../sources/* $final_path #================================================= # NGINX CONFIGURATION