You are here    Supported software    Cuphead Linux nl sv ru pl es de fr

Cuphead Linux

Informations

Creator Message
HKpro2090 Anonymous

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

Cuphead is exclent game

Source code

				

Contributions

Filters:

Contribute
Member Message
HKpro2090 Thursday 26 April 2018 at 6:27
HKpro2090 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,79 @@
+#!/bin/bash
+# Date : (2018-26-04)
+# Last revision : None
+# Wine version used : 3.6
+# Distribution used to test : Ubuntu 16.04
+# Author : HKpro
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+#fetching PROGRAMFILES environmental variable
+PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
+PROGRAMFILES=${PROGRAMFILES:3}
+ 
+TYTUL="Cuphead"
+PREFIX="Cuphead"
+WORKING_WINE_VERSION-"3.6"
+
+#Starting the script
+POL_SetupWindow_Init
+
+#Starting debugging API
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "Studio MDHR" "www.cupheadgame.com" "HKpro" "$PREFIX"
+
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "auto"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+#Dependicies
+POL_Call POL_Install_d3dx10
+POL_Call POL_Install_d3dx11
+POL_Call POL_Install_d3dx11
+POL_Call POL_Install_msvc100
+POL_Call POL_Install_mscv90
+POL_Call POL_Install_mscv80
+POL_Call POL_Install_msxml3
+POL_Call POL_Install_msxml4
+POL_Call POL_Install_vcrun2005
+POL_Call POL_Install_vcrun2008
+POL_Call POL_Install_vcrun2010
+POL_Call POL_Install_vcrun6
+
+# Choose between Digital Download version
+POL_SetupWindow_InstallMethod "STEAM,LOCAL"
+
+# Installing mandatory dependencies
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Call POL_Install_steam
+fi
+POL_Call POL_Install_dxfullsetup
+
+# Mandatory pre-install fix for steam
+POL_Call POL_Install_steam_flags "15100"
+
+else
+        # Asking then installing DDV of the game
+        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"
+fi
+
+# Making shortcut
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/15100"
+else
+        POL_Shortcut "Cuphead.exe" "$TITLE"
+fi
+
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-26-04)
# Last revision : None
# Wine version used : 3.6
# Distribution used to test : Ubuntu 16.04
# Author : HKpro
# Licence : Retail
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
 
TYTUL="Cuphead"
PREFIX="Cuphead"
WORKING_WINE_VERSION-"3.6"

#Starting the script
POL_SetupWindow_Init

#Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Studio MDHR" "www.cupheadgame.com" "HKpro" "$PREFIX"

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

#Dependicies
POL_Call POL_Install_d3dx10
POL_Call POL_Install_d3dx11
POL_Call POL_Install_d3dx11
POL_Call POL_Install_msvc100
POL_Call POL_Install_mscv90
POL_Call POL_Install_mscv80
POL_Call POL_Install_msxml3
POL_Call POL_Install_msxml4
POL_Call POL_Install_vcrun2005
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_vcrun2010
POL_Call POL_Install_vcrun6

# Choose between Digital Download version
POL_SetupWindow_InstallMethod "STEAM,LOCAL"

# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
fi
POL_Call POL_Install_dxfullsetup

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "15100"

else
        # Asking then installing DDV of the game
        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"
fi

# Making shortcut
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/15100"
else
        POL_Shortcut "Cuphead.exe" "$TITLE"
fi

POL_SetupWindow_Close
exit 0

Replies