forked from Aurorastation/Aurora.3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
git clone https://github.com/OpenDreamProject/OpenDream.git $HOME/OpenDream | ||
git -C $HOME/OpenDream submodule update --init --recursive | ||
if [ -d "$HOME/OpenDream/" ]; | ||
then | ||
echo "Using cached OpenDream directory." | ||
|
||
git -C $HOME/OpenDream fetch origin | ||
git -C $HOME/OpenDream reset --hard origin/master | ||
|
||
git -C $HOME/OpenDream submodule update --remote | ||
|
||
|
||
else | ||
echo "Setting up OpenDream." | ||
|
||
git clone https://github.com/OpenDreamProject/OpenDream.git $HOME/OpenDream | ||
git -C $HOME/OpenDream submodule update --init --recursive | ||
fi | ||
|
||
dotnet restore $HOME/OpenDream | ||
dotnet build $HOME/OpenDream/OpenDream.sln -c Release --property WarningLevel=1 |