代码拉取完成,页面将自动刷新
$version = Get-Content "SakuraLibrary\Consts.cs" | Select-String "Version = `"(.+)`";"
$version = $version.Matches[0].Groups[1].Value
$projects = "SakuraLibrary", "SakuraLauncher", "LegacyLauncher", "SakuraFrpService"
$libraryFiles = Get-ChildItem "SakuraLibrary\bin\Release" | ForEach-Object { $_.Name }
Remove-Item -Path "_publish" -Recurse -ErrorAction SilentlyContinue
New-Item -Name "_publish" -ItemType "directory" -ErrorAction SilentlyContinue
try {
Push-Location -Path "_publish"
Remove-Item -Path "sign" -Recurse -ErrorAction SilentlyContinue
New-Item -Name "sign" -ItemType "directory" -ErrorAction SilentlyContinue
New-Item -Name "debug" -ItemType "directory" -ErrorAction SilentlyContinue
foreach ($name in $projects) {
Remove-Item -Path $name -Recurse -ErrorAction SilentlyContinue
New-Item -Name $name -ItemType "directory" -ErrorAction SilentlyContinue
Get-ChildItem -Path "..\$name\bin\Release" | Where-Object {
$_.Name -notmatch "\.(xml|pdb)$" -and (
$name -eq "SakuraLibrary" -or $libraryFiles -notcontains $_.Name
)
} | Copy-Item -Recurse -Destination $name
Get-ChildItem -Path "..\$name\bin\Release" | Where-Object {
$_.Name -match "\.pdb$"
} | Copy-Item -Destination "debug"
Move-Item -Path "$name\$name.exe", "$name\$name.dll" -Destination "sign" -ErrorAction SilentlyContinue
}
Compress-Archive -Force -CompressionLevel Optimal -Path "debug\*" -DestinationPath "DebugSymbols.zip"
Compress-Archive -Force -CompressionLevel Optimal -Path "sign\*" -DestinationPath "sign_$version.zip"
# We don't sign frpc anymore, copy them after Compress-Archive
Copy-Item "..\bin\frpc_windows_*" "sign"
}
finally {
Pop-Location
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。