1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/retroarch_ynh.git synced 2024-09-03 20:16:12 +02:00
retroarch_ynh/conf/indexer.sh
2023-05-07 18:10:21 +02:00

29 lines
845 B
Bash

#!/bin/bash
#This script is run by the cron job in /etc/cron.d/retroarch
#It will index all cores in the opt/yunohost/retroarch/assets/cores folder so that they are available in
# retroarch itself.
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source /usr/share/yunohost/helpers
source _common.sh
#=================================================
# GET APP SETTINGS
#=================================================
app=__APP__
install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
#=================================================
# Update the index
#=================================================
ynh_use_nodejs
cd $install_dir/assets/frontend/bundle/
../../../indexer > .index-xhr
cd $install_dir/assets/cores
../../indexer > .index-xhr