gpg|gnupg: Add gpg2 alias (#4551)

This commit is contained in:
ObsoleteXero 2023-03-13 12:46:30 +05:30 committed by GitHub
parent 5b5caf98f2
commit 61d38545f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@
"script": [ "script": [
"Remove-Item \"$dir\\`$PLUGINSDIR\", \"$dir\\gnupg-uninstall.exe.nsis\" -Force -Recurse", "Remove-Item \"$dir\\`$PLUGINSDIR\", \"$dir\\gnupg-uninstall.exe.nsis\" -Force -Recurse",
"New-Item \"$dir\\bin\\gpgconf.ctl\" -Force | Out-Null", "New-Item \"$dir\\bin\\gpgconf.ctl\" -Force | Out-Null",
"Copy-Item \"$dir\\bin\\gpg.exe\" \"$dir\\bin\\gpg2.exe\"",
"if (!(Test-Path \"$persist_dir\\home\") -and (Test-Path \"$env:Appdata\\gnupg\")) {", "if (!(Test-Path \"$persist_dir\\home\") -and (Test-Path \"$env:Appdata\\gnupg\")) {",
" Write-Host -F yellow \"Copying old '$env:Appdata\\gnupg' to '$persist_dir\\home'\"", " Write-Host -F yellow \"Copying old '$env:Appdata\\gnupg' to '$persist_dir\\home'\"",
" New-Item \"$dir\\home\" -ItemType Directory -Force | Out-Null", " New-Item \"$dir\\home\" -ItemType Directory -Force | Out-Null",

View File

@ -10,6 +10,7 @@
"script": [ "script": [
"Remove-Item \"$dir\\`$PLUGINSDIR\", \"$dir\\gnupg-uninstall.exe.nsis\" -Force -Recurse", "Remove-Item \"$dir\\`$PLUGINSDIR\", \"$dir\\gnupg-uninstall.exe.nsis\" -Force -Recurse",
"New-Item \"$dir\\bin\\gpgconf.ctl\" -Force | Out-Null", "New-Item \"$dir\\bin\\gpgconf.ctl\" -Force | Out-Null",
"Copy-Item \"$dir\\bin\\gpg.exe\" \"$dir\\bin\\gpg2.exe\"",
"if (!(Test-Path \"$persist_dir\\home\") -and (Test-Path \"$env:Appdata\\gnupg\")) {", "if (!(Test-Path \"$persist_dir\\home\") -and (Test-Path \"$env:Appdata\\gnupg\")) {",
" Write-Host -F yellow \"Copying old '$env:Appdata\\gnupg' to '$persist_dir\\home'\"", " Write-Host -F yellow \"Copying old '$env:Appdata\\gnupg' to '$persist_dir\\home'\"",
" New-Item \"$dir\\home\" -ItemType Directory -Force | Out-Null", " New-Item \"$dir\\home\" -ItemType Directory -Force | Out-Null",