Skip to content

Commit 290ccb9

Browse files
committed
fix(makexrsys): get version
1 parent e035ce6 commit 290ccb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

makexrsys.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ switch ($makeversion) {
121121
$obj = (Invoke-RestMethod https://c.xrgzs.top/OSList.json).'【更新】7_SP1_IE11_自选_64位_无驱动_原版无接管'
122122
$osurl = $obj.osurl2
123123
$osfile = $obj.osfile
124-
$osindex = 3
124+
$osindex = 4
125125
$osver = '7'
126-
$osversion = ($obj.osfile.Substring(0, $obj.osfile.IndexOf('.',5)))
126+
$osversion = ($obj.osfile -split '_')[-2]
127127
$osarch = 'x64'
128128
$sysver = "XRSYS_Win7_SP2_Pro_x64_CN_Full"
129129
$sysvercn = "潇然系统_Win7_SP2_专业_x64_完整"

0 commit comments

Comments
 (0)