mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Remove misc Godot references I missed.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user