diff --git a/core b/core index 9d23fef..e4e885a 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 9d23fef49a5c4c927230e151c7d31490ff491d44 +Subproject commit e4e885adc15a0eb57561f5ccc648df528aa3b414 diff --git a/thirdParty/donut b/thirdParty/donut index 8dc4f31..cddbff4 160000 --- a/thirdParty/donut +++ b/thirdParty/donut @@ -1 +1 @@ -Subproject commit 8dc4f3139e79ca228342d0d80ae6f9414fb3fefe +Subproject commit cddbff4ce256c98233dc55b0227efcfa25c77f93 diff --git a/update-submodules.ps1 b/update-submodules.ps1 new file mode 100644 index 0000000..6dbecb3 --- /dev/null +++ b/update-submodules.ps1 @@ -0,0 +1,35 @@ +$ErrorActionPreference = "Stop" + +$repositories = @( + "core", + "libs/libDns", + "libs/libSocketHandler", + "libs/libSocks5", + "thirdParty/donut" +) + +$root = $PSScriptRoot +if ([string]::IsNullOrWhiteSpace($root)) { + $root = (Get-Location).Path +} + +foreach ($repository in $repositories) { + $path = Join-Path $root $repository + if (-not (Test-Path -Path $path -PathType Container)) { + throw "Repository path not found: $path" + } + + Write-Host "[*] Updating $repository" + Push-Location $path + try { + $safeDirectory = (Get-Location).Path + git config --global --add safe.directory $safeDirectory + git fetch + git rebase origin/master + } + finally { + Pop-Location + } +} + +Write-Host "[+] Done" \ No newline at end of file