Skip to content

Commit

Permalink
add roblox
Browse files Browse the repository at this point in the history
  • Loading branch information
RusNor committed Apr 28, 2023
1 parent e5211a7 commit ede188d
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 6 deletions.
Binary file added data/img/launcher_icons/RobloxPlayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions data/scripts/sw_deps
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ elif [ -x "$(command -v apt)" ]; then

elif [ -x "$(command -v epm)" ]; then

sudo epm ei -y 2>/dev/null || echo 'Passed' &&
sudo epmu -y 2>/dev/null || echo 'Passed' &&

for deps in zstd squashfuse ImageMagick vulkan-tools wine i586-wine xdg-user-dirs vte3 vte gem-vte3 libvte3 libvte3-gir gem-vte3-no-gi i586-gem-vte i586-libvte i586-libvte3 gnome-pty-helper libvte python-module-vte i586-python-module-vte htop python3-module-cairocffi python3-module-OpenGL python3-module-numpy python3-module-Pillow python3-module-six python3-module-matplotlib-gtk3 python-module-vte ; do
for deps in zstd squashfuse ImageMagick vulkan-tools wine i586-wine xdg-user-dirs vte3 libvte3-gir libgtk+3-gir htop python3-module-cairocffi \
python3-module-OpenGL python3-module-numpy python3-module-Pillow python3-module-six ; do

if [ "`sudo epm list --installed $deps 2>/dev/null | cut -d '/' -f1 | tail -n1`" != "$deps" ]; then
sudo epmi $deps -y 2>/dev/null || echo "$deps __________Passed"
Expand Down
3 changes: 2 additions & 1 deletion data/scripts/sw_main
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

################################___SCRIPTS_V374___:
################################___SCRIPTS_V375___:

import os
import sys
Expand Down Expand Up @@ -123,6 +123,7 @@ launchers_data = [
f"{sw_pfx}/pfx_PopcoTime/drive_c/PopcoTime/PopcoTime.exe",
f"{sw_pfx}/pfx_RPG_Club/drive_c/RPG-Club/RPG Club.exe",
f"{sw_pfx}/pfx_RiotClientServices/drive_c/Riot Games/Riot Client/RiotClientServices.exe",
f"{sw_pfx}/pfx_RobloxPlayerBeta/drive_c/Program Files (x86)/Roblox/Versions/Roblox/RobloxPlayerBeta.exe",
f"{sw_pfx}/pfx_Launcher/drive_c/Program Files/Rockstar Games/Launcher/Launcher.exe",
f"{sw_pfx}/pfx_ExboLauncher/drive_c/EXBO/java/bin/ExboLauncher.exe",
f"{sw_pfx}/pfx_StalkerOnline_Launcher/drive_c/StalkerOnline/StalkerOnline Launcher.exe",
Expand Down
2 changes: 1 addition & 1 deletion data/scripts/sw_menu.glade
Original file line number Diff line number Diff line change
Expand Up @@ -5619,7 +5619,7 @@ Example: -d3d11</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">
StartWine
3.7.4</property>
3.7.5</property>
<property name="justify">center</property>
<attributes>
<attribute name="underline" value="True"/>
Expand Down
39 changes: 37 additions & 2 deletions data/scripts/sw_runlib
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export SW_DEVELOPERS="Rus_Nor Nixon VHSgunzo"

############################### TOOLS ######################################

export SW_VER="374"
export SW_VER="375"
export GE_VER="7-55"
export SP_VER="8.0.1"
export STAG_VER="8.6"
Expand Down Expand Up @@ -583,7 +583,7 @@ if [ "${SW_USE_RESTORE_RESOLUTION}" == 1 ]; then
fi

if [ "${SW_USE_VIRTUAL_DESKTOP}" == 1 ]; then
VDESKTOP="explorer /desktop=Wine,`xrandr --current | grep "*" | awk '{print $1;}' | head -1`"
VDESKTOP="explorer /desktop=`xrandr --current | grep "*" | awk '{print $1;}' | head -1`"
fi

if [ "${SW_USE_FSYNC}" == 1 ]; then
Expand Down Expand Up @@ -3185,4 +3185,39 @@ INSTALL_LOST_LIGHT () {

}

INSTALL_ROBLOXPLAYER () {

if [ ! -f "${START_WINE_PATH}/data/pfx/pfx_RobloxPlayerBeta/drive_c/Program Files (x86)/Roblox/Versions/Roblox/RobloxPlayerBeta.exe" ]; then

WINE_OK=1
WINE_4

export SW_USE_PFX="pfx_RobloxPlayerBeta"
export WINEPREFIX="${START_WINE_PATH}/data/pfx/${SW_USE_PFX}"
export WINEDIR="${START_WINE_PATH}/data/wine/wine_lutris"
export WINELOADER=$WINEDIR/bin/wine

"${WINELOADER}" wineboot || prefix_init_error
"${WINESERVER}" -w

export FTP_URL="https://github.com/RusNor/Autoinstall-Launchers-Data/releases/download/Roblox_0.1/Roblox_0.1.tar.xz"
crier=`$CRIER -d "${FTP_URL}" "${START_WINE_PATH}/data/tmp/Roblox_0.1.tar.xz"`
crier=`$CRIER -tar "${START_WINE_PATH}/data/tmp/Roblox_0.1.tar.xz" "${WINEPREFIX}/drive_c/Program Files (x86)"` &&
try_remove_file "${START_WINE_PATH}/data/tmp/Roblox_0.1.tar.xz"

SW_USE_EXE="drive_c/Program Files (x86)/Roblox/Versions/Roblox/RobloxPlayerBeta.exe"
SW_USE_WINE="wine_lutris"

sw_shortcuts_autoinstall

crier=`$CRIER -i "$(eval_gettext "Application installed successfully")"`

else

crier=`$CRIER -i "$(eval_gettext "Application is installed")"`

fi

}

################################# THE END ##################################

0 comments on commit ede188d

Please sign in to comment.