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 4c6afb9 commit 41801c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion 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"
$GpgHome = "${Cygwin}\.gnupg"

# Find GPG.
$GPG = $(Get-Command gpg -ErrorAction Ignore | `
Expand All @@ -37,6 +38,8 @@ Write-Host "GPG: $GPG"
# Create work directories.
New-Item -Type Directory "${Cygwin}" -Force
New-Item -Type Directory "${Root}" -Force
New-Item -Type Directory "${GpgHome}" -Force
New-Item -Type File "${GpgHome}/common.conf" -Force

# Fetch and verify Cygwin.
try {
Expand All @@ -48,7 +51,8 @@ try {
Invoke-WebRequest ${URL}/${Setup}.sig `
-OutFile ${Cygwin}\${Setup}.sig
}
& $GPG --options ${PSScriptRoot}/gpg.conf --debug-all --quiet --no-default-keyring `
& $GPG --options $GpgHome --debug-all --list-keys
& $GPG --options $GpgHome --debug-all --quiet --no-default-keyring `
--keyring ${PSScriptRoot}/cygwin.gpg `
--verify ${Cygwin}\${Setup}.sig ${Cygwin}\${Setup}
if ($LastExitCode -ne 0) {
Expand Down
4 changes: 1 addition & 3 deletions windows/gpg.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
[ignore]
use-keyboxd
[-ignore]
#use-keyboxd

0 comments on commit 41801c1

Please sign in to comment.