Skip to content

Commit 9d8717c

Browse files
author
xrgzs
committed
first test
1 parent f4ace43 commit 9d8717c

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed
File renamed without changes.

bin/PSFExtractor.exe

528 KB
Binary file not shown.

bin/oscdimg.exe

115 KB
Binary file not shown.

msupdate.ps1

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Invoke-WebRequest -Uri "$NETScript" -OutFile ".\NETScript.meta4"
1313
.\bin\aria2c.exe --no-conf --check-certificate=false -x16 -s16 -j5 -c -R -d ".\patch" -M ".\WUScript.meta4"
1414
.\bin\aria2c.exe --no-conf --check-certificate=false -x16 -s16 -j5 -c -R -d ".\patch" -M ".\NETScript.meta4"
1515

16-
1716
# get fod
1817
# Microsoft-Windows-WirelessDisplay-FOD-Package~31bf3856ad364e35~amd64~~.cab
1918
.\bin\aria2c.exe --no-conf --check-certificate=false -x16 -s16 -d ".\fod\Miracast\" -o "update.cab" "https://file.uhsea.com/2404/fa949c449de5880ea5e0648e16aa802a43.cab"
@@ -25,14 +24,31 @@ expand -f:* ".\fod\Miracast\update.cab" ".\fod\MiracastLP\"
2524
# abbodi1406/W10UI auto inject hook after resetbase
2625
(Invoke-WebRequest -Uri "https://raw.githubusercontent.com/abbodi1406/BatUtil/master/W10UI/W10UI.cmd").Content.Replace("if %AddDrivers%==1 call :doDrv","call hook.cmd") | Out-File -FilePath ".\W10UI.cmd"
2726

27+
# get osimage
28+
# get original system direct link
29+
$obj = (Invoke-WebRequest -UseBasicParsing -Uri "$server/api/fs/get" `
30+
-Method "POST" `
31+
-ContentType "application/json;charset=UTF-8" `
32+
-Body (@{
33+
path = "/系统/MSDN/NT10.0_Win10/19045_22H2/2006_RTM/zh-cn_windows_10_business_editions_version_22h2_x64_dvd_037e269d.iso"
34+
password = ""
35+
} | Convertto-Json)).Content | ConvertFrom-Json
36+
$osurl = $obj.data.raw_url
37+
$osfile = $obj.data.name
38+
.\bin\aria2c.exe --check-certificate=false -s16 -x16 -d ".\temp" -o "$osfile" "$osurl"
39+
if ($?) {Write-Host "System Image Download Successfully!"} else {Write-Error "System Image Download Failed!"}
40+
41+
$isopath = Resolve-Path -Path ".\temp\$osfile"
42+
$isomount = (Mount-DiskImage -ImagePath $isopath -PassThru | Get-Volume).DriveLetter
43+
2844
# write W10UI conf
2945
"[W10UI-Configuration]
30-
Target =%cd%\ISO
46+
Target =$isomount
3147
Repo =%cd%\patch
3248
DismRoot =dism.exe
3349
3450
Net35 =1
35-
Net35Source =%cd%\ISO\sources\sxs
51+
Net35Source =
3652
Cleanup =1
3753
ResetBase =1
3854
LCUwinre =1
@@ -100,8 +116,5 @@ goto :EOF
100116
.\W10UI.cmd
101117

102118
# upload to cloud
103-
.\bin\rclone.exe
104-
105-
# Publish image
106119
.\bin\rclone.exe copy "*.iso" "odb:/Share/Xiaoran Studio/System/Nightly" --progress
107120
if ($?) {Write-Host "Upload Successfully!"} else {Write-Error "Upload Failed!"}

0 commit comments

Comments
 (0)