Add support for Windows Server Standard Evaluation
blacksmith.sh runners use "Windows Server 2025 Standard Evaluation".
This commit is contained in:
committed by
Benoit Daloze
parent
19a43a6a24
commit
b3cff1b264
@@ -281,7 +281,7 @@ export function getOSNameVersionArch() {
|
|||||||
|
|
||||||
function findWindowsVersion() {
|
function findWindowsVersion() {
|
||||||
const version = os.version()
|
const version = os.version()
|
||||||
const match = version.match(/^Windows(?: Server)? (\d+) (?:Datacenter|Enterprise)/)
|
const match = version.match(/^Windows(?: Server)? (\d+) (?:Standard|Datacenter|Enterprise)/)
|
||||||
if (match) {
|
if (match) {
|
||||||
return match[1]
|
return match[1]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+1
-1
@@ -614,7 +614,7 @@ function getOSNameVersionArch() {
|
|||||||
|
|
||||||
function findWindowsVersion() {
|
function findWindowsVersion() {
|
||||||
const version = os.version()
|
const version = os.version()
|
||||||
const match = version.match(/^Windows(?: Server)? (\d+) (?:Datacenter|Enterprise)/)
|
const match = version.match(/^Windows(?: Server)? (\d+) (?:Standard|Datacenter|Enterprise)/)
|
||||||
if (match) {
|
if (match) {
|
||||||
return match[1]
|
return match[1]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user