Release-Skript: Signierschlüssel an die Tauri-CLI übergeben
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
e0773ba299
commit
8817ada3c4
2 files changed
+13
-7
No files matched your search
@@ -21,8 +21,11 @@ function Invoke-Native([string]$Description, [scriptblock]$Command) {
|
||||
}
|
||||
|
||||
$defaultKey = Join-Path $env:USERPROFILE '.vitosupdater\updater.key'
|
||||
if (-not $env:TAURI_SIGNING_PRIVATE_KEY -and -not $env:TAURI_SIGNING_PRIVATE_KEY_PATH -and (Test-Path $defaultKey)) {
|
||||
$env:TAURI_SIGNING_PRIVATE_KEY_PATH = $defaultKey
|
||||
if (-not $env:TAURI_SIGNING_PRIVATE_KEY) {
|
||||
# Die Tauri-CLI liest nur TAURI_SIGNING_PRIVATE_KEY (Pfad oder Inhalt); _PATH wird hier darauf abgebildet.
|
||||
$keySource = $env:TAURI_SIGNING_PRIVATE_KEY_PATH
|
||||
if (-not $keySource) { $keySource = $defaultKey }
|
||||
if (Test-Path $keySource) { $env:TAURI_SIGNING_PRIVATE_KEY = (Get-Content $keySource -Raw -Encoding UTF8).Trim() }
|
||||
}
|
||||
$env:CI = 'true'
|
||||
|
||||
|
||||
Reference in new issue
Block a user