-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
78 lines (61 loc) · 2.88 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/sh
################################################################################
# - GAMELISTPOWER - #
# - INSTALL PLATEFORME COLLECTIONS - #
#------------------------------------------------------------------------------#
# Installation de la plateforme collections #
#------------------------------------------------------------------------------#
# NORDIC POWER amiga15@outlook.fr 0.9.10 04/06/2018-30/09/2018 #
################################################################################
#INIT
PATH_DEST_ES_SYSTEMS=/recalbox/share_init/system/.emulationstation/es_systems.cfg
PATH_SRC_ES_SYSTEMS=./ressources/collections/es_systems.cfg
PATH_ROMS_COLLECTIONS=/recalbox/share/roms/collections
PATH_SRC_COLLECTION=./ressources/collections
PATH_ROMS_LINUXTOOLS=/recalbox/share/roms/linuxtools
PATH_SRC_FAVORI=./ressources/favori
mount -o remount,rw /
echo "Deploiement de la plateforme Collections"
################################################################################
#PREPARATION DU DOSSIER COLLECTION
echo "Gestion des dossiers"
if [ ! -d $PATH_ROMS_COLLECTIONS ];then
mkdir $PATH_ROMS_COLLECTIONS
chmod 777 $PATH_ROMS_COLLECTIONS
echo "Creation du dossier $PATH_ROMS_COLLECTIONS"
touch $PATH_ROMS_COLLECTIONS/gamelist.xml
fi
if [ ! -d $PATH_ROMS_COLLECTIONS/images ];then
mkdir $PATH_ROMS_COLLECTIONS/images
chmod 777 $PATH_ROMS_COLLECTIONS/images
echo "Creation du dossier $PATH_ROMS_COLLECTIONS/images"
fi
if [ -d $PATH_SRC_COLLECTION ];then
cp $PATH_SRC_COLLECTION/*.png $PATH_ROMS_COLLECTIONS/images
chmod 777 $PATH_SRC_COLLECTION/*.sh
cp $PATH_SRC_COLLECTION/*.sh $PATH_ROMS_COLLECTIONS
cp $PATH_SRC_COLLECTION/*.txt $PATH_ROMS_COLLECTIONS
echo "Copie des ressouces images, txt et sh"
fi
################################################################################
#PREPARATION DU DOSSIER LINUXTOOLS POUR LANCER FAVORI / COLLECTION
if [ -d $PATH_ROMS_LINUXTOOLS ];then
#COLLECTION
chmod 777 $PATH_SRC_COLLECTION/*.sh
cp $PATH_SRC_COLLECTION/*.sh $PATH_ROMS_LINUXTOOLS
#FAVORI
chmod 777 $PATH_SRC_FAVORI/*.sh
cp $PATH_SRC_FAVORI/*.sh $PATH_ROMS_LINUXTOOLS
cp $PATH_SRC_FAVORI/*.jpg $PATH_ROMS_LINUXTOOLS/images
fi
################################################################################
#AJOUT DE LA PLATEFORME COLLECTION
echo "Ajout de la plateforme COLLECTION sous Emulation Station"
python system.py merge -f $PATH_SRC_ES_SYSTEMS
################################################################################
#LANCEMENT DE LA MISE A JOUR COLLECTION
echo "Lancement de la generation des lanceurs COLLECTION"
python gamelistpower.py generate_sh info
################################################################################
echo "Fin"
echo "Merci de rebooter pour prendre en compte la nouvelle plateforme"