Forums

[Script] HEX: Shards of Fate

Installation Script

Auteur Réponses
muk04 Dimanche 15 Janvier 2017 à 17:38
muk04

Description of the program

Script that installs "HEX: Shards of Fate". It let you choose if you want to use an installation file or automatically download from the official site.

External Requierements

This installation does not need extra requirements in order to work.

Known Errors and Extra Information

This game has not Known errors on wine. It has a Platinum rank on winehq.org

Contents of script

#!/bin/bash
# Date : 2017/01/14 14:30
# Last revision : 2017/01/14 14:30
# Wine version used : wine-2.0-rc3
# Distribution used to test : Ubuntu 16.04.1 LTS (Xenial Xerus)
# Author : muk04
# Licence : GPLv3
# WineHQ: https://appdb.winehq.org/objectManager.php?sClass=application&iId=15675

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

TITLE="HEX: Shards of Fate"
PREFIX="HexShardsOfFate"

#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 
POL_SetupWindow_Init

POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Cryptozoic Entertainment" "http://en.hex.gameforge.com/" "muk04" "$PREFIX"
 
POL_System_TmpCreate "$PREFIX"
 
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    cd "$HOME" || exit
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "Windows Executables (*.exe)|*.exe;*.EXE"
    INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    DOWNLOAD_URL="http://dl.hex.gameforge.com/setups/HEXSetup.exe"
    DOWNLOAD_FILE="$POL_System_TmpDir/$(basename "$DOWNLOAD_URL")"
    DOWNLOAD_MD5="2625969b2446de0886209a8157e4362c"

    POL_Call POL_Download_retry "$DOWNLOAD_URL" "$DOWNLOAD_FILE" "$DOWNLOAD_MD5" "$TITLE"

    INSTALLER="$DOWNLOAD_FILE"
fi
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "2.0-rc3"

POL_Wine_SetVideoDriver
 
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"

POL_Wine "$INSTALLER"
 
POL_System_TmpDelete

POL_Shortcut "HexPatch.exe" "$TITLE" "" "" "Game;CardGame;"
 
POL_SetupWindow_Close
exit

Screenshots

Icons and banner

hexshardsoffate-22x22.png: https://ibin.co/38zFcb05WqOh.png

hexshardsoffate-48x48.png: https://ibin.co/38zGDkXrUpkh.png

top.png: https://ibin.co/38zGWnLzvqBv.png

left.png: https://ibin.co/38zGoHNIr99o.png

Edité par muk04