Epic Games Launcher

Informations

Creator Message
Yaotl Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 22361
Wine: 5.11-staging

Feedbacks

Description

Installs the Epic Games Launcher (Wikipedia, Website).

Script in test phase.

Appdb.winehq.org

Screenshots

Miniature

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2020-07-19)
# Last revision : see changelog
# Distribution used to test : Linux Mint 20 Cinnamon
# Author : Yaotl
# Licence : GPLv3
# PlayOnLinux : 4.3.4
#
# BETA Script
#
#
# CHANGELOG
# [Yaotl] (2020-07-19)
#   First script.
# [Dadu042] (2019-04-28 18:11)
#   [CHANGED] Remove POL_SetupWindow_SetID because unused anymore.
#   [CHANGED] 'exit' -> 'exit 0'
#   [FIXED] POL_System_SetArch location.
# [Yaotl] (2020-07-29 15:10)
#   [CHANGED] Added a way for a local installation.
#   [CHANGED] Enable UseGLSL & Enable OpenGL.

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

# Initialization
POL_SetupWindow_Init
POL_Debug_Init

PREFIX="EpicGamesLauncher"
TITLE="Epic Games Launcher"
WINEVERSION="5.11-staging"
DOWNLOAD_URL="https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"

# Presentation
POL_SetupWindow_presentation "$TITLE" "Epic Games Inc." "https://www.epicgames.com/" "Yaotl" "$PREFIX"

# Checks the required POL/POM version
POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

POL_SetupWindow_message "$(eval_gettext '\nWarning: this is a beta script ! (not fully working), and if the launcher does run this does not mean the games will.')" "$TITLE"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"

# Determine Architecture
POL_System_SetArch "amd64"

POL_Wine_PrefixCreate "$WINEVERSION"

# Dependencies
POL_Call POL_Install_corefonts
POL_Call POL_Install_vcrun2019

# Loading d3d12 can cause problems. Therefore it is deleted.
rm -rf "$WINEPREFIX/drive_c/windows/system32/d3d12.dll"
rm -rf "$WINEPREFIX/drive_c/windows/syswow64/d3d12.dll"

# Asking about memory size of graphic card
POL_SetupWindow_VMS ${GAME_VMS}

POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"

# Set Graphic Card informations keys for wine
POL_Call POL_Install_VideoDriver

# Configuration
Set_OS "win81"

# Installation
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    cd "$HOME"
    POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
    INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
    POL_System_TmpCreate "$PREFIX"
    cd "$POL_System_TmpDir"
    POL_Download "$DOWNLOAD_URL"
    INSTALLER="$POL_System_TmpDir/EpicGamesLauncherInstaller.msi"
fi

POL_SetupWindow_wait "Please wait" "$TITLE Installation in progress"
POL_Wine msiexec /i "$INSTALLER" SKIP_AUTOLAUNCH="1"

# Create Shortcut
POL_Shortcut "EpicGamesLauncher.exe" "$TITLE" "" "-SkipBuildPatchPrereq" "Game;Launcher;"

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
GeneralError Tuesday 2 August 2022 at 14:00
GeneralError Anonymous

Message

Sorry, but your script fails.  Even after setting up the variables and changing amd64 to arm65 (for mac) it still fails.


$ grep PLAY ~/.bashrc
export PLAYONLINUX="/Applications/PlayOnMac.app/Contents/Resources/playonlinux"
export PLAYONMAC="/Applications/PlayOnMac.app/Contents/Resources/playonlinux"

$ /tmp/epic-script.sh
mkdir: /plugins: Read-only file system
[POL_SetupWindow_Init] Message: Creating new window for pid 68390
[POL_Debug_Init] Fatal: $TITLE must be set to use debugging API
Error: Invalid port specification:
[POL_SetupWindow_Close] Message: Closing window for pid 68390

Replies

GeneralError Tuesday 2 August 2022 at 13:53
GeneralError Anonymous

Message

Why would you hardcode the POL_System_SetArch to "amd64" instead of running the `arch` command?

 

Replies

GeneralError Tuesday 2 August 2022 at 13:46
GeneralError Anonymous

Message

Here's what I get when I run it.

env: playonlinux-bash: No such file or directory

 

Replies

Yaotl Sunday 26 July 2020 at 9:14
Yaotl Anonymous

Information

This update has been approved by the team.

Message

Last change: 2020-07-29 15-10 CEST

Differences

@@ -1,6 +1,6 @@
 #!/usr/bin/env playonlinux-bash
 # Date : (2020-07-19)
-# Last revision : (2020-07-19 23-11)
+# Last revision : see changelog
 # Distribution used to test : Linux Mint 20 Cinnamon
 # Author : Yaotl
 # Licence : GPLv3
@@ -16,10 +16,13 @@
 #   [CHANGED] Remove POL_SetupWindow_SetID because unused anymore.
 #   [CHANGED] 'exit' -> 'exit 0'
 #   [FIXED] POL_System_SetArch location.
+# [Yaotl] (2020-07-29 15:10)
+#   [CHANGED] Added a way for a local installation.
+#   [CHANGED] Enable UseGLSL & Enable OpenGL.
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
+
 # Initialization
 POL_SetupWindow_Init
 POL_Debug_Init
@@ -27,19 +30,16 @@
 PREFIX="EpicGamesLauncher"
 TITLE="Epic Games Launcher"
 WINEVERSION="5.11-staging"
+DOWNLOAD_URL="https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"
 
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "Epic Games Inc." "https://www.epicgames.com/" "Yaotl" "$PREFIX"
- 
+
 # Checks the required POL/POM version
 POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."
 
 POL_SetupWindow_message "$(eval_gettext '\nWarning: this is a beta script ! (not fully working), and if the launcher does run this does not mean the games will.')" "$TITLE"
 
-POL_System_TmpCreate "$PREFIX"
-cd $POL_System_TmpDir
-POL_Download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"
- 
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 
@@ -47,29 +47,46 @@
 POL_System_SetArch "amd64"
 
 POL_Wine_PrefixCreate "$WINEVERSION"
- 
+
 # Dependencies
 POL_Call POL_Install_corefonts
 POL_Call POL_Install_vcrun2019
- 
+
+# Loading d3d12 can cause problems. Therefore it is deleted.
 rm -rf "$WINEPREFIX/drive_c/windows/system32/d3d12.dll"
 rm -rf "$WINEPREFIX/drive_c/windows/syswow64/d3d12.dll"
- 
+
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS ${GAME_VMS}
- 
+
+POL_Wine_Direct3D "UseGLSL" "enabled"
+POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
+
 # Set Graphic Card informations keys for wine
 POL_Call POL_Install_VideoDriver
- 
+
 # Configuration
 Set_OS "win81"
- 
+
 # Installation
-POL_Wine msiexec /i "$POL_System_TmpDir/EpicGamesLauncherInstaller.msi" SKIP_AUTOLAUNCH="1"
- 
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+if [ "$INSTALL_METHOD" = "LOCAL" ]; then
+    cd "$HOME"
+    POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
+    INSTALLER="$APP_ANSWER"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+    POL_System_TmpCreate "$PREFIX"
+    cd "$POL_System_TmpDir"
+    POL_Download "$DOWNLOAD_URL"
+    INSTALLER="$POL_System_TmpDir/EpicGamesLauncherInstaller.msi"
+fi
+
+POL_SetupWindow_wait "Please wait" "$TITLE Installation in progress"
+POL_Wine msiexec /i "$INSTALLER" SKIP_AUTOLAUNCH="1"
+
 # Create Shortcut
 POL_Shortcut "EpicGamesLauncher.exe" "$TITLE" "" "-SkipBuildPatchPrereq" "Game;Launcher;"
- 
+
 # Cleanup
 POL_System_TmpDelete
 POL_SetupWindow_Close

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2020-07-19)
# Last revision : see changelog
# Distribution used to test : Linux Mint 20 Cinnamon
# Author : Yaotl
# Licence : GPLv3
# PlayOnLinux : 4.3.4
#
# BETA Script
#
#
# CHANGELOG
# [Yaotl] (2020-07-19)
#   First script.
# [Dadu042] (2019-04-28 18:11)
#   [CHANGED] Remove POL_SetupWindow_SetID because unused anymore.
#   [CHANGED] 'exit' -> 'exit 0'
#   [FIXED] POL_System_SetArch location.
# [Yaotl] (2020-07-29 15:10)
#   [CHANGED] Added a way for a local installation.
#   [CHANGED] Enable UseGLSL & Enable OpenGL.

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

# Initialization
POL_SetupWindow_Init
POL_Debug_Init

PREFIX="EpicGamesLauncher"
TITLE="Epic Games Launcher"
WINEVERSION="5.11-staging"
DOWNLOAD_URL="https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"

# Presentation
POL_SetupWindow_presentation "$TITLE" "Epic Games Inc." "https://www.epicgames.com/" "Yaotl" "$PREFIX"

# Checks the required POL/POM version
POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

POL_SetupWindow_message "$(eval_gettext '\nWarning: this is a beta script ! (not fully working), and if the launcher does run this does not mean the games will.')" "$TITLE"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"

# Determine Architecture
POL_System_SetArch "amd64"

POL_Wine_PrefixCreate "$WINEVERSION"

# Dependencies
POL_Call POL_Install_corefonts
POL_Call POL_Install_vcrun2019

# Loading d3d12 can cause problems. Therefore it is deleted.
rm -rf "$WINEPREFIX/drive_c/windows/system32/d3d12.dll"
rm -rf "$WINEPREFIX/drive_c/windows/syswow64/d3d12.dll"

# Asking about memory size of graphic card
POL_SetupWindow_VMS ${GAME_VMS}

POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"

# Set Graphic Card informations keys for wine
POL_Call POL_Install_VideoDriver

# Configuration
Set_OS "win81"

# Installation
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    cd "$HOME"
    POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
    INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
    POL_System_TmpCreate "$PREFIX"
    cd "$POL_System_TmpDir"
    POL_Download "$DOWNLOAD_URL"
    INSTALLER="$POL_System_TmpDir/EpicGamesLauncherInstaller.msi"
fi

POL_SetupWindow_wait "Please wait" "$TITLE Installation in progress"
POL_Wine msiexec /i "$INSTALLER" SKIP_AUTOLAUNCH="1"

# Create Shortcut
POL_Shortcut "EpicGamesLauncher.exe" "$TITLE" "" "-SkipBuildPatchPrereq" "Game;Launcher;"

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Monday 10 August 2020 at 8:21
Script approved.
Anonymous
Friday 4 September 2020 at 4:42
Oops I didn't realise that hitting enter posted comments. Whenever I hit 'try this update" I get the error message "Error in POL_Debug_Init
$TITLE must be set to use debugging API". Sorry if this is a really noob question! I am using the latest version of playonmac 4.4.1
Anonymous
Friday 18 September 2020 at 8:44
Nevermind
Anonymous
Tuesday 29 September 2020 at 13:10
If there's a blackscreen or flickering content, enable "Strict Draw Ordering". This solve it for me.

Edited by Yaotl

Dadu042 Saturday 25 July 2020 at 18:51
Dadu042

Warning

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

Differences

@@ -13,21 +13,21 @@
 # [Yaotl] (2020-07-19)
 #   First script.
 # [Dadu042] (2019-04-28 18:11)
-#   [CHANGED] Remove POL_SetupWindow_SetID because unused anymore.
-#   [CHANGED] 'exit' -> 'exit 0'
+#   [CHANGED] Remove POL_SetupWindow_SetID because unused anymore.
+#   [CHANGED] 'exit' -> 'exit 0'
+#   [FIXED] POL_System_SetArch location.
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  
-PREFIX="EpicGamesLauncher"
-TITLE="Epic Games Launcher"
-WINEVERSION="5.11-staging"
- 
 # Initialization
 POL_SetupWindow_Init
-POL_SetupWindow_SetID 4142
 POL_Debug_Init
- 
+
+PREFIX="EpicGamesLauncher"
+TITLE="Epic Games Launcher"
+WINEVERSION="5.11-staging"
+
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "Epic Games Inc." "https://www.epicgames.com/" "Yaotl" "$PREFIX"
  
@@ -41,8 +41,11 @@
 POL_Download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"
  
 # Create Prefix
-POL_System_SetArch "amd64"
 POL_Wine_SelectPrefix "$PREFIX"
+
+# Determine Architecture
+POL_System_SetArch "amd64"
+
 POL_Wine_PrefixCreate "$WINEVERSION"
  
 # Dependencies

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2020-07-19)
# Last revision : (2020-07-19 23-11)
# Distribution used to test : Linux Mint 20 Cinnamon
# Author : Yaotl
# Licence : GPLv3
# PlayOnLinux : 4.3.4
#
# BETA Script
#
#
# CHANGELOG
# [Yaotl] (2020-07-19)
#   First script.
# [Dadu042] (2019-04-28 18:11)
#   [CHANGED] Remove POL_SetupWindow_SetID because unused anymore.
#   [CHANGED] 'exit' -> 'exit 0'
#   [FIXED] POL_System_SetArch location.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Initialization
POL_SetupWindow_Init
POL_Debug_Init

PREFIX="EpicGamesLauncher"
TITLE="Epic Games Launcher"
WINEVERSION="5.11-staging"

# Presentation
POL_SetupWindow_presentation "$TITLE" "Epic Games Inc." "https://www.epicgames.com/" "Yaotl" "$PREFIX"
 
# Checks the required POL/POM version
POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

POL_SetupWindow_message "$(eval_gettext '\nWarning: this is a beta script ! (not fully working), and if the launcher does run this does not mean the games will.')" "$TITLE"

POL_System_TmpCreate "$PREFIX"
cd $POL_System_TmpDir
POL_Download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"

# Determine Architecture
POL_System_SetArch "amd64"

POL_Wine_PrefixCreate "$WINEVERSION"
 
# Dependencies
POL_Call POL_Install_corefonts
POL_Call POL_Install_vcrun2019
 
rm -rf "$WINEPREFIX/drive_c/windows/system32/d3d12.dll"
rm -rf "$WINEPREFIX/drive_c/windows/syswow64/d3d12.dll"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS ${GAME_VMS}
 
# Set Graphic Card informations keys for wine
POL_Call POL_Install_VideoDriver
 
# Configuration
Set_OS "win81"
 
# Installation
POL_Wine msiexec /i "$POL_System_TmpDir/EpicGamesLauncherInstaller.msi" SKIP_AUTOLAUNCH="1"
 
# Create Shortcut
POL_Shortcut "EpicGamesLauncher.exe" "$TITLE" "" "-SkipBuildPatchPrereq" "Game;Launcher;"
 
# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Saturday 25 July 2020 at 18:44
Dadu042

Warning

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

Differences

@@ -5,60 +5,69 @@
 # Author : Yaotl
 # Licence : GPLv3
 # PlayOnLinux : 4.3.4
-
-
+#
 # BETA Script
+#
+#
+# CHANGELOG
+# [Yaotl] (2020-07-19)
+#   First script.
+# [Dadu042] (2019-04-28 18:11)
+#   [CHANGED] Remove POL_SetupWindow_SetID because unused anymore.
+#   [CHANGED] 'exit' -> 'exit 0'
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 PREFIX="EpicGamesLauncher"
 TITLE="Epic Games Launcher"
 WINEVERSION="5.11-staging"
-
-#Initialization
+ 
+# Initialization
 POL_SetupWindow_Init
 POL_SetupWindow_SetID 4142
 POL_Debug_Init
-
+ 
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "Epic Games Inc." "https://www.epicgames.com/" "Yaotl" "$PREFIX"
-
+ 
 # Checks the required POL/POM version
 POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."
 
+POL_SetupWindow_message "$(eval_gettext '\nWarning: this is a beta script ! (not fully working), and if the launcher does run this does not mean the games will.')" "$TITLE"
+
 POL_System_TmpCreate "$PREFIX"
 cd $POL_System_TmpDir
 POL_Download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"
-
+ 
 # Create Prefix
 POL_System_SetArch "amd64"
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WINEVERSION"
-
+ 
 # Dependencies
 POL_Call POL_Install_corefonts
 POL_Call POL_Install_vcrun2019
-
+ 
 rm -rf "$WINEPREFIX/drive_c/windows/system32/d3d12.dll"
 rm -rf "$WINEPREFIX/drive_c/windows/syswow64/d3d12.dll"
-
+ 
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS ${GAME_VMS}
-
+ 
 # Set Graphic Card informations keys for wine
 POL_Call POL_Install_VideoDriver
-
+ 
 # Configuration
 Set_OS "win81"
-
+ 
 # Installation
 POL_Wine msiexec /i "$POL_System_TmpDir/EpicGamesLauncherInstaller.msi" SKIP_AUTOLAUNCH="1"
-
+ 
 # Create Shortcut
 POL_Shortcut "EpicGamesLauncher.exe" "$TITLE" "" "-SkipBuildPatchPrereq" "Game;Launcher;"
-
+ 
 # Cleanup
 POL_System_TmpDelete
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2020-07-19)
# Last revision : (2020-07-19 23-11)
# Distribution used to test : Linux Mint 20 Cinnamon
# Author : Yaotl
# Licence : GPLv3
# PlayOnLinux : 4.3.4
#
# BETA Script
#
#
# CHANGELOG
# [Yaotl] (2020-07-19)
#   First script.
# [Dadu042] (2019-04-28 18:11)
#   [CHANGED] Remove POL_SetupWindow_SetID because unused anymore.
#   [CHANGED] 'exit' -> 'exit 0'

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="EpicGamesLauncher"
TITLE="Epic Games Launcher"
WINEVERSION="5.11-staging"
 
# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 4142
POL_Debug_Init
 
# Presentation
POL_SetupWindow_presentation "$TITLE" "Epic Games Inc." "https://www.epicgames.com/" "Yaotl" "$PREFIX"
 
# Checks the required POL/POM version
POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

POL_SetupWindow_message "$(eval_gettext '\nWarning: this is a beta script ! (not fully working), and if the launcher does run this does not mean the games will.')" "$TITLE"

POL_System_TmpCreate "$PREFIX"
cd $POL_System_TmpDir
POL_Download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"
 
# Create Prefix
POL_System_SetArch "amd64"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
 
# Dependencies
POL_Call POL_Install_corefonts
POL_Call POL_Install_vcrun2019
 
rm -rf "$WINEPREFIX/drive_c/windows/system32/d3d12.dll"
rm -rf "$WINEPREFIX/drive_c/windows/syswow64/d3d12.dll"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS ${GAME_VMS}
 
# Set Graphic Card informations keys for wine
POL_Call POL_Install_VideoDriver
 
# Configuration
Set_OS "win81"
 
# Installation
POL_Wine msiexec /i "$POL_System_TmpDir/EpicGamesLauncherInstaller.msi" SKIP_AUTOLAUNCH="1"
 
# Create Shortcut
POL_Shortcut "EpicGamesLauncher.exe" "$TITLE" "" "-SkipBuildPatchPrereq" "Game;Launcher;"
 
# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Saturday 25 July 2020 at 18:44
Note: with Wine 5.12 and 5.13, the launcher does crash after the login window.
Yaotl Wednesday 22 July 2020 at 2:48
Yaotl Anonymous

Warning

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

Differences

@@ -0,0 +1,64 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2020-07-19)
+# Last revision : (2020-07-19 23-11)
+# Distribution used to test : Linux Mint 20 Cinnamon
+# Author : Yaotl
+# Licence : GPLv3
+# PlayOnLinux : 4.3.4
+
+
+# BETA Script
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+PREFIX="EpicGamesLauncher"
+TITLE="Epic Games Launcher"
+WINEVERSION="5.11-staging"
+
+#Initialization
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 4142
+POL_Debug_Init
+
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "Epic Games Inc." "https://www.epicgames.com/" "Yaotl" "$PREFIX"
+
+# Checks the required POL/POM version
+POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."
+
+POL_System_TmpCreate "$PREFIX"
+cd $POL_System_TmpDir
+POL_Download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"
+
+# Create Prefix
+POL_System_SetArch "amd64"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+
+# Dependencies
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_vcrun2019
+
+rm -rf "$WINEPREFIX/drive_c/windows/system32/d3d12.dll"
+rm -rf "$WINEPREFIX/drive_c/windows/syswow64/d3d12.dll"
+
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS ${GAME_VMS}
+
+# Set Graphic Card informations keys for wine
+POL_Call POL_Install_VideoDriver
+
+# Configuration
+Set_OS "win81"
+
+# Installation
+POL_Wine msiexec /i "$POL_System_TmpDir/EpicGamesLauncherInstaller.msi" SKIP_AUTOLAUNCH="1"
+
+# Create Shortcut
+POL_Shortcut "EpicGamesLauncher.exe" "$TITLE" "" "-SkipBuildPatchPrereq" "Game;Launcher;"
+
+# Cleanup
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2020-07-19)
# Last revision : (2020-07-19 23-11)
# Distribution used to test : Linux Mint 20 Cinnamon
# Author : Yaotl
# Licence : GPLv3
# PlayOnLinux : 4.3.4


# BETA Script

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

PREFIX="EpicGamesLauncher"
TITLE="Epic Games Launcher"
WINEVERSION="5.11-staging"

#Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 4142
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "Epic Games Inc." "https://www.epicgames.com/" "Yaotl" "$PREFIX"

# Checks the required POL/POM version
POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

POL_System_TmpCreate "$PREFIX"
cd $POL_System_TmpDir
POL_Download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"

# Create Prefix
POL_System_SetArch "amd64"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

# Dependencies
POL_Call POL_Install_corefonts
POL_Call POL_Install_vcrun2019

rm -rf "$WINEPREFIX/drive_c/windows/system32/d3d12.dll"
rm -rf "$WINEPREFIX/drive_c/windows/syswow64/d3d12.dll"

# Asking about memory size of graphic card
POL_SetupWindow_VMS ${GAME_VMS}

# Set Graphic Card informations keys for wine
POL_Call POL_Install_VideoDriver

# Configuration
Set_OS "win81"

# Installation
POL_Wine msiexec /i "$POL_System_TmpDir/EpicGamesLauncherInstaller.msi" SKIP_AUTOLAUNCH="1"

# Create Shortcut
POL_Shortcut "EpicGamesLauncher.exe" "$TITLE" "" "-SkipBuildPatchPrereq" "Game;Launcher;"

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit

Replies

Wednesday 22 July 2020 at 8:04
Approved.
Note: In order to avoid the script to be break too fast, allowing install from local file is recommended.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com