stream-deck-distribution-tool
v1.0.2
Published
Binary wrapper that makes the Elgato Stream Deck Distribution Tool seamlessly available as a local dependency.
Downloads
4
Maintainers
Readme
stream-deck-distribution-tool
Binary wrapper that makes the Elgato Stream Deck Distribution Tool seamlessly available as a local dependency.
Install
npm install -D stream-deck-distribution-tool
Upon installation, this package will download the latest version of the distribution tool from the Elgato Stream Deck API documentation page. Because Elgato does not offer any sort of versioning, there is no way to download previous versions of the tool, and as such there are no options available for this package.
Usage
On both Windows and macOS, the following commands (when run in the project root directory) will take the plugin assets located in com.elgato.counter.sdPlugin
and output them to a directory called Release
.
NOTE: The plugin assets must be located in a directory named in the format of <TLD>.<DEVELOPER>.<PLUGINNAME>.sdPlugin
. The distribution tool will not accept a plugin directory not named in this format.
NOTE: The Release
directory must exist. The distribution tool executable will not create one if it does not.
Node scripts
{
"scripts": {
"build": "sd-distribution-tool -b -i com.elgato.counter.sdPlugin -o Release"
}
}
CLI
On Windows:
.\node_modules\sd-distribution-tool -b -i com.elgato.counter.sdPlugin -o Release
On macOS:
./node_modules/sd-distribution-tool -b -i com.elgato.counter.sdPlugin -o Release
API
const { execFile } = require("child_process");
const DistributionTool = require("stream-deck-distribution-tool");
execFile(DistributionTool, ["-b", "-i" "com.elgato.counter.sdPlugin", "-o", "Release"], (err, stdout) => {
if (err)
throw err;
console.log(stdout);
})
Inspiration
License
MIT © TheAppleFreak