Code Monkey home page Code Monkey logo

roblox-win-installer's Introduction

roblox-win-installer

This installer is brittle and can break with changes to the Roblox Studio installer. An actions workflow runs every 12 hours to verify it is working correctly and its status can be seen above.

Overview

Python script to download, install and authenticate Roblox Studio in a CI environment.

Run with a ROBLOSECURITY cookie as an argument.

This can be used along with rojo, run-in-roblox and GitHub Actions / AppVeyor / others to create a gated CI system for Roblox projects that has full access to the Roblox API. In practice, you may find TestEZ CLI with lemur a more reliable solution (see Warnings).

Usage

If you are using GitHub Actions, it is recommended you use roblox-win-installer-action. This is less verbose, and will automatically use the most recent version.

- uses: OrbitalOwen/[email protected]
  with:
      cookie: ${{ secrets.ROBLOSECURITY }}
      token: ${{ secrets.GITHUB_TOKEN }}

Alternatively, if you are using Powershell:

Invoke-WebRequest -Uri "https://github.com/OrbitalOwen/roblox-win-installer/archive/0.5.zip" -OutFile roblox-win-installer.zip
Expand-Archive -LiteralPath roblox-win-installer.zip -DestinationPath .
cd roblox-win-installer-0.5
pip install -r requirements.txt
python install.py "${{ secrets.ROBLOSECURITY }}"

Warnings

  • Ensure you check this script carefully before running it on your machine, as it takes some destructive actions.
  • The behavior this script relies on is not documented or endorsed by Roblox. It could break partially or completely at some point in the future.
  • The install script has no built in timeout and can run indefinitely. Adding a timeout limit to its execution is strongly advised (ie timeout-minutes in Github Actions)

roblox-win-installer's People

Contributors

orbitalowen avatar lasttalon avatar osyrisrblx avatar

Stargazers

The_Pr0fessor avatar Jimmy avatar Ben avatar  avatar insyri avatar Micah avatar Eleanor avatar  avatar OverHash avatar  avatar Evan avatar Niles Salter avatar Lucien Greathouse avatar

Watchers

 avatar  avatar  avatar OverHash avatar

roblox-win-installer's Issues

No longer finding roblox installation

run-in-roblox error since 0.3

Will investigate shortly.

 thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Could not locate a Roblox Studio installation.

Caused by:
    0: Couldn't find registry keys, Roblox might not be installed. (The system cannot find the file specified. (os error 2))
    1: The system cannot find the file specified. (os error 2)', src/main.rs:75:30
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[ERROR run_in_roblox] receiving on a closed channel

Infinite Retry Waiting on Registry Entry

The installer script seems to wait indefinitely when attempting to log into Roblox Studio. This behavior didn't happen before and seems to have been caused by a Roblox update.

During my github workflow CI tests roblox-win-installer operates normally until attempting to log into Roblox Studio, it then will wait for however long the job is allowed to run. When canceling the traceback seems to indicate that it was still waiting for a registry entry that never appears.

Logging into Studio
Traceback (most recent call last):
  File "install.py", line 19, in retryUntilSuccess
    func()
  File "install.py", line 69, in func
    winreg.HKEY_CURRENT_USER, r'Software\\Roblox\\RobloxStudioBrowser\\roblox.com', access=winreg.KEY_WRITE)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "install.py", line 154, in <module>
    loginToStudio()
  File "install.py", line 74, in loginToStudio
    retryUntilSuccess(func)
  File "install.py", line 22, in retryUntilSuccess
    time.sleep(0.1)
KeyboardInterrupt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.