Skip to content

Commit

Permalink
构建 优化APPX获取
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed Sep 9, 2024
1 parent ae3bfb7 commit 798158c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion osc/osc.bat
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if /i "%SystemDrive%"=="x:" if exist "X:\Windows\System32\PECMD.EXE" (
:mainprogram
echo 潇然系统盗版提示
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticecaption /t REG_SZ /d "警告:您的系统可能没有部署完整(OSC)" /f
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticetext /t REG_SZ /d "这通常是网络连接不稳定或部署程序BUG导致的,请在点击【确定】登录账户后,访问http://url.xrgzs.top/osc下载、重新运行osc.exe尝试解决。此提示每次登录前都会强制弹出,如有特殊情况请联系QQ:2744460679解决" /f
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticetext /t REG_SZ /d "这通常是网络连接不稳定或部署程序BUG导致的,请在点击【确定】登录账户后,访问http://url.xrgzs.top/osc下载、重新运行osc.exe尝试解决。此提示每次登录前都会强制弹出,如有特殊情况请联系我们解决" /f

if %osver% GEQ 3 (
echo win8-11系统APPX、WD处理
Expand Down
4 changes: 2 additions & 2 deletions osc/runtime/getappx.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function Download-Appx($Name) {
}
while ($true) {
try {
$obj = Invoke-WebRequest -Uri "https://store.xr6.xyz/api/GetFiles" `
$obj = Invoke-WebRequest -Uri "https://store.rg-adguard.net/api/GetFiles" `
-Method "POST" `
-ContentType "application/x-www-form-urlencoded" `
-Body $body `
Expand Down Expand Up @@ -40,7 +40,6 @@ New-Item -ItemType Directory -Path "$PSScriptRoot\Extension"

Invoke-WebRequest -Uri "https://alist.xrgzs.top/d/pxy/System/Windows/Win10/Res/Microsoft.HEVCVideoExtension.xml" -OutFile "$PSScriptRoot\Extension\Microsoft.HEVCVideoExtension.xml"

Download-Appx 'Microsoft.VCLibs.140.00'
Download-Appx 'Microsoft.AV1VideoExtension'
Download-Appx 'Microsoft.HEIFImageExtension'
Download-Appx 'Microsoft.MPEG2VideoExtension'
Expand All @@ -49,3 +48,4 @@ Download-Appx 'Microsoft.VP9VideoExtensions'
Download-Appx 'Microsoft.WebMediaExtensions'
Download-Appx 'Microsoft.WebpImageExtension'
Download-Appx 'Microsoft.HEVCVideoExtensions'
Download-Appx 'Microsoft.VCLibs.140.00'

0 comments on commit 798158c

Please sign in to comment.