项目作者: TheAppleFreak

项目描述 :
Binary wrapper that makes the Elgato Stream Deck Distribution Tool seamlessly available as a local dependency.
高级语言: JavaScript
项目地址: git://github.com/TheAppleFreak/stream-deck-distribution-tool.git
创建时间: 2021-06-09T03:55:08Z
项目社区:https://github.com/TheAppleFreak/stream-deck-distribution-tool

开源协议:MIT License

下载


stream-deck-distribution-tool

Continuous Integration npm version

Binary wrapper that makes the Elgato Stream Deck Distribution Tool seamlessly available as a local dependency.

[!CAUTION]
Ever since the release of the official Stream Deck SDK, this package is no longer needed and has accordingly been archived and deprecated. This code is available for historical purposes, but should not be used.

Install

  1. 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

  1. {
  2. "scripts": {
  3. "build": "sd-distribution-tool -b -i com.elgato.counter.sdPlugin -o Release"
  4. }
  5. }

CLI

On Windows:

  1. .\node_modules\sd-distribution-tool -b -i com.elgato.counter.sdPlugin -o Release

On macOS:

  1. ./node_modules/sd-distribution-tool -b -i com.elgato.counter.sdPlugin -o Release

API

  1. const { execFile } = require("child_process");
  2. const DistributionTool = require("stream-deck-distribution-tool");
  3. execFile(DistributionTool, ["-b", "-i" "com.elgato.counter.sdPlugin", "-o", "Release"], (err, stdout) => {
  4. if (err)
  5. throw err;
  6. console.log(stdout);
  7. })

Inspiration

License

MIT © TheAppleFreak