-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0c7a43d
Showing
5 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2021 Czcibor Bohusz-Dobosz | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# NOBLOX Unofficial Launcher of Roblox | ||
![Logo](logo.png) | ||
|
||
**NOBLOX Launcher** for friends. It has been conceived as an attempt to integrate the popular video game **ROBLOX®** with the **Linux®** operating system environment. This is a necessity because in Roblox, players join games directly from within the game's website, while the only way to currently launch Roblox on Linux is as a Windows application, with the use of the **Wine** compatibility layer. The aforementioned setup would thus also require players to install Windows web browsers on their computers, and use them to launch the game, something that proves very uncomfortable. | ||
|
||
I say *would require* - because that's exactly the problem that NOBLOX Launcher solves. By creating and maintaining a compatibility layer between Roblox and native Linux web browsers, we make possible that you experience the game on Linux with just as much ease as you would on a natively supported platform. | ||
|
||
## Requirements | ||
Just [what the game itself requires](https://en.help.roblox.com/hc/en-us/articles/203312800-Computer-Hardware-Operating-System-Requirements), except we also ~~support~~ *hope that it works on* Linux. Also, **Wine 6.11 or newer** is required. Really. | ||
|
||
## Usage | ||
Clone the git repository somewhere and launch the script. Congratulations, it should now work. Try to launch a Roblox game. | ||
|
||
Oh... you want, like... More elaborate instructions? Here you go: | ||
|
||
1. Download the latest available version of the launcher [from here](https://github.com/newbthenewbd/NOBLOX-Launcher/archive/stable.zip). | ||
2. Unzip it somewhere, go into the directory that you just unzipped, and launch the script. | ||
3. Roblox should now be installed, the launcher configured and you may remove the downloaded files. Do not remove or mess with the directory `NOBLOX-Launcher` in your home directory, though - that's where the launcher gets installed! | ||
|
||
You may easily perform the installation on the terminal, too: | ||
``` | ||
wget https://github.com/newbthenewbd/NOBLOX-Launcher/archive/stable.zip | ||
unzip stable.zip | ||
cd NOBLOX-Launcher-stable | ||
/bin/sh nobloxLauncher.sh | ||
``` | ||
|
||
## Nagging for Donations | ||
Donations may or may not help keep this project up to date and working - but I will certainly be very thankful for each and every one that appears. :) | ||
|
||
[![Donate with PayPal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sendmoney%40go2%2epl&lc=US&item_name=Donate%20to%20the%20GitHub%20user%20newbthenewbd¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) | ||
|
||
## Notice | ||
ROBLOX® is a registered trademark of Roblox Corporation. We are not affiliated, associated, authorized, endorsed by or in any way officially connected to Roblox Corporation. | ||
|
||
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. We are not affiliated, associated, authorized, endorsed by or in any way officially connected to Linus Torvalds. | ||
|
||
Other product names mentioned herein are for identification purposes only and might be trademarks of their respective companies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/sh | ||
noblox() { | ||
if [ -z "$WINEPREFIX" ]; then | ||
local WINEPREFIX=~/.wine | ||
fi | ||
case "$1" in | ||
--uninstall) | ||
cd "$WINEPREFIX/drive_c/users/$(whoami)/Local Settings/Application Data/Roblox/Versions/" >/dev/null 2>&1 || cd "$WINEPREFIX/drive_c/users/$(whoami)/AppData/Local/Roblox/Versions/" >/dev/null 2>&1 | ||
wine */RobloxPlayerLauncher.exe -uninstall >/dev/null 2>&1 && rm */RobloxPlayerLauncher.exe | ||
wine */RobloxStudioLauncherBeta.exe -uninstall >/dev/null 2>&1 && rm */RobloxStudioLauncherBeta.exe | ||
cd "$(xdg-user-dir DESKTOP)" | ||
rm Roblox\ Player.desktop >/dev/null 2>&1 | ||
rm Roblox\ Studio.desktop >/dev/null 2>&1 | ||
rm ~/.local/share/applications/Roblox\ Player.desktop >/dev/null 2>&1 | ||
rm ~/.local/share/applications/Roblox\ Studio.desktop >/dev/null 2>&1 | ||
exit 0 | ||
;; | ||
--*) | ||
echo -e "NOBLOX Unofficial Launcher of Roblox\n\nUsage: /bin/sh nobloxLauncher.sh [options]\nIf you need to, you may set the WINEPREFIX prior to launching this script, like:\n\tWINEPREFIX=~/.myawesomewineprefixname\n\nOptions:\n\t--help: Display this help\n\t--uninstall: Uninstall Roblox if it is installed on your computer\n\nDonations may or may not help keep this project up to date; if you wish to make\na donation, you can do so here:\n\thttps://github.com/newbthenewbd/NOBLOX-Launcher#nagging-for-donations\n\nNotice: ROBLOX is a registered trademark of Roblox Corporation. We are not in\n\tany way affiliated with, authorized nor endorsed by Roblox Corporation." | ||
exit 0 | ||
;; | ||
esac | ||
if [ ! -f "$WINEPREFIX/drive_c/users/$(whoami)/AppData/Local/Roblox/Versions/"*"/RobloxPlayerLauncher.exe" ] && [ ! -f "$WINEPREFIX/drive_c/users/$(whoami)/Local Settings/Application Data/Roblox/Versions/"*"/RobloxPlayerLauncher.exe" ] || [ ! -f ~/NOBLOX-Launcher/nobloxLauncher.sh ] || [ ! "$(sha1sum $0 | cut -f 1 -d ' ')" = "$(sha1sum ~/NOBLOX-Launcher/nobloxLauncher.sh | cut -f 1 -d ' ')" ] ; then | ||
mkdir -p ~/NOBLOX-Launcher | ||
cp $0 ~/NOBLOX-Launcher/ >/dev/null 2>&1 | ||
cd ~/NOBLOX-Launcher | ||
wget http://setup.roblox.com/RobloxPlayerLauncher.exe -O RobloxPlayerLauncher.exe | ||
wine RobloxPlayerLauncher.exe | ||
rm RobloxPlayerLauncher.exe | ||
cd "$(xdg-user-dir DESKTOP)" | ||
rm Roblox\ Player.lnk >/dev/null 2>&1 | ||
rm Roblox\ Studio.lnk >/dev/null 2>&1 | ||
sed -i "s|Exec=.*|Exec=env WINEPREFIX=\"$WINEPREFIX\" /bin/sh \"/home/$(whoami)/NOBLOX-Launcher/nobloxLauncher.sh\" %u|g" Roblox\ Player.desktop | ||
echo -e "Categories=Game;\nMimeType=x-scheme-handler/roblox-player" >> Roblox\ Player.desktop | ||
echo "Categories=Game;" >> Roblox\ Studio.desktop | ||
cp Roblox\ Player.desktop ~/.local/share/applications/ >/dev/null 2>&1 | ||
cp Roblox\ Studio.desktop ~/.local/share/applications/ >/dev/null 2>&1 | ||
xdg-mime default Roblox\ Player.desktop x-scheme-handler/roblox-player | ||
fi | ||
if [ ! -z "$@" ]; then | ||
cd "$WINEPREFIX/drive_c/users/$(whoami)/AppData/Local/Roblox/Versions/" >/dev/null 2>&1 || cd "$WINEPREFIX/drive_c/users/$(whoami)/Local Settings/Application Data/Roblox/Versions/" >/dev/null 2>&1 | ||
WINEDLLOVERRIDES="winemenubuilder.exe=d" wine */RobloxPlayerLauncher.exe "$@" | ||
else | ||
echo "Roblox has been installed on your computer." | ||
fi | ||
} | ||
noblox "$@" |