This shortcut will allow users to update from github then run the game.
Be sure when creating the osu!lazer.bat file to not have another file extension on the end.
What you need
- Visual Studio 2017 Community https://visualstudio.microsoft.com/vs/
- .NET Core 2.1 https://www.microsoft.com/net/download/dotnet-core/2.1
- GIT Command Line https://git-scm.com/downloads
Setup
- Open "Git Bash" then run "git clone --recurse-submodules https://github.com/ppy/osu"
This will make a folder with the current github files - 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
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.