Exclude screenshots from Windows build outputs

Removes the screenshots folder from both Standard and FFmpeg build outputs in the Windows workflow. Also updates artifact ZIP naming to include '-portable' for clarity in release notes and file names.
This commit is contained in:
Your Name
2025-08-27 20:39:50 +03:00
parent f7a40b7c45
commit d02117f7c3
+20 -6
View File
@@ -86,6 +86,13 @@ jobs:
--include-files "src" ` --include-files "src" `
--include-files "assets" --include-files "assets"
# Exclude screenshots folder from Standard build output
$stdScreenshots = "dist\YTSage\assets\branding\screenshots"
if (Test-Path $stdScreenshots) {
Remove-Item $stdScreenshots -Recurse -Force
Write-Host "Removed screenshots from Standard build: $stdScreenshots"
}
- name: Setup FFmpeg for bundle - name: Setup FFmpeg for bundle
shell: powershell shell: powershell
run: | run: |
@@ -177,6 +184,13 @@ jobs:
} }
} }
# Exclude screenshots folder from FFmpeg build output
$ffScreenshots = "dist\YTSage-FFmpeg\assets\branding\screenshots"
if (Test-Path $ffScreenshots) {
Remove-Item $ffScreenshots -Recurse -Force
Write-Host "Removed screenshots from FFmpeg build: $ffScreenshots"
}
- name: Package and prepare release artifacts (ZIPs) - name: Package and prepare release artifacts (ZIPs)
shell: powershell shell: powershell
run: | run: |
@@ -194,10 +208,10 @@ jobs:
exit 1 exit 1
} }
# Create Standard ZIP # Create Standard ZIP (portable)
$standardDist = Join-Path (Get-Location) "dist\YTSage" $standardDist = Join-Path (Get-Location) "dist\YTSage"
if (Test-Path $standardDist) { if (Test-Path $standardDist) {
$stdZip = "artifacts\YTSage-v$version.zip" $stdZip = "artifacts\YTSage-v$version-portable.zip"
if (Test-Path $stdZip) { Remove-Item $stdZip -Force } if (Test-Path $stdZip) { Remove-Item $stdZip -Force }
Compress-Archive -Path "$standardDist\*" -DestinationPath $stdZip -CompressionLevel Optimal Compress-Archive -Path "$standardDist\*" -DestinationPath $stdZip -CompressionLevel Optimal
Write-Host "Created: $(Resolve-Path $stdZip)" Write-Host "Created: $(Resolve-Path $stdZip)"
@@ -205,10 +219,10 @@ jobs:
Write-Host "Warning: Standard dist folder not found at $standardDist" Write-Host "Warning: Standard dist folder not found at $standardDist"
} }
# Create FFmpeg ZIP # Create FFmpeg ZIP (portable)
$ffmpegDist = Join-Path (Get-Location) "dist\YTSage-FFmpeg" $ffmpegDist = Join-Path (Get-Location) "dist\YTSage-FFmpeg"
if (Test-Path $ffmpegDist) { if (Test-Path $ffmpegDist) {
$ffZip = "artifacts\YTSage-v$version-ffmpeg.zip" $ffZip = "artifacts\YTSage-v$version-ffmpeg-portable.zip"
if (Test-Path $ffZip) { Remove-Item $ffZip -Force } if (Test-Path $ffZip) { Remove-Item $ffZip -Force }
Compress-Archive -Path "$ffmpegDist\*" -DestinationPath $ffZip -CompressionLevel Optimal Compress-Archive -Path "$ffmpegDist\*" -DestinationPath $ffZip -CompressionLevel Optimal
Write-Host "Created: $(Resolve-Path $ffZip)" Write-Host "Created: $(Resolve-Path $ffZip)"
@@ -244,10 +258,10 @@ jobs:
## Downloads ## Downloads
### Standard Version (ZIP) ### Standard Version (ZIP)
- **YTSage-v${{ steps.get_version.outputs.VERSION }}.zip** Portable ZIP (downloads FFmpeg on first use if needed) - **YTSage-v${{ steps.get_version.outputs.VERSION }}-portable.zip** Portable ZIP (downloads FFmpeg on first use if needed)
### FFmpeg Bundle Version (ZIP) ### FFmpeg Bundle Version (ZIP)
- **YTSage-v${{ steps.get_version.outputs.VERSION }}-ffmpeg.zip** Portable ZIP with FFmpeg included - **YTSage-v${{ steps.get_version.outputs.VERSION }}-ffmpeg-portable.zip** Portable ZIP with FFmpeg included
## Installation / Usage ## Installation / Usage