Verified Commit bf2a80c4 authored by Aral Balkan's avatar Aral Balkan
Browse files

Add Windows support

parent 74c13463
Pipeline #938 canceled with stages
bin/pebble filter=lfs diff=lfs merge=lfs -text
bin/pebble.exe filter=lfs diff=lfs merge=lfs -text
......@@ -2,9 +2,12 @@
A Node.js wrapper for [Let’s Encrypt](https://letsencrypt.org)’s [Pebble](https://github.com/letsencrypt/pebble) (“a small RFC 8555 ACME test server not suited for a production certificate authority”).
## Platform support
## Version and platform support
Linux AMD 64.
Supports [Pebble version 2.3.0](https://github.com/letsencrypt/pebble/releases/tag/v2.3.0) on platforms with binary [Pebble releases](https://github.com/letsencrypt/pebble/releases/):
- Linux AMD 64.
- Windows AMD 64.
## Installation
......
File added
......@@ -8,7 +8,8 @@
* @copyright © 2020 Aral Balkan, Small Technology Foundation
* @license AGPL version 3.0 or later
*/
const path = require('path')
const os = require('os')
const path = require('path')
const childProcess = require('child_process')
const spawn = childProcess.spawn
......@@ -32,7 +33,9 @@ class Pebble {
}
const binDirectoryPath = path.join(__dirname, 'bin')
const pebbleBinaryPath = path.join(binDirectoryPath, 'pebble')
const pebbleBinaryName = `pebble${os.platform() === 'win32' ? '.exe' : ''}`
const pebbleBinaryPath = path.join(binDirectoryPath, pebbleBinaryName)
const options = {
env: Object.assign(process.env, env),
cwd: binDirectoryPath
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment