StreamDeckToolkit icon indicating copy to clipboard operation
StreamDeckToolkit copied to clipboard

[Feature Request] GitHub Action to create .streamDeckPlugin

Open AlexHedley opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. GitHub Action to create .streamDeckPlugin

From the Elgato Docs:

Describe the solution you'd like A GitHub action that can run the DistributionTool and produce a .streamDeckPlugin binary.

Steps

  • Get the DistributionTool (Win or Mac)
  • Create/choose a folder to put the output in
  • run DistributionTool.exe -b -i com.elgato.counter.sdPlugin -o Release

This could then be added to other Actions like

  • Build project
  • Run above
  • Upload to release
    • https://github.com/actions/upload-release-asset
  • Upload to Elgato store
    • TBD (API?)

I've never written a GHA, can you distribute binaries like the DistributionTool with it? Would you just pull it from here and extract, seems a lot of work each time?

  • https://developer.elgato.com/documentation/stream-deck/distributiontool/DistributionToolMac.zip
  • https://developer.elgato.com/documentation/stream-deck/distributiontool/DistributionToolWindows.zip

Tool Options

USAGE: DistributionTool [-h] [-b] [-v] [-i FILE] [-o DIRECTORY]

This tool can be used to validate and export plugins for the Elgato Stream Deck Plugin Store.

OPTIONAL ARGUMENTS:
-b, --build                        Verify and build a plugin.
-v, --version                      The version number of this tool.
-h, --help                         This help dialog.
-i FILE, --input FILE              Path to the plugin (.sdPlugin).
-o DIRECTORY, --output DIRECTORY   Path to the output directory.

For updates and further help visit https://developer.elgato.com.

Describe alternatives you've considered Manually running the above steps.

Additional context I've emailed Elgato asking if they are likely to produce their own GHA and what the options will be to upload to the store.

** Is there one or more bugs reported related to this suggestion? If so, mention them below** #144 #158

AlexHedley avatar Oct 03 '20 16:10 AlexHedley

I've made some progress with this:

Action: https://github.com/AlexHedley/streamdeckplugindistribution-test-action (I'll make a new clean repo once it's working properly)

Test Repo: https://github.com/AlexHedley/sdpd-action-test

AlexHedley avatar Oct 10 '20 17:10 AlexHedley

That's a REALLY cool idea

csharpfritz avatar Oct 14 '20 12:10 csharpfritz