From dfa3dd2be58902881764c1428e00835057c9ce47 Mon Sep 17 00:00:00 2001 From: Michael Lyons Date: Tue, 9 Dec 2025 15:40:04 -0500 Subject: [PATCH 1/3] Move 5.1 build system to a variant So Windows can run either one Fixes #204 --- Support/Powershell.sublime-build | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Support/Powershell.sublime-build b/Support/Powershell.sublime-build index d18a8950..cb75223f 100644 --- a/Support/Powershell.sublime-build +++ b/Support/Powershell.sublime-build @@ -6,6 +6,13 @@ }, "windows": { - "cmd": ["powershell.exe", "-noprofile", "-ExecutionPolicy", "Bypass", "-file", "$file"], - } + "variants": [ + { + "name": "Windows PowerShell (<=5.1)", + "windows": { + "cmd": ["powershell.exe", "-noprofile", "-ExecutionPolicy", "Bypass", "-file", "$file"], + }, + }, + ], + }, } From 4f26d6e9380bce563d06f85c84c9cbc953d13221 Mon Sep 17 00:00:00 2001 From: Michael Lyons Date: Wed, 10 Dec 2025 10:16:49 -0500 Subject: [PATCH 2/3] Drop double-Windows nesting in build variant --- Support/Powershell.sublime-build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Support/Powershell.sublime-build b/Support/Powershell.sublime-build index cb75223f..7eefb6c7 100644 --- a/Support/Powershell.sublime-build +++ b/Support/Powershell.sublime-build @@ -9,9 +9,7 @@ "variants": [ { "name": "Windows PowerShell (<=5.1)", - "windows": { - "cmd": ["powershell.exe", "-noprofile", "-ExecutionPolicy", "Bypass", "-file", "$file"], - }, + "cmd": ["powershell.exe", "-noprofile", "-ExecutionPolicy", "Bypass", "-file", "$file"], }, ], }, From 10b030501fca9a7cc2298b68ca45c95dd29b2276 Mon Sep 17 00:00:00 2001 From: Michael Lyons Date: Thu, 11 Dec 2025 10:03:08 -0500 Subject: [PATCH 3/3] No-op the Windows only build system on *Nix --- Support/Powershell.sublime-build | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Support/Powershell.sublime-build b/Support/Powershell.sublime-build index 7eefb6c7..11ead41f 100644 --- a/Support/Powershell.sublime-build +++ b/Support/Powershell.sublime-build @@ -5,12 +5,14 @@ "TERM": "dumb", }, - "windows": { - "variants": [ - { - "name": "Windows PowerShell (<=5.1)", + "variants": [ + { + "name": "Windows PowerShell (<=5.1)", + "cmd": ["echo", "powershell.exe is only available on Windows. Did you want a different build variant?"], + + "windows": { "cmd": ["powershell.exe", "-noprofile", "-ExecutionPolicy", "Bypass", "-file", "$file"], }, - ], - }, + }, + ], }