From 3599fede98c12a59e94f1b64b6a3bae9b91c417c Mon Sep 17 00:00:00 2001 From: Krakinou Date: Tue, 24 Aug 2021 22:08:40 +0200 Subject: [PATCH] Automatic version path --- conf/{retroarch.src => app.src.default} | 2 +- scripts/install | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) rename conf/{retroarch.src => app.src.default} (59%) diff --git a/conf/retroarch.src b/conf/app.src.default similarity index 59% rename from conf/retroarch.src rename to conf/app.src.default index 4fa1bfd..c02c70b 100644 --- a/conf/retroarch.src +++ b/conf/app.src.default @@ -1,4 +1,4 @@ -SOURCE_URL=https://buildbot.libretro.com/stable/1.9.8/emscripten/RetroArch.7z +SOURCE_URL=https://buildbot.libretro.com/stable/__UPSTREAM_VERSION__/emscripten/RetroArch.7z SOURCE_SUM=03166297e546e44755f1bacd8a4bbc90b58fae746864c3f67eaadd8c814906b2 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=7z diff --git a/scripts/install b/scripts/install index a83bd20..9b09f4f 100755 --- a/scripts/install +++ b/scripts/install @@ -67,6 +67,7 @@ ynh_script_progression --message="Setting up source files..." --weight=60 ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src # uncompress and patch done manually as 7z format is not supported +ynh_add_config --template="../conf/app.src.default" --destination="../conf/app.src" ynh_setup_source --dest_dir="$final_path" --source_id=$app #7z archive not handled by ynh and no way to strip component, have to move it manually 7zr x $final_path/retroarch.7z -o$final_path diff --git a/scripts/upgrade b/scripts/upgrade index c34ff6a..57bb24a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -57,6 +57,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src + ynh_add_config --template="../conf/app.src.default" --destination="../conf/app.src" ynh_setup_source --dest_dir="$final_path" --source_id=$app #7z archive not handled by ynh and no way to strip component, have to move it manually 7zr x $final_path/retroarch.7z -o$final_path