From 3faa417162a453dcef08394450c3f93fc3274e1a Mon Sep 17 00:00:00 2001 From: Amelia Violetta Date: Wed, 21 May 2025 19:11:33 +0100 Subject: [PATCH] First commit --- .gitignore | 6 ++++++ .logger.sh | 10 ++++++++++ README.md | 3 +++ config.sh | 9 +++++++++ install.sh | 22 ++++++++++++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 .gitignore create mode 100644 .logger.sh create mode 100644 README.md create mode 100644 config.sh create mode 100755 install.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cf4958f --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# Executables +*.exe + +# Wine prefix +.wine + diff --git a/.logger.sh b/.logger.sh new file mode 100644 index 0000000..8ee1fc3 --- /dev/null +++ b/.logger.sh @@ -0,0 +1,10 @@ +# https://linuxhandbook.com/change-echo-output-color/#ansi-escape-codes-for-the-colored-output +R='\033[0;31m' #'0;31' is Red's ANSI color code +G='\033[0;32m' #'0;32' is Green's ANSI color code +Y='\033[1;32m' #'1;32' is Yellow's ANSI color code +B='\033[0;34m' #'0;34' is Blue's ANSI color code +RESET='\033[0m' + +function log_info { + printf "\n[$(date +%T)] [${G}Info$RESET] $1\n" +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..f966119 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# roblox-studio-linux + +A collection of Bash scripts to manage the Roblox Studio installation on Linux diff --git a/config.sh b/config.sh new file mode 100644 index 0000000..8bcba29 --- /dev/null +++ b/config.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Where to install Roblox Studio +install_path=`pwd` + +# Prefix to be used by wine when running Roblox Studio +prefix="$install_path/.wine" + +download_url="https://setup.rbxcdn.com/RobloxStudioInstaller.exe" diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..d7339fd --- /dev/null +++ b/install.sh @@ -0,0 +1,22 @@ +#!/bin/bash +source config.sh +source .logger.sh + +export WINEPREFIX=$prefix +#curl -O $download_url + +log_info "Installer downloaded." + +Create wine prefix +wineboot + +log_info "Wine prefix setup complete." +log_info "Installing Roblox..." + +wine $install_path/RobloxStudioInstaller.exe + +log_info "Installation complete.. configuring renderer" + +winecfg renderer=vulkan + +log_info "Renderer set!"