Skip to content

Instantly share code, notes, and snippets.

@jcjones
Last active July 10, 2019 23:20
Show Gist options
  • Save jcjones/733174da8535b3df6ac2f9e087bc75f9 to your computer and use it in GitHub Desktop.
Save jcjones/733174da8535b3df6ac2f9e087bc75f9 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Date : (2019-07-07 14-39)
# Last revision : (2019-07-10 16-00)
# Wine version used : 4.11
# Distribution used to test : MacOS 10.14.5
# Author : Pug
# PlayOnLinux : 4.3.4
# Script licence : Public Domain
# Program licence : GPL2
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Empty Epsilon"
PREFIX="empty-epsilon"
WORKING_WINE_VERSION="4.11"
AUTHOR="Pug"
EDITOR="daid"
GAME_URL="https://daid.github.io/EmptyEpsilon/"
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"
Set_OS "win7"
POL_SetupWindow_Init
POL_System_TmpCreate "$TITLE"
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
POL_SetupWindow_browse "$(eval_gettext 'Select patch to execute')" "$TITLE" ""
ZIP="$APP_ANSWER"
else
POL_Debug_Message "Downloading to $POL_System_TmpDir."
pushd "$POL_System_TmpDir"
URL="http://daid.eu/ee/downloads/EmptyEpsilon-2019.05.21-win32.zip"
ZIP="$POL_System_TmpDir/EmptyEpsilon-2019.05.21-win32.zip"
POL_Download "${URL}" "1f246fbad144ee7e512204e56e21f3ef"
popd
fi
POL_Debug_Message "ZIP is $ZIP at $(unzip)."
DEST="${WINEPREFIX}/drive_c/${PROGRAMFILES}"
cd "${DEST}"
POL_Debug_Message "Folder $(ls)"
if ! unzip "$ZIP" ; then
POL_Debug_Message "Unzip of ${ZIP} into ${DEST} failed!"
exit 1
fi
POL_Debug_Message "Post unzip, folder $(ls)"
POL_System_TmpDelete
POL_Shortcut "EmptyEpsilon-*/EmptyEpsilon.exe" "Empty Epsilon"
POL_SetupWindow_Close
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment