mirror of
https://github.com/ILoveBingLu/CipherTalk.git
synced 2026-05-20 03:23:21 +08:00
chore: disable differential updates
This commit is contained in:
@@ -125,7 +125,6 @@ jobs:
|
||||
run: |
|
||||
$version = "${{ needs.prepare-meta.outputs.version }}"
|
||||
$installer = "release/CipherTalk-$version-Setup.exe"
|
||||
$blockmap = "release/CipherTalk-$version-Setup.exe.blockmap"
|
||||
if (-not (Test-Path $installer)) {
|
||||
Write-Error "Installer not found: $installer"
|
||||
exit 1
|
||||
@@ -139,10 +138,6 @@ jobs:
|
||||
Write-Error "latest.yml should contain exactly one size entry, found $($sizeLines.Count)"
|
||||
exit 1
|
||||
}
|
||||
if (-not (Test-Path $blockmap)) {
|
||||
Write-Error "blockmap not found: $blockmap"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$latestYml = Get-Content "release/latest.yml" -Raw
|
||||
$shaMatch = [regex]::Match($latestYml, '(?m)^sha512:\s*(.+)$')
|
||||
@@ -171,7 +166,6 @@ jobs:
|
||||
path: |
|
||||
release/CipherTalk-${{ needs.prepare-meta.outputs.version }}-Setup.exe
|
||||
release/latest.yml
|
||||
release/CipherTalk-${{ needs.prepare-meta.outputs.version }}-Setup.exe.blockmap
|
||||
if-no-files-found: error
|
||||
|
||||
generate-release-body:
|
||||
@@ -258,7 +252,6 @@ jobs:
|
||||
run: |
|
||||
$version = "${{ needs.prepare-meta.outputs.version }}"
|
||||
$installer = "release/CipherTalk-$version-Setup.exe"
|
||||
$blockmap = "release/CipherTalk-$version-Setup.exe.blockmap"
|
||||
if (-not (Test-Path $installer)) {
|
||||
Write-Error "Installer not found: $installer"
|
||||
exit 1
|
||||
@@ -280,10 +273,6 @@ jobs:
|
||||
Write-Error "release-body.md not found"
|
||||
exit 1
|
||||
}
|
||||
if (-not (Test-Path $blockmap)) {
|
||||
Write-Error "blockmap not found: $blockmap"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$latestYml = Get-Content "release/latest.yml" -Raw
|
||||
$shaMatch = [regex]::Match($latestYml, '(?m)^sha512:\s*(.+)$')
|
||||
@@ -317,7 +306,6 @@ jobs:
|
||||
release/CipherTalk-${{ needs.prepare-meta.outputs.version }}-Setup.exe
|
||||
release/latest.yml
|
||||
release/force-update.json
|
||||
release/CipherTalk-${{ needs.prepare-meta.outputs.version }}-Setup.exe.blockmap
|
||||
|
||||
mirror-r2:
|
||||
runs-on: windows-latest
|
||||
@@ -366,13 +354,6 @@ jobs:
|
||||
$bucket = "s3://$($env:R2_BUCKET_NAME)"
|
||||
$version = "${{ needs.prepare-meta.outputs.version }}"
|
||||
$currentInstaller = "CipherTalk-$version-Setup.exe"
|
||||
$currentBlockmap = "CipherTalk-$version-Setup.exe.blockmap"
|
||||
$currentBlockmapPath = "release/$currentBlockmap"
|
||||
|
||||
if (-not (Test-Path $currentBlockmapPath)) {
|
||||
Write-Error "blockmap not found: $currentBlockmapPath"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$existingInstallers = aws s3 ls $bucket --endpoint-url $endpoint | ForEach-Object {
|
||||
$line = $_.ToString().Trim()
|
||||
@@ -395,15 +376,12 @@ jobs:
|
||||
}
|
||||
|
||||
foreach ($blockmap in $existingBlockmaps) {
|
||||
if ($blockmap -ne $currentBlockmap) {
|
||||
aws s3 rm "$bucket/$blockmap" --endpoint-url $endpoint
|
||||
}
|
||||
aws s3 rm "$bucket/$blockmap" --endpoint-url $endpoint
|
||||
}
|
||||
|
||||
aws s3 cp "release/$currentInstaller" "$bucket/$currentInstaller" --endpoint-url $endpoint
|
||||
aws s3 cp "release/latest.yml" "$bucket/latest.yml" --endpoint-url $endpoint
|
||||
aws s3 cp "release/force-update.json" "$bucket/force-update.json" --endpoint-url $endpoint
|
||||
aws s3 cp $currentBlockmapPath "$bucket/$currentBlockmap" --endpoint-url $endpoint
|
||||
|
||||
notify-telegram-success:
|
||||
runs-on: windows-latest
|
||||
|
||||
Reference in New Issue
Block a user