Remove misc Godot references I missed.

This commit is contained in:
Pieter-Jan Briers
2019-05-05 02:00:40 +02:00
parent cf2995437f
commit cde26f0567
3 changed files with 0 additions and 46 deletions

View File

@@ -33,7 +33,6 @@ before_script:
- "python3.5 -m pip install --user requests"
- "nuget restore RobustToolbox.sln"
- "python3.5 RUN_THIS.py --no-prompt"
- "Tools/download_godotsharp.py"
script:
- "msbuild /p:Configuration=Debug /p:Platform=x64 /p:HEADLESS=1 /nologo /m /p:AllowMissingMacNatives=yes RobustToolbox.sln /p:Python=python3.5"

View File

@@ -14,7 +14,4 @@
<Exec Condition="'$(Platform)' == 'x64'" Command="$(Python) ../Tools/download_misc_dependencies.py $(Platform) $(TargetOS) $(OutputPath)" CustomErrorRegularExpression="^Error" />
<Warning Condition="'$(Platform)' != 'x64'" Text="Did not download misc dependencies because the platform is not set to x64. Only use this build for unit testing!" />
</Target>
<Target Name="DownloadGodotSharp">
<Exec Command="$(Python) ../Tools/download_godotsharp.py" CustomErrorRegularExpression="^Error" />
</Target>
</Project>

View File

@@ -1,42 +0,0 @@
#!/usr/bin/env python3
import os
import sys
import urllib.request
import shutil
FILES = [
("GODOT", "1", "GodotSharp.dll", "https://changelog.ss13.moe/static/GodotSharp.dll"),
]
def main():
repo_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
dependencies_dir = os.path.join(repo_dir, "Dependencies", "godot")
os.makedirs(dependencies_dir, exist_ok=True)
for n, v, f, c in FILES:
download_dependency(dependencies_dir, n, v, f, c)
def download_dependency(dependencies_dir, name, version, filename, currentURL):
version_file = os.path.join(dependencies_dir, name + "_VERSION")
existing_version = "?"
if os.path.exists(version_file):
with open(version_file, "r") as f:
existing_version = f.read().strip()
dependency_path = os.path.join(dependencies_dir, filename)
if existing_version != version and os.path.exists(dependency_path):
os.remove(dependency_path)
with open(version_file, "w") as f:
f.write(version)
if not os.path.exists(dependency_path):
urllib.request.urlretrieve(currentURL, dependency_path)
if __name__ == "__main__":
main()