fix: clean slate from v0.3.0
- csproj: revert to 0.3.0 - package-velopack.ps1: clean output dir before vpk pack, keep feed files (json/nupkg) for GiteaSource auto-update - ci.yml: upload feed files (json/nupkg) to Gitea release for GiteaSource auto-update
This commit is contained in:
3 files changed
+18
-7
No files matched your search
@@ -162,6 +162,8 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
artifacts/velopack/win-x64-stable/*.exe
|
artifacts/velopack/win-x64-stable/*.exe
|
||||||
artifacts/velopack/win-x64-stable/*.zip
|
artifacts/velopack/win-x64-stable/*.zip
|
||||||
|
artifacts/velopack/win-x64-stable/*.json
|
||||||
|
artifacts/velopack/win-x64-stable/*.nupkg
|
||||||
name: ${{ gitea.ref_name }}
|
name: ${{ gitea.ref_name }}
|
||||||
body: |
|
body: |
|
||||||
Release ${{ gitea.ref_name }}
|
Release ${{ gitea.ref_name }}
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
1. Proje dosyasından sürüm okur
|
1. Proje dosyasından sürüm okur
|
||||||
2. dotnet publish (self-contained, single-file, win-x64)
|
2. dotnet publish (self-contained, single-file, win-x64)
|
||||||
3. vpk pack ile Setup.exe ve Portable.zip üretir
|
3. vpk pack ile Setup.exe, Portable.zip ve feed dosyalarını üretir
|
||||||
4. Çıktı dosyalarını istenen formata rename eder: RGBLedStripController-Setup-v{version}-x64.exe, RGBLedStripController-Portable-v{version}-x64.zip
|
4. Setup.exe ve Portable.zip'i istenen formata rename eder (feed dosyaları orijinal Velopack naming'de kalır)
|
||||||
5. Çıktı: artifacts/velopack/win-x64-stable/
|
5. Çıktı: artifacts/velopack/win-x64-stable/
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
@@ -41,6 +41,14 @@ if (-not $WhatIf) {
|
|||||||
Write-Host "[WhatIf] Would clean: $stagedPublishDir"
|
Write-Host "[WhatIf] Would clean: $stagedPublishDir"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Velopack output klasörünü temizle (duplicate önleme)
|
||||||
|
if (-not $WhatIf) {
|
||||||
|
if (Test-Path $velopackDir) { Remove-Item -Recurse -Force $velopackDir }
|
||||||
|
New-Item -ItemType Directory -Force -Path $velopackDir | Out-Null
|
||||||
|
} else {
|
||||||
|
Write-Host "[WhatIf] Would clean and recreate: $velopackDir"
|
||||||
|
}
|
||||||
|
|
||||||
# 1. dotnet publish
|
# 1. dotnet publish
|
||||||
$publishArgs = @(
|
$publishArgs = @(
|
||||||
"publish", $projPath
|
"publish", $projPath
|
||||||
@@ -81,7 +89,8 @@ if (-not $WhatIf) {
|
|||||||
Write-Host "[WhatIf] dotnet tool run vpk $vpkArgs"
|
Write-Host "[WhatIf] dotnet tool run vpk $vpkArgs"
|
||||||
}
|
}
|
||||||
|
|
||||||
# 3. Dosyaları istenen formata rename et
|
# 3. Sadece Setup.exe ve Portable.zip'i istenen formata rename et
|
||||||
|
# Feed dosyaları (releases.*.json, *.nupkg) orijinal Velopack naming'de kalsın (auto-update için)
|
||||||
$setupSrc = Join-Path $velopackDir "Fristy.RgbLedStripController-win-Setup.exe"
|
$setupSrc = Join-Path $velopackDir "Fristy.RgbLedStripController-win-Setup.exe"
|
||||||
$setupDst = Join-Path $velopackDir "RGBLedStripController-Setup-v${version}-x64.exe"
|
$setupDst = Join-Path $velopackDir "RGBLedStripController-Setup-v${version}-x64.exe"
|
||||||
$portableSrc = Join-Path $velopackDir "Fristy.RgbLedStripController-win-Portable.zip"
|
$portableSrc = Join-Path $velopackDir "Fristy.RgbLedStripController-win-Portable.zip"
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
|
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
|
||||||
<UseWPF>true</UseWPF>
|
<UseWPF>true</UseWPF>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
<Version>0.3.1</Version>
|
<Version>0.3.0</Version>
|
||||||
<AssemblyVersion>0.3.1.0</AssemblyVersion>
|
<AssemblyVersion>0.3.0.0</AssemblyVersion>
|
||||||
<FileVersion>0.3.1.0</FileVersion>
|
<FileVersion>0.3.0.0</FileVersion>
|
||||||
<InformationalVersion>0.3.1</InformationalVersion>
|
<InformationalVersion>0.3.0</InformationalVersion>
|
||||||
<AssemblyProduct>Fristy.RgbLedStripController</AssemblyProduct>
|
<AssemblyProduct>Fristy.RgbLedStripController</AssemblyProduct>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
|||||||
Reference in new issue
Block a user