Add Github action to create + update SpoonInstall compatible branch #45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First, thank you so much for making this! I've been missing PaperWM/Niri style management in MacOS, and this is a really great solution
When I was installing it I noticed that there didn't seem to be a way to use the SpoonInstall spoon, which asks for a very specific file structure. This should add a Github action that will let someone setup and install using SpoonInstall, as an alternative for cloning into the ~/.hammerspoon/Spoons directory.
It works by zipping the init.lua file into a new Spoons folder, and then force pushing to another branch with the zipped file- hopefully this means that branch needs as little manual maintenance as possible.
With this setup, it should be as simple as installing SpoonInstall, and making your init.lua along the lines of:
with this, the next time you reload your config, SpoonInstall should download and start PaperWM.
The docs/docs.json file is pretty much the minimum required info; I haven't looked into what kind of useful things you could put in there yet.
Let me know if you have any concerns/would rather do it an alternate way (or just would rather not support SpoonInstall!) If this works for you, I can also update the readme, I just wouldn't do it before this works the way you'd prefer.