17
17
# with this program; if not, write to the Free Software Foundation, Inc.,
18
18
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
if [ "$PLAYONLINUX" = "" ]
20
[ "$PLAYONLINUX" = "" ] && exit 0
25
21
source "$PLAYONLINUX/lib/sources"
27
if [ ! "$OFFLINE" == "1" ]
29
menu=$($PYTHON "$PLAYONLINUX/python/install.py" | tail -n 1);
31
if [ "$menu" = "ExecLiveInstall" -o "$OFFLINE" == "1" ]
33
LNG_MAIN_INSTALL_LIVE=$(eval_gettext "Manual installation")
34
LNG_MAIN_INSTALL_PKG=$(eval_gettext "Install a .pol package")
35
LNG_APP_CHOOSE3=$(eval_gettext "Installation wizard")
36
LNG_APP_CHOOSE=$(eval_gettext "Please choose a type of application to install.")
38
LISTE="$LNG_MAIN_INSTALL_LIVE~$LNG_MAIN_INSTALL_PKG"
39
installbis=$(menu "$LNG_APP_CHOOSE" "$LISTE" "$LNG_APP_CHOOSE3" 1 2 1 "wizard.png" "~");
40
if [ "$installbis" = "$LNG_MAIN_INSTALL_PKG" ]
42
bash "$PLAYONLINUX/playonlinux-pkg" -b
44
if [ "$installbis" = "$LNG_MAIN_INSTALL_LIVE" ]
46
bash $PLAYONLINUX/bash/LiveInstall
24
if [ "$menu" = "ExecLiveInstall" ]
26
bash "$PLAYONLINUX/bash/manual_install"
54
#check_network "playonlinux.com" --quiet
57
if [ "$menu" = "about:conceptor" ]
33
type="$(echo $menu | cut -d ':' -f1)"
34
if [ "$type" = "get" ]
59
python "$PLAYONLINUX/python/sp.py"
36
id=$(echo "$menu" | cut -d ":" -f2)
37
rm "$REPERTOIRE/install"
38
wget "$SITE/V4_data/repository/get_file_n.php?version=PlayOn$POL_OS-$VERSION&id=$id" -O "$REPERTOIRE/install" -q
39
[ -e "$REPERTOIRE/install" ] && POL_Bash "$REPERTOIRE/install"
64
type="$(echo $menu | cut -d ':' -f1)"
66
if [ "$type" = "get" ]
68
id=$(echo "$menu" | cut -d ":" -f2)
70
POL_SetupWindow_Init ""
71
POL_SetupWindow_free_presentation "Install a non-validated script" "PlayOnLinux is going to execute a non-validated script.\n\nThese scripts have not been checked by PlayOnLinux validators. Please ensure you know what you are doing !"
72
rm $REPERTOIRE/install
73
wget "$SITE/V3_data/repository/get_file_n.php?version=playonlinux-$VERSION&id=$id" -O $REPERTOIRE/install -q
74
POL_SetupWindow_licence "Here the source code of the script. Check it carrefully" "Non validated script" "$REPERTOIRE/install"
79
if [ -e "$REPERTOIRE/install" ]
81
bash $REPERTOIRE/install
85
menu=${menu//" "/"%20"}
86
rm $REPERTOIRE/install
87
wget "$SITE/V3_data/repository/get_file.php?version=playonlinux-$VERSION&id=$menu" -O $REPERTOIRE/install -q
88
if [ -e "$REPERTOIRE/install" ]
91
bash $REPERTOIRE/install
42
menu=${menu//" "/"%20"}
43
rm "$REPERTOIRE/install"
44
wget "$SITE/V4_data/repository/get_file.php?version=playonlinux-$VERSION&id=$menu" -O "$REPERTOIRE/install" -q
45
[ -e "$REPERTOIRE/install" ] && POL_Bash "$REPERTOIRE/install"