gildas-lormeau / single-file-cli

CLI tool for saving a faithful copy of a complete web page in a single HTML file (based on SingleFile)
GNU Affero General Public License v3.0
539 stars 57 forks source link

TypeError: Windows only supports ctrl-c (SIGINT) and ctrl-break (SIGBREAK) #84

Closed SoroGin closed 2 months ago

SoroGin commented 2 months ago

I get the following running single-file.exe 2.0.30 on Windows 11

error: Uncaught (in promise) TypeError: Windows only supports ctrl-c (SIGINT) and ctrl-break (SIGBREAK).
    at bindSignal (ext:runtime/40_signals.js:14:10)
    at Object.addSignalListener (ext:runtime/40_signals.js:54:19)
    at addSignalListener (file:///Users/gildas/Desktop/Dev/project-single-file/single-file-cli/lib/deno-polyfill.js:213:8)
    at file:///Users/gildas/Desktop/Dev/project-single-file/single-file-cli/single-file-launcher.js:31:1

It happens immediately, and just running in powershell with no other options like the following:

.\single-file.exe "https://www.google.com/"
gildas-lormeau commented 2 months ago

Thank you, I've published the version 2.0.31 which should fix the error.