Epic Games Launcher

Informations

Creator Wiadmości
Yaotl Anonymous

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 3573
Wine: 5.11-staging

Feedbacks

Description

Installs the Epic Games Launcher (Wikipedia). 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 Wiadmości
Yaotl Sunday 26 July 2020 at 9:14
Yaotl Anonymous

Information

This update has been approved by the team.

Wiadmości

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

Odpowiedzi

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.

Edytowane przez Yaotl

Dadu042 Saturday 25 July 2020 at 18:51
Dadu042
Moderator

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

Odpowiedzi

Dadu042 Saturday 25 July 2020 at 18:44
Dadu042
Moderator

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

Odpowiedzi

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

Odpowiedzi

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.