-
Notifications
You must be signed in to change notification settings - Fork 15
Setting Up Dev Environment
If you are interested in making modifications to the Replays mod, this page will help you get started. Before you begin, I recommend using Visual Studio Code as your IDE if you are a novice with Node.js and npm.
Note: I will assume you have a basic understanding of Node.js and npm usage, and also have them installed already.
- Designate a folder to be the main project folder.
- Navigate to C:\Users\{YOUR USER}\AppData\Local\Plays\
- Open the folder with the highest app version (ex: app-3.0.1)
- Copy C:\Users\{YOUR USER}\AppData\Local\Plays\app-3.0.1\resources\app.asar to your main project folder.
- Extract app.asar to your main project folder. I recommend using 7-zip and this plugin.
- After extracting, you should get something like this:
- Now open up your main project folder in Visual Studio Code and open up the terminal.
- Type the command
npm init -fand hit enter
- Next, type the command
npm installand hit enter - Next, type the command
npm install -g electron-forgeand hit enter - Next, type the command
npm install -g cross-envand hit enter - Next, type the command
electron-forge importand hit enter - It will ask you a couple of questions, answer them accordingly:
-
? WARNING: We will now attempt to import: "F:\main project folder". This will involve modifying some files, are you sure you want to continue? Yes
? Do you want us to change the "main" attribute of your package.json? If you If you are currently using babel and pointing to a "build" directory say yes. Yes
? Enter the relative path to your uncompiled main file src/main/main.js
? Do you want us to update the "start" script to instead call the electron-forge task "electron-forge start" No
- Delete the
.cachefolder:
- Navigate to the
replaysfolder:
- You can now make changes in the
replaysfolder.
- Fetch the contents of
https://github.com/lulzsun/RePlaysTV/tree/master/srcto thereplaysfolder to stay up to date with the master branch
- To run/test the dev client, start it with the command
npm run startor through here:
- You should now be ready for development. Good luck!






