]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Revert "Fix auto-updates of RobustToolbox on Windows" (#36671)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Fri, 18 Apr 2025 08:45:56 +0000 (18:45 +1000)
committerGitHub <noreply@github.com>
Fri, 18 Apr 2025 08:45:56 +0000 (10:45 +0200)
Revert "Fix auto-updates of RobustToolbox on Windows (#33323)"

This reverts commit b1c1cb96b5c91c0134660d735ea554fef536dc70.

BuildChecker/BuildChecker.csproj
BuildChecker/git_helper.py
BuildChecker/hooks/post-checkout

index c0a0c9e1f37f7fefb217cb0091f54f1f626b080a..4bd7fcf78c3c417c4208c721316586acd1697486 100644 (file)
@@ -15,6 +15,7 @@ https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild
 <Project Sdk="Microsoft.NET.Sdk">
   <PropertyGroup>
     <Python>python3</Python>
+    <Python Condition="'$(OS)'=='Windows_NT' Or '$(OS)'=='Windows'">py -3</Python>
     <ProjectGuid>{C899FCA4-7037-4E49-ABC2-44DE72487110}</ProjectGuid>
     <TargetFramework>net4.7.2</TargetFramework>
     <RestorePackages>false</RestorePackages>
index 83c41c3403a5bd79f81cf576697f7a3d1f5b52b7..becd4506e820df62b1f73a3b97c6295c4aa3953e 100644 (file)
@@ -10,7 +10,7 @@ from typing import List
 
 SOLUTION_PATH = Path("..") / "SpaceStation14.sln"
 # If this doesn't match the saved version we overwrite them all.
-CURRENT_HOOKS_VERSION = "3"
+CURRENT_HOOKS_VERSION = "2"
 QUIET = len(sys.argv) == 2 and sys.argv[1] == "--quiet"
 
 
index f34ffd293de320144463b419d4e0e7f98253fb3c..c5662445c272597c24ed2457d4de771cafd28bfa 100755 (executable)
@@ -4,4 +4,10 @@ gitroot=`git rev-parse --show-toplevel`
 
 cd "$gitroot/BuildChecker"
 
-python3 git_helper.py --quiet
+if [[ `uname` == MINGW* || `uname` == CYGWIN* ]]; then
+    # Windows
+    py -3 git_helper.py --quiet
+else
+    # Not Windows, so probably some other Unix thing.
+    python3 git_helper.py --quiet
+fi