forked from ppy/osu-server-spectator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UseLocalOsu.ps1
30 lines (22 loc) · 1.3 KB
/
UseLocalOsu.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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="osu.Server.Spectator/osu.Server.Spectator.csproj"
$SLN="osu.Server.Spectator.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
dotnet remove "SampleMultiplayerClient\SampleMultiplayerClient.csproj" package ppy.osu.Game
dotnet add "SampleMultiplayerClient\SampleMultiplayerClient.csproj" reference "..\osu\osu.Game\osu.Game.csproj"
dotnet remove "SampleSpectatorClient\SampleSpectatorClient.csproj" package ppy.osu.Game
dotnet add "SampleSpectatorClient\SampleSpectatorClient.csproj" reference "..\osu\osu.Game\osu.Game.csproj"