Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
LDVG committed Feb 29, 2024
1 parent dd12bb4 commit 5f10ec1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions windows/cygwin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $Packages = 'gcc-core,pkg-config,cmake,make,libcbor-devel,libssl-devel,zlib-deve
# Work directories.
$Cygwin = "$PSScriptRoot\..\cygwin"
$Root = "${Cygwin}\root"
$GNUPGHOME = "${Cygwin}/.gnupg"

# Find GPG.
$GPG = $(Get-Command gpg -ErrorAction Ignore | `
Expand All @@ -31,19 +32,14 @@ if (-Not (Test-Path $GPG)) {
throw "Unable to find GPG at $GPG"
}

$GPGTOGGLE = $(Get-Command gpg-disable-keyboxd -ErrorAction Ignore | `
Select-Object -ExpandProperty Source)
if (-Not (Test-Path $GPGTOGGLE)) {
throw "Unable to find GPG at $GPGTOGGLE"
}

Write-Host "Config: $Config"
Write-Host "GPG: $GPG"
Write-Host "GPGTOGGLE: $GPGTOGGLE"

# Create work directories.
New-Item -Type Directory "${Cygwin}" -Force
New-Item -Type Directory "${Root}" -Force
New-Item -Type Directory "${GNUPGHOME}" -Force
New-Item -Type File "${GNUPGHOME}/gpg.conf" -Force

# Fetch and verify Cygwin.
try {
Expand All @@ -56,7 +52,7 @@ try {
-OutFile ${Cygwin}\${Setup}.sig
}
Write-Host "XXX"
& $GPG -vvvvv --debug-all --options "${PSScriptRoot}\gpg.conf" --no-default-keyring `
& $GPG -vvvvv --debug-all --homedir "${GNUPGHOME}" --no-default-keyring `
--keyring "${PSScriptRoot}\cygwin.gpg" `
--list-keys
& $GPG --quiet --no-default-keyring `
Expand Down

0 comments on commit 5f10ec1

Please sign in to comment.