mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-10 18:10:46 +09:00
Update UseLocalOsu scripts
This commit is contained in:
parent
b048c1c77d
commit
2ab53c4c45
2 changed files with 40 additions and 28 deletions
|
@ -1,24 +1,30 @@
|
||||||
# Run this script to use a local copy of osu rather than fetching it from nuget.
|
# 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
|
# It expects the osu directory to be at the same level as the osu-tools directory
|
||||||
|
|
||||||
|
$PROJECTS=@(
|
||||||
|
"PerformanceCalculator/PerformanceCalculator.csproj"
|
||||||
|
"PerformanceCalculatorGUI/PerformanceCalculatorGUI.csproj"
|
||||||
|
)
|
||||||
|
|
||||||
$CSPROJ="PerformanceCalculator/PerformanceCalculator.csproj"
|
|
||||||
$SLN="osu.Tools.sln"
|
$SLN="osu.Tools.sln"
|
||||||
|
|
||||||
$DEPENDENCIES=@(
|
$DEPENDENCIES=@(
|
||||||
"..\osu\osu.Game.Rulesets.Catch\osu.Game.Rulesets.Catch.csproj"
|
".\osu\osu.Game.Rulesets.Catch\osu.Game.Rulesets.Catch.csproj"
|
||||||
"..\osu\osu.Game.Rulesets.Mania\osu.Game.Rulesets.Mania.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.Osu\osu.Game.Rulesets.Osu.csproj"
|
||||||
"..\osu\osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj"
|
".\osu\osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj"
|
||||||
"..\osu\osu.Game\osu.Game.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 sln $SLN add $DEPENDENCIES
|
||||||
dotnet add $CSPROJ reference $DEPENDENCIES
|
|
||||||
|
ForEach ($CSPROJ in $PROJECTS)
|
||||||
|
{
|
||||||
|
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 add $CSPROJ reference $DEPENDENCIES
|
||||||
|
}
|
||||||
|
|
|
@ -3,22 +3,28 @@
|
||||||
# Run this script to use a local copy of osu rather than fetching it from nuget.
|
# 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
|
# It expects the osu directory to be at the same level as the osu-tools directory
|
||||||
|
|
||||||
|
PROJECTS=(
|
||||||
|
"PerformanceCalculator/PerformanceCalculator.csproj"
|
||||||
|
"PerformanceCalculatorGUI/PerformanceCalculatorGUI.csproj"
|
||||||
|
)
|
||||||
|
|
||||||
CSPROJ="PerformanceCalculator/PerformanceCalculator.csproj"
|
|
||||||
SLN="osu.Tools.sln"
|
SLN="osu.Tools.sln"
|
||||||
|
|
||||||
DEPENDENCIES="../osu/osu.Game.Rulesets.Catch/osu.Game.Rulesets.Catch.csproj
|
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.Mania/osu.Game.Rulesets.Mania.csproj
|
||||||
../osu/osu.Game.Rulesets.Osu/osu.Game.Rulesets.Osu.csproj
|
./osu/osu.Game.Rulesets.Osu/osu.Game.Rulesets.Osu.csproj
|
||||||
../osu/osu.Game.Rulesets.Taiko/osu.Game.Rulesets.Taiko.csproj
|
./osu/osu.Game.Rulesets.Taiko/osu.Game.Rulesets.Taiko.csproj
|
||||||
../osu/osu.Game/osu.Game.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 sln $SLN add $DEPENDENCIES
|
||||||
dotnet add $CSPROJ reference $DEPENDENCIES
|
|
||||||
|
for CSPROJ in PROJECTS
|
||||||
|
do
|
||||||
|
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 add $CSPROJ reference $DEPENDENCIES
|
||||||
|
done
|
Loading…
Add table
Add a link
Reference in a new issue