The forum

[Script] - Krosmaga

Author Replies
Asgeir Saturday 29 October 2016 at 2:09
Asgeir

Bonjour tout le monde !

Bien qu'étant un utilisateur régulier de POL, je me suis lancé dans l'édition de script. En effet je viens de créer un script grâce à votre wiki. Cependant, j'ai en effet un petit problème. À la fin de l'installation il lance directement le launcher du jeu en question. Le problème c'est qu'il n'est pas possible de valider la fermeture du launcher pour terminer l'installateur et de créer les icons afin de rendre le jeu utilisable.

Comment je peux dire à POL de continuer l'installation une fois, un processus fermé ?

Voici le code :

#!/bin/bash
# Date : (2016-10-23)
# Last revision : (2016-10-23 15-00)
# Wine version used : 1.9.20
# Distribution used to test : Ubuntu 16.04.1 LTS x64
# Author : AsgeirH
#!/bin/bash

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Krosmaga"
PREFIX="Krosmaga"
WORKING_WINE_VERSION="1.9.20-staging"

POL_SetupWindow_Init

POL_SetupWindow_presentation "Krosmaga" "Ankama" "http://www.krosmaga.com" "AsgeirH" "Krosmaga"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"
POL_Call POL_Install_AdobeAir
POL_Call POL_Install_dxfullsetup
POL_Wine_InstallFonts

Set_OS "win7"
POL_Wine_OverrideDLL "disabled" "d3d11"

POL_SetupWindow_InstallMethod "LOCAL"

if [ "$INSTALL_METHOD" = "LOCAL" ]
then

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE" --allow-kill
fi

POL_Shortcut "transition.exe" "$TITLE"

POL_SetupWindow_Close

exit

Edited by Asgeir