From 38f5aa325c3283a128fbaed2de3b9c7d2ff5c146 Mon Sep 17 00:00:00 2001 From: logikonline Date: Sat, 10 Jan 2026 02:06:32 -0500 Subject: [PATCH] Add portable zip to release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Create MonitorControl-Portable-{version}.zip alongside installer - Updated release notes to mention both options - Portable version useful for users with antivirus false positives 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .gitea/workflows/release.yaml | 28 +++++++++++++++----- DellMonitorControl/DellMonitorControl.csproj | 6 ++--- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 7318ec7..45eb60c 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -82,6 +82,17 @@ jobs: echo Installer directory contents: dir installer + - name: Create Portable Zip + shell: powershell + run: | + $version = "${{ gitea.ref_name }}".TrimStart("v") + $buildDir = "DellMonitorControl\bin\Release\net9.0-windows" + $zipName = "MonitorControl-Portable-$version.zip" + + Write-Host "Creating portable zip: $zipName" + Compress-Archive -Path "$buildDir\*" -DestinationPath $zipName -Force + Write-Host "Zip created successfully" + - name: Create Release shell: powershell env: @@ -104,7 +115,7 @@ jobs: $body = @{ tag_name = $tag name = "Monitor Control $tag" - body = "## Monitor Control $tag`n`n### Installation`nDownload and run the installer.`n`n### Features`n- System tray monitor control`n- Brightness/Contrast adjustment`n- Input source switching`n- Quick-switch toolbar`n`n### Requirements`n- Windows 10/11`n- .NET 9.0 Runtime" + body = "## Monitor Control $tag`n`n### Installation`n- **Installer**: Download and run the setup exe`n- **Portable**: Download the zip, extract anywhere, and run DellMonitorControl.exe`n`n### Features`n- System tray monitor control`n- Brightness/Contrast adjustment`n- Input source switching`n- Quick-switch toolbar`n`n### Requirements`n- Windows 10/11`n- .NET 9.0 Runtime" } | ConvertTo-Json $release = Invoke-RestMethod -Uri "$baseUrl/repos/$repo/releases" -Method Post -Headers @{"Authorization"="token $env:GITEA_TOKEN"; "Content-Type"="application/json"} -Body $body @@ -113,10 +124,15 @@ jobs: } # Upload installer - $filePath = "C:\build\app\installer\MonitorControl-Setup-$version.exe" - $fileName = "MonitorControl-Setup-$version.exe" - Write-Host "Uploading $fileName..." + $installerPath = "C:\build\app\installer\MonitorControl-Setup-$version.exe" + $installerName = "MonitorControl-Setup-$version.exe" + Write-Host "Uploading $installerName..." + curl.exe -X POST -H "Authorization: token $env:GITEA_TOKEN" -F "attachment=@$installerPath" "$baseUrl/repos/$repo/releases/$releaseId/assets?name=$installerName" - curl.exe -X POST -H "Authorization: token $env:GITEA_TOKEN" -F "attachment=@$filePath" "$baseUrl/repos/$repo/releases/$releaseId/assets?name=$fileName" + # Upload portable zip + $zipPath = "MonitorControl-Portable-$version.zip" + $zipName = "MonitorControl-Portable-$version.zip" + Write-Host "Uploading $zipName..." + curl.exe -X POST -H "Authorization: token $env:GITEA_TOKEN" -F "attachment=@$zipPath" "$baseUrl/repos/$repo/releases/$releaseId/assets?name=$zipName" - Write-Host "Installer uploaded successfully" + Write-Host "All assets uploaded successfully" diff --git a/DellMonitorControl/DellMonitorControl.csproj b/DellMonitorControl/DellMonitorControl.csproj index aeb4f17..09a89a2 100644 --- a/DellMonitorControl/DellMonitorControl.csproj +++ b/DellMonitorControl/DellMonitorControl.csproj @@ -15,9 +15,9 @@ - 1.0.18 - 1.0.18.0 - 1.0.18.0 + 1.0.19 + 1.0.19.0 + 1.0.19.0