Skip to content
bamboodeployPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@bamboodeploy/cli

Scan and code-sign Windows binaries (.exe, .msi) from any build pipeline. One command, no certificate, no HSM, no Windows VM.

npx github:bamboodeploy/cli sign dist/myapp.exe

Upload, sign with a trusted certificate, download the signed file in place. Works on Windows, macOS, and Linux runners.

Install globally to get the bamboo command: npm install -g github:bamboodeploy/cli. In Windows PowerShell with scripts blocked, use npx.cmd and npm.cmd.

Setup

  1. Create an API key in the Bamboo Deploy dashboard under API Keys.
  2. Export it as BAMBOO_API_KEY (or put BAMBOO_API_KEY=bd_live_... in a .bamboorc in your project or home dir).

Signing needs a Premium subscription ($45 per quarter). Scanning is free.

Commands

bamboo sign <file>... [--out path] [--timeout 900] # sign, replace in place by default
bamboo scan <file> [--json] [--fail-on-findings]  # free: scan report + SmartScreen readiness
bamboo status [app-id]                            # list uploads, or one app's scan + sign state
bamboo delete <app-id>
bamboo config                                     # show which key and API base are in use

Several files at once: bamboo sign dist/app.exe "dist/*.dll". Each file is signed, and with --out they go into that folder. Wildcards work in any shell, including PowerShell and cmd. Status checks and downloads retry on network errors.

Exit codes: 0 ok, 1 error, 2 Premium required, 3 publisher verification required, 4 timeout or waiting for review, 5 scan findings (with --fail-on-findings).

In a build script

{
  "scripts": {
    "dist": "electron-builder --win && bamboo sign dist/MyApp-Setup.exe"
  }
}

For electron-builder there is a hook package that signs every Windows artifact automatically: electron-builder-bamboo-sign.

Programmatic use

const { signFile, scanFile } = require('@bamboodeploy/cli');
await signFile('dist/app.exe', { out: 'dist/app-signed.exe', log: console.error });
const { report, summary } = await scanFile('dist/app.exe');

CI

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages