HamburgChimps / apple-notes-liberator

Free your Apple Notes data from Notes.app
MIT License
975 stars 23 forks source link

add jbang catalog #21

Closed maxandersen closed 1 year ago

maxandersen commented 1 year ago

apple-notes-liberator can today be run directly with jbang using:

jbang https://github.com/hamburgchimps/apple-notes-liberator/releases/latest/download/apple-notes-liberator.jar

or even without having to install java nor jbang manually, you can do:

 curl -Ls https://sh.jbang.dev | bash -s - https://github.com/hamburgchimps/apple-notes-liberator/releases/latest/download/apple-notes-liberator.jar

This adds a jbang-catalog so you can use jbang to run apple-notes-liberator using an alias.

jbang apple-notes-liberator@hamburgchimps/apple-notes-liberator

NOTE: I would recommend creating a HamburgChimps/jbang-catalog repo which, if you put the same jbang-catalog.json you would be able to make the alias shorter:

jbang apple-notes-liberator@hamburgchimps

making the one-liner to run this on any (decent) OS:

 curl -Ls https://sh.jbang.dev | bash -s - apple-notes-liberator@hamburgchimps

if you do that then this PR is not needed.

alexkolson commented 1 year ago

Thank you so much! I had no idea about JBang Catalogs!! This is awesome! I ended up taking your suggestion and adding a catalog repo at the organization level. I also added some information to the readme about how to install the application via JBang.