Skip to content

Commit

Permalink
download-dependencies: use unix style line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
achimmihca committed Nov 1, 2024
1 parent 50bc640 commit af339af
Show file tree
Hide file tree
Showing 22 changed files with 82 additions and 64 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -29,3 +29,4 @@ echo "{ \"name\": \"CompileTimeTrackerEditor\", \"includePlatforms\": [\"Editor\
cd "$old_dir"
echo "Downloading CompileTimeTracker done"
echo ""

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh
sh download-unirx.sh
sh download-serilog.sh
sh download-leantween.sh
sh download-leantween.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -29,3 +29,4 @@ rm -rf .git
cd "$old_dir"
echo "Downloading LeanTween done"
echo ""

4 changes: 2 additions & 2 deletions tools/download-dependencies-companion-app/download-serilog.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -55,4 +55,4 @@ rm Properties/AssemblyInfo.cs

cd "$old_dir"
echo "Downloading Serilog.Sinks.File done"
echo ""
echo ""
3 changes: 2 additions & 1 deletion tools/download-dependencies-companion-app/download-unirx.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -26,3 +26,4 @@ rm -rf .git
cd "$old_dir"
echo "Downloading UniRx done"
echo ""

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -29,3 +29,4 @@ echo "{ \"name\": \"CompileTimeTrackerEditor\", \"includePlatforms\": [\"Editor\
cd "$old_dir"
echo "Downloading CompileTimeTracker done"
echo ""

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand All @@ -25,3 +25,4 @@ rm -rf .git
cd "$old_dir"
echo "Downloading CSharpSynthForUnity done"
echo ""

Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/bin/sh
sh download-leantween.sh
sh download-unirx.sh
sh download-csharpsynthforunity.sh
sh download-text-mesh-pro-resources.sh
sh download-serilog.sh
sh download-jokenizer.sh
sh download-dynamicqueryable.sh
sh download-spleetersharp.sh
sh download-unitystandalonefilebrowser.sh
sh download-lrcparser.sh
sh download-litenetlib.sh
sh download-nhyphenator.sh
sh download-jsonnet-contractresolvers.sh
#!/bin/sh
sh download-leantween.sh
sh download-unirx.sh
sh download-csharpsynthforunity.sh
sh download-text-mesh-pro-resources.sh
sh download-serilog.sh
sh download-jokenizer.sh
sh download-dynamicqueryable.sh
sh download-spleetersharp.sh
sh download-unitystandalonefilebrowser.sh
sh download-lrcparser.sh
sh download-litenetlib.sh
sh download-nhyphenator.sh
sh download-jsonnet-contractresolvers.sh


Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -28,3 +28,4 @@ rm -rf Properties
cd "$old_dir"
echo "Downloading DynamicQueryable done"
echo ""

3 changes: 2 additions & 1 deletion tools/download-dependencies-main-game/download-jokenizer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -29,3 +29,4 @@ rm -rf Properties
cd "$old_dir"
echo "Downloading Jokenizer.Net done"
echo ""

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -28,3 +28,4 @@ echo "{ \"name\": \"JsonNet.ContractResolvers\", \"includePlatforms\": [], \"ref
cd "$old_dir"
echo "Downloading JsonNet.ContractResolvers done"
echo ""

3 changes: 2 additions & 1 deletion tools/download-dependencies-main-game/download-leantween.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -29,3 +29,4 @@ rm -rf .git
cd "$old_dir"
echo "Downloading LeanTween done"
echo ""

53 changes: 27 additions & 26 deletions tools/download-dependencies-main-game/download-litenetlib.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

cd "../../UltraStar Play/Packages/playshared/Runtime/Plugins"
echo "Removing old LiteNetLib folder..."
rm -rf LiteNetLib
mkdir LiteNetLib
cd LiteNetLib

echo "Cloning LiteNetLib from remote..."
git init
git remote add origin https://github.com/RevenantX/LiteNetLib.git
git config core.sparsecheckout true
echo "LiteNetLib/*" >> .git/info/sparse-checkout
git pull --depth=100 origin master
# Commit from 24 April 2023: 47d57213baa96d4b343741c6ff3c2eedde961d46
git checkout 47d57213baa96d4b343741c6ff3c2eedde961d46

echo "Moving downloaded files to correct position for this project..."
mv -v LiteNetLib/* ./
rm -rf ./LiteNetLib
rm -rf .git

cd "$old_dir"
echo "Downloading LiteNetLib done"
echo ""

old_dir=$(pwd)

cd "../../UltraStar Play/Packages/playshared/Runtime/Plugins"
echo "Removing old LiteNetLib folder..."
rm -rf LiteNetLib
mkdir LiteNetLib
cd LiteNetLib

echo "Cloning LiteNetLib from remote..."
git init
git remote add origin https://github.com/RevenantX/LiteNetLib.git
git config core.sparsecheckout true
echo "LiteNetLib/*" >> .git/info/sparse-checkout
git pull --depth=100 origin master
# Commit from 24 April 2023: 47d57213baa96d4b343741c6ff3c2eedde961d46
git checkout 47d57213baa96d4b343741c6ff3c2eedde961d46

echo "Moving downloaded files to correct position for this project..."
mv -v LiteNetLib/* ./
rm -rf ./LiteNetLib
rm -rf .git

cd "$old_dir"
echo "Downloading LiteNetLib done"
echo ""
3 changes: 2 additions & 1 deletion tools/download-dependencies-main-game/download-lrcparser.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -28,3 +28,4 @@ rm -rf .git
cd "$old_dir"
echo "Downloading Opportunity.LrcParser done"
echo ""

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -26,3 +26,4 @@ yphenator\", \"includePlatforms\": [], \"references\": [] }" > "./NHyphenator.a
cd "$old_dir"
echo "Downloading NHyphenator done"
echo ""
3 changes: 2 additions & 1 deletion tools/download-dependencies-main-game/download-onejs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -27,3 +27,4 @@ rm -rf .git
cd "$old_dir"
echo "Downloading OneJS done"
echo ""

4 changes: 2 additions & 2 deletions tools/download-dependencies-main-game/download-serilog.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -55,4 +55,4 @@ rm Properties/AssemblyInfo.cs

cd "$old_dir"
echo "Downloading Serilog.Sinks.File done"
echo ""
echo ""
3 changes: 2 additions & 1 deletion tools/download-dependencies-main-game/download-soundfonts.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand All @@ -14,3 +14,4 @@ wget -O MuseScore_General.sf2.bytes https://ftp.osuosl.org/pub/musescore/soundfo
cd "$old_dir"
echo "Downloading Soundfonts done"
echo ""

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -28,3 +28,4 @@ echo "{ \"name\": \"SpleeterSharp\", \"includePlatforms\": [], \"references\": [
cd "$old_dir"
echo "Downloading SpleeterSharp done"
echo ""

3 changes: 2 additions & 1 deletion tools/download-dependencies-main-game/download-unirx.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -26,3 +26,4 @@ rm -rf .git
cd "$old_dir"
echo "Downloading UniRx done"
echo ""

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh

old_dir=$(pwd)

Expand Down Expand Up @@ -28,3 +28,4 @@ echo "{ \"name\": \"UnityStandaloneFileBrowser\", \"includePlatforms\": [], \"re
cd "$old_dir"
echo "Downloading UnityStandaloneFileBrowser done"
echo ""

4 changes: 2 additions & 2 deletions tools/setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
old_dir=$(pwd)
old_dir=$(pwd)

echo "Downloading dependencies of main game"
echo "==========================="
Expand All @@ -17,4 +17,4 @@ cd "$old_dir"

echo "Create empty VERSION.txt file if it does not exist"
touch "../UltraStar Play/Assets/VERSION.txt"
touch "../UltraStar Play Companion/Assets/VERSION.txt"
touch "../UltraStar Play Companion/Assets/VERSION.txt"

0 comments on commit af339af

Please sign in to comment.