Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Helper apps with Hammerspoon and sell it? #3620

Closed
muescha opened this issue Mar 18, 2024 · 8 comments
Closed

Create Helper apps with Hammerspoon and sell it? #3620

muescha opened this issue Mar 18, 2024 · 8 comments

Comments

@muescha
Copy link
Contributor

muescha commented Mar 18, 2024

Is it possible to create some helper apps and sell it?

  • Is this idea compatible with the hammerspoon license?
  • how I can package it in one app?
  • there are some problems if I run my app (based on hammerspoon) and the "original" hammerspoon app?
  • Can I sell it on MAS or only out of MAS?

Or should I use Hammerspoon for an MVP and later create a SwiftUI app?

@latenitefilms
Copy link
Contributor

I forked Hammerspoon for my own purposes with CommandPost:

https://commandpost.io

Hammerspoon (and CommandPost) is MIT licensed.

Going down the Mac App Store route would require a lot of functionality to be removed due to sandbox requirements and the fact you can't use private APIs.

@muescha
Copy link
Contributor Author

muescha commented Mar 18, 2024

I looks very complicated to build the custom *.app with the build*.sh scripts :/

@cmsj
Copy link
Member

cmsj commented Aug 5, 2024

If we can manage to get some momentum behind the Swift rewrite, part of that effort involved splitting out a lot of the core functionality into its own Framework. Part of the motivation for that was explicitly to make the creation of simple standalone utility apps easier.

As for the legality, you are totally fine to repackage Hammerspoon either commercially or non-commercially. You're right it's not very easy to build, ironically because of the need for other people to be able to do local unsigned/self-signed builds, as well as me being able able to do Apple-notarized release builds.

@cmsj cmsj closed this as completed Aug 5, 2024
@latenitefilms
Copy link
Contributor

I've learnt a LOT more about Swift in last 12 months so very keen to get back to pushing Swift rewrite further!

@muescha
Copy link
Contributor Author

muescha commented Aug 8, 2024

extracting functions into a framework would be very interesting.

Is there any resource where I can follow the current Swift rewrite process?

@latenitefilms
Copy link
Contributor

It hasn't really started yet. Any work on this will be posted as pull request and issues in this repo. @cmsj has some proof of concept stuff already in a pull request.

@cmsj
Copy link
Member

cmsj commented Aug 8, 2024

#3573 has that work. Somewhere is some code I fleshed out to figure out how to write the Lua-facing part of an extension in Swift, here

@muescha
Copy link
Contributor Author

muescha commented Aug 9, 2024

Thank you for pointing that out. It seems the links you provided are focused on writing Swift extensions rather than Lua scripts. If I misunderstood your intention, I apologize.

What I’m aiming to do is bundle a few Lua scripts with Hammerspoon to create a new tool or app with one or two specific functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants