@@ -13,7 +13,6 @@ Invoke-WebRequest -Uri "$NETScript" -OutFile ".\NETScript.meta4"
13
13
.\bin\aria2c.exe -- no- conf -- check- certificate= false - x16 - s16 - j5 - c - R - d " .\patch" - M " .\WUScript.meta4"
14
14
.\bin\aria2c.exe -- no- conf -- check- certificate= false - x16 - s16 - j5 - c - R - d " .\patch" - M " .\NETScript.meta4"
15
15
16
-
17
16
# get fod
18
17
# Microsoft-Windows-WirelessDisplay-FOD-Package~31bf3856ad364e35~amd64~~.cab
19
18
.\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\"
25
24
# abbodi1406/W10UI auto inject hook after resetbase
26
25
(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"
27
26
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
+
28
44
# write W10UI conf
29
45
" [W10UI-Configuration]
30
- Target =%cd%\ISO
46
+ Target =$isomount
31
47
Repo =%cd%\patch
32
48
DismRoot =dism.exe
33
49
34
50
Net35 =1
35
- Net35Source =%cd%\ISO\sources\sxs
51
+ Net35Source =
36
52
Cleanup =1
37
53
ResetBase =1
38
54
LCUwinre =1
@@ -100,8 +116,5 @@ goto :EOF
100
116
.\W10UI.cmd
101
117
102
118
# upload to cloud
103
- .\bin\rclone.exe
104
-
105
- # Publish image
106
119
.\bin\rclone.exe copy " *.iso" " odb:/Share/Xiaoran Studio/System/Nightly" -- progress
107
120
if ($? ) {Write-Host " Upload Successfully!" } else {Write-Error " Upload Failed!" }
0 commit comments