forum

osu!lazer build and run shortcut

posted
Total Posts
4
Topic Starter
DeathAlchemy
This shortcut will allow users to update from github then run the game.

What you need


  1. Visual Studio 2017 Community https://visualstudio.microsoft.com/vs/
  2. .NET Core 2.1 https://www.microsoft.com/net/download/dotnet-core/2.1
  3. GIT Command Line https://git-scm.com/downloads


Setup


  1. Open "Git Bash" then run "git clone --recurse-submodules https://github.com/ppy/osu"
    This will make a folder with the current github files
  2. Create a osu!lazer.bat file to edit and insert this code

osu!lazer.bat

REM no long paths
@echo off
REM change directory to osu!lazer
cd "C:\Users\%USERNAME%\osu"
REM get any updates from github
git pull
REM open visual studio console to build and run game
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd" -arch=x64
REM build game then run the game
dotnet build osu.Desktop && dotnet run --project osu.Desktop


Be sure when creating the osu!lazer.bat file to not have another file extension on the end.
Amitronic_Works
how do you make a .bat file
Corne2Plum3

Amitronic_Works wrote:

how do you make a .bat file
Create a text file by doing right click > new > text file on the file explorer, put any name as you want and add ".bat" at the end of the file name.
show more
Please sign in to reply.

New reply