Compare commits
No commits in common. "main" and "v0.1.4" have entirely different histories.
1 changed files with 0 additions and 29 deletions
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
|
@ -139,35 +139,6 @@ jobs:
|
|||
$changelog = "changelog<<CHANGELOG_EOF`n$($log -join "`n")`nCHANGELOG_EOF"
|
||||
Add-Content -Path $env:GITHUB_OUTPUT -Value $changelog
|
||||
|
||||
- name: Versionsnummer aus Tag automatisch setzen (nur bei Versions-Tag)
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
working-directory: tauri-app
|
||||
shell: pwsh
|
||||
run: |
|
||||
$ErrorActionPreference = "Stop"
|
||||
$version = "${{ github.ref_name }}" -replace '^v', ''
|
||||
Write-Host "Setze Version auf $version in tauri.conf.json, package.json, Cargo.toml ..."
|
||||
|
||||
$confPath = "src-tauri/tauri.conf.json"
|
||||
$content = Get-Content $confPath -Raw
|
||||
$neu = $content -replace '("version"\s*:\s*)"[^"]*"', "`$1`"$version`""
|
||||
if ($neu -eq $content) { Write-Error "Version in $confPath nicht gefunden/ersetzt." }
|
||||
Set-Content -Path $confPath -Value $neu -NoNewline
|
||||
|
||||
$pkgPath = "package.json"
|
||||
$content = Get-Content $pkgPath -Raw
|
||||
$neu = $content -replace '("version"\s*:\s*)"[^"]*"', "`$1`"$version`""
|
||||
if ($neu -eq $content) { Write-Error "Version in $pkgPath nicht gefunden/ersetzt." }
|
||||
Set-Content -Path $pkgPath -Value $neu -NoNewline
|
||||
|
||||
$cargoPath = "src-tauri/Cargo.toml"
|
||||
$content = Get-Content $cargoPath -Raw
|
||||
$neu = $content -replace '(?m)^version = "[^"]*"', "version = `"$version`""
|
||||
if ($neu -eq $content) { Write-Error "Version in $cargoPath nicht gefunden/ersetzt." }
|
||||
Set-Content -Path $cargoPath -Value $neu -NoNewline
|
||||
|
||||
Write-Host " Erledigt, alle drei Dateien jetzt auf $version."
|
||||
|
||||
- name: Bauen und signieren (nur bei Versions-Tag)
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
working-directory: tauri-app
|
||||
|
|
|
|||
Loading…
Reference in a new issue