mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-09 09:35:15 +09:00
add UseLocalOsu.ps1
This commit is contained in:
parent
84f816e543
commit
e251f88794
2 changed files with 31 additions and 0 deletions
|
@ -11,10 +11,17 @@ Tools for [osu!](https://osu.ppy.sh).
|
|||
|
||||
# Getting Started
|
||||
|
||||
## I just want to run it
|
||||
- Clone the repository including submodules (`git clone --recurse-submodules https://github.com/ppy/osu-tools`)
|
||||
- Navigate to each tool's directory and follow the instructions listed in the tool's README.
|
||||
- [PerformanceCalculator](https://github.com/ppy/osu-tools/blob/master/PerformanceCalculator/README.md) - A tool for calculating the difficulty of beatmaps and the performance of replays.
|
||||
|
||||
## I want to make changes
|
||||
Most relevant code is in the main [ppy/osu](htts://github.com/ppy/osu) repository. To make any meaningful changes you will likely need to edit that as well.
|
||||
|
||||
- Clone all relevant repos into the same directory (`git clone https://github.com/ppy/osu-tools`; `git clone --recurse-submodules https://github.com/ppy/osu`)
|
||||
- Run the `./UseLocalOsu.ps1` powershell script to use your local copy of ppy/osu
|
||||
|
||||
# Contributing
|
||||
|
||||
Contributions can be made via pull requests to this repository. We hope to credit and reward larger contributions via a [bounty system](https://www.bountysource.com/teams/ppy). If you're unsure of what you can help with, check out the [list of open issues](https://github.com/ppy/osu-tools/issues).
|
||||
|
|
24
UseLocalOsu.ps1
Normal file
24
UseLocalOsu.ps1
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Run this script to use a local copy of osu rather than fetching it from nuget.
|
||||
# It expects the osu directory to be at the same level as the osu-tools directory
|
||||
|
||||
|
||||
|
||||
$CSPROJ="PerformanceCalculator/PerformanceCalculator.csproj"
|
||||
$SLN="osu.Tools.sln"
|
||||
|
||||
$DEPENDENCIES=@(
|
||||
"..\osu\osu.Game.Rulesets.Catch\osu.Game.Rulesets.Catch.csproj"
|
||||
"..\osu\osu.Game.Rulesets.Mania\osu.Game.Rulesets.Mania.csproj"
|
||||
"..\osu\osu.Game.Rulesets.Osu\osu.Game.Rulesets.Osu.csproj"
|
||||
"..\osu\osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj"
|
||||
"..\osu\osu.Game\osu.Game.csproj"
|
||||
)
|
||||
|
||||
|
||||
dotnet remove $CSPROJ package ppy.osu.Game
|
||||
dotnet remove $CSPROJ package ppy.osu.Game.Rulesets.Osu
|
||||
dotnet remove $CSPROJ package ppy.osu.Game.Rulesets.Taiko
|
||||
dotnet remove $CSPROJ package ppy.osu.Game.Rulesets.Catch
|
||||
dotnet remove $CSPROJ package ppy.osu.Game.Rulesets.Mania;
|
||||
dotnet sln $SLN add $DEPENDENCIES
|
||||
dotnet add $CSPROJ reference $DEPENDENCIES
|
Loading…
Add table
Add a link
Reference in a new issue