Fix auto-updates of RobustToolbox on Windows (#33323)

* Fix auto-updates of RobustToolbox on Windows

* Also fix hooks

* Upgrade version of hooks in git_helper script
This commit is contained in:
Nikolai Korolev
2025-04-17 12:45:35 +01:00
committed by GitHub
parent db40bce58f
commit b1c1cb96b5
3 changed files with 2 additions and 9 deletions

View File

@@ -15,7 +15,6 @@ https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<Python>python3</Python> <Python>python3</Python>
<Python Condition="'$(OS)'=='Windows_NT' Or '$(OS)'=='Windows'">py -3</Python>
<ProjectGuid>{C899FCA4-7037-4E49-ABC2-44DE72487110}</ProjectGuid> <ProjectGuid>{C899FCA4-7037-4E49-ABC2-44DE72487110}</ProjectGuid>
<TargetFramework>net4.7.2</TargetFramework> <TargetFramework>net4.7.2</TargetFramework>
<RestorePackages>false</RestorePackages> <RestorePackages>false</RestorePackages>

View File

@@ -10,7 +10,7 @@ from typing import List
SOLUTION_PATH = Path("..") / "SpaceStation14.sln" SOLUTION_PATH = Path("..") / "SpaceStation14.sln"
# If this doesn't match the saved version we overwrite them all. # If this doesn't match the saved version we overwrite them all.
CURRENT_HOOKS_VERSION = "2" CURRENT_HOOKS_VERSION = "3"
QUIET = len(sys.argv) == 2 and sys.argv[1] == "--quiet" QUIET = len(sys.argv) == 2 and sys.argv[1] == "--quiet"

View File

@@ -4,10 +4,4 @@ gitroot=`git rev-parse --show-toplevel`
cd "$gitroot/BuildChecker" cd "$gitroot/BuildChecker"
if [[ `uname` == MINGW* || `uname` == CYGWIN* ]]; then python3 git_helper.py --quiet
# Windows
py -3 git_helper.py --quiet
else
# Not Windows, so probably some other Unix thing.
python3 git_helper.py --quiet
fi