download/setup stargus

This commit is contained in:
Tim Felgentreff 2022-04-26 23:27:50 +02:00
parent 8f38d5fe66
commit 4f969e5f0d
2 changed files with 26 additions and 0 deletions

View file

@ -39,3 +39,16 @@ if (-not (Test-Path "$stratagus_folder\\..\\war1gus\\.vscode\\settings.json")) {
if (-not (Test-Path "$stratagus_folder\\..\\war1gus\\.vscode\\launch.json")) {
Copy-Item "$stratagus_folder\\.vscode\\launch.war1gus.json" "$stratagus_folder\\..\\war1gus\\.vscode\\launch.json"
}
if (-not (Test-Path "$stratagus_folder\\..\\stargus")) {
git clone https://github.com/Wargus/stargus "$stratagus_folder\\..\\stargus"
}
if (-not (Test-Path "$stratagus_folder\\..\\stargus\\.vscode")) {
mkdir "$stratagus_folder\\..\\stargus\\.vscode"
}
if (-not (Test-Path "$stratagus_folder\\..\\stargus\\.vscode\\settings.json")) {
Copy-Item "$stratagus_folder\\.vscode\\settings.windows.stargus.json" "$stratagus_folder\\..\\stargus\\.vscode\\settings.json"
}
if (-not (Test-Path "$stratagus_folder\\..\\stargus\\.vscode\\launch.json")) {
Copy-Item "$stratagus_folder\\.vscode\\launch.stargus.json" "$stratagus_folder\\..\\stargus\\.vscode\\launch.json"
}

View file

@ -30,3 +30,16 @@ fi
if [ ! -e "${stratagus_folder}/../war1gus/.vscode/launch.json" ]; then
cp "${stratagus_folder}/.vscode/launch.war1gus.json" "${stratagus_folder}/../war1gus/.vscode/launch.json"
fi
if [ ! -d "${stratagus_folder}/../stargus" ]; then
git clone https://github.com/Wargus/stargus "${stratagus_folder}/../stargus"
fi
if [ ! -d "${stratagus_folder}/../stargus/.vscode" ]; then
mkdir "${stratagus_folder}/../stargus/.vscode"
fi
if [ ! -e "${stratagus_folder}/../stargus/.vscode/settings.json" ]; then
cp "${stratagus_folder}/.vscode/settings.linux.stargus.json" "${stratagus_folder}/../stargus/.vscode/settings.json"
fi
if [ ! -e "${stratagus_folder}/../stargus/.vscode/launch.json" ]; then
cp "${stratagus_folder}/.vscode/launch.stargus.json" "${stratagus_folder}/../stargus/.vscode/launch.json"
fi