diff --git a/bucket/dnscrypt-proxy.json b/bucket/dnscrypt-proxy.json index a334c47..5246372 100644 --- a/bucket/dnscrypt-proxy.json +++ b/bucket/dnscrypt-proxy.json @@ -18,10 +18,14 @@ } } }, - "pre_install": "if (!(Test-Path \"$persist_dir\\$dnscrypt-proxy.toml\")) { Copy-Item \"$dir\\example-dnscrypt-proxy.toml\" \"$dir\\dnscrypt-proxy.toml\" }", + "pre_install": [ + "'dnscrypt-proxy.toml', 'query.log' | ForEach-Object {", + " if (!(Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" -ItemType File | Out-Null }", + "};" + ], "persist": [ "dnscrypt-proxy.toml", - "localhost.pem" + "query.log" ], "extract_dir": "win64", "bin": "dnscrypt-proxy.exe"