A small tool to register a simple URL Handler that executes a script. (Currently only tested on Windows)
$ git clone https://github.com/LeXonJe/weblink
$ yarn install
Then create a config.json
file like that:
{
"protocolName": "testProt",
"installScript": "example.bat",
"installLocation": "%localappdata%\\scripts\\"
}
And now you can start and test the script:
$ yarn start
Now you should be able to type (protocolName)://test
into your browser and get asked to execute the script.
$ yarn build
Then bundle your .exe from the dist folder with the config and a script (aka. put them in the same folder). Done!