diff --git a/.vscode/scripts/download.ps1 b/.vscode/scripts/download.ps1 index d6e624891..930136e34 100644 --- a/.vscode/scripts/download.ps1 +++ b/.vscode/scripts/download.ps1 @@ -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" +} diff --git a/.vscode/scripts/download.sh b/.vscode/scripts/download.sh index 1d039fef3..b4bd71641 100644 --- a/.vscode/scripts/download.sh +++ b/.vscode/scripts/download.sh @@ -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