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

Standardize app.src

This commit is contained in:
tituspijean 2022-05-13 23:28:52 +02:00
parent ec3d2d9567
commit f4ece6dccd
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
4 changed files with 5 additions and 9 deletions

5
conf/app.src Normal file
View file

@ -0,0 +1,5 @@
SOURCE_URL=https://buildbot.libretro.com/stable/1.10.3/emscripten/RetroArch.7z
SOURCE_SUM=ccbed86baa1b7f6a92104c20ca9671124c15189dfddf76be641c7486c74fc1d2
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=7z
SOURCE_EXTRACT=false

View file

@ -1,5 +0,0 @@
SOURCE_URL=https://buildbot.libretro.com/stable/__UPSTREAM_VERSION__/emscripten/RetroArch.7z
SOURCE_SUM=a87c96995c9784485ea0686bcc5a37d334cf2e6a56106a80dc447bbfad9ffc98
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=7z
SOURCE_EXTRACT=false

View file

@ -28,7 +28,6 @@ domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC is_public=$YNH_APP_ARG_IS_PUBLIC
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
upstream_version=$(ynh_app_upstream_version)
#================================================= #=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
@ -68,7 +67,6 @@ ynh_script_progression --message="Setting up source files..." --weight=60
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
# uncompress and patch done manually as 7z format is not supported # uncompress and patch done manually as 7z format is not supported
ynh_add_config --template="../conf/app.src.default" --destination="../conf/retroarch.src"
ynh_setup_source --dest_dir="$final_path" --source_id=$app 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 #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 7zr x $final_path/retroarch.7z -o$final_path

View file

@ -15,7 +15,6 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Loading installation settings..." --weight=1 ynh_script_progression --message="Loading installation settings..." --weight=1
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
upstream_version=$(ynh_app_upstream_version)
domain=$(ynh_app_setting_get --app=$app --key=domain) domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path) path_url=$(ynh_app_setting_get --app=$app --key=path)
@ -52,7 +51,6 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=5 ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_add_config --template="../conf/app.src.default" --destination="../conf/retroarch.src"
ynh_setup_source --dest_dir="$final_path" --source_id=$app 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 #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 7zr x $final_path/retroarch.7z -o$final_path