1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/retroarch_ynh.git synced 2024-09-03 20:16:12 +02:00

Automatic version path

This commit is contained in:
Krakinou 2021-08-24 22:08:40 +02:00
parent c230c82710
commit 3599fede98
3 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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