Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
Pre-create and persist all configuration files during scoop install
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Apr 25, 2022
1 parent e746c25 commit 4118b32
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ endif()
# Project version number
set(PRJ_VERSION_Major "1")
set(PRJ_VERSION_Minor "6")
set(PRJ_VERSION_Patch "2")
set(PRJ_VERSION_Patch "3")

if (EXISTS "${PROJECT_SOURCE_DIR}/.git" AND IS_DIRECTORY "${PROJECT_SOURCE_DIR}/.git")
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/cmake/githash.sh ${GIT_EXECUTABLE}
Expand Down
12 changes: 12 additions & 0 deletions cmake/win-gpg-agent.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@
" $content += \" # Use line below to enable SSH_AUTH_SOCK to point to cygwin socket`r`n\"",
" $content += \" # openssh: cygwin`r`n\"",
" $content | Set-Content \"$dir\\agent-gui.conf\" -Encoding ASCII",
"}",
"if (!(Test-Path \"$dir\\pinentry.conf\")) {",
" $content = \"gui:`r`n\"",
" $content += \" debug: false`r`n\"",
" $content += \" pin_dialog:`r`n\"",
" $content += \" delay: 500ms`r`n\"",
" $content | Set-Content \"$dir\\pinentry.conf\" -Encoding ASCII",
"}",
"if (!(Test-Path \"$dir\\sorelay.conf\")) {",
" $content = \"gui:`r`n\"",
" $content += \" debug: false`r`n\"",
" $content | Set-Content \"$dir\\sorelay.conf\" -Encoding ASCII",
"}"
],
"persist": [ "agent-gui.conf", "pinentry.conf", "sorelay.conf" ],
Expand Down

0 comments on commit 4118b32

Please sign in to comment.