El Foro

[Script] Cronus

Autor Respuestas
Dadu042 Wednesday 1 May 2019 at 21:41
Dadu042
Moderator

Please read the comments ("know issues") in the script.

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-01 21-35)
# Last revision : (2019-05-01 21-35)
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
#
# Playonlinux version used : 4.3.4
#
# This sofware is based on: Dotnet 4.
# Version tested: Chronus Pro v1.21
#
# -----------------------
#
# Issues known :
#
# "dxwsetup" does crash after Cronus_0121_Setup.exe installation is launched.
# Still occurs with : Wine 4.0, 4.2, 4.7
# Still occurs  with : dotnet20sp2, dotnet461, mono210, and Microsoft's Dotnet 4.6.0
# Perhaps a version of Mono > 2.10 could fix the issue...
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Chronus"
PREFIX="chronus"
WORKING_WINE_VERSION="4.1"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="http://cronusmax.com/"
 
Set_OS "Win7"
 
POL_SetupWindow_Init
POL_Debug_Init
     
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
     
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
 
################
# To improve ? #
################
POL_SetupWindow_message  "Warning: Currently this script does not allow the software to work.\n" "$TITLE"

POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel (on the POL's Dotnet window)." "$TITLE"

# Note: The software (v1.21) want to install Dotnet v4.6
POL_Call POL_Install_dotnet461

###############
# Go          #
###############
 
POL_SetupWindow_message  "Please note: You should cancel the installation of Chronus's DotNet 4.6 !.\n" "$TITLE"
 
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
# POL_Wine_WaitExit "$TITLE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"

POL_Shortcut "Chronus.exe" "$TITLE" ""

Set_WineWindowTitle "$TITLE"
   
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Editado por: Dadu042