nuttyartist / notes

Fast and beautiful note-taking app written in C++. Write down your thoughts.
https://www.get-notes.com
Mozilla Public License 2.0
3.6k stars 316 forks source link

Implement subscription #638

Closed nuttyartist closed 10 months ago

nuttyartist commented 10 months ago

This PR implements subscription. Anyone can still (and will forever be able to) compile the app and get the full Notes Pro version completely for free (and without any license verification over the internet). Anyone that bought the license before v2.2.1 will get 2 years of subscription for free (they will be emailed appropriately).

I hope this change will appeal to users who prefer to pay a small monthly fee. It will also support the project much more reliably with a consistent revenue stream, and users can expect us to work on really advance things using this more consistent revenue stream (hoping to get the new Block Editor and support for arbitrary folders next).

I still need to change some things on my personal website (backend for some of the subscription requests) as well as some other things, but that I'll do that tomorrow.

nuttyartist commented 10 months ago

Pushed changes based on your feedback, let me know what you think.

guihkx commented 10 months ago

Looks a bit better now, I think. Although I'd like some extra time to properly test this (especially on Ubuntu 20.04, just to make sure things don't break).

nuttyartist commented 10 months ago

Sure! I hope we can release this on Monday. In the meantime, I'll continue to work on the block-editor branch.

guihkx commented 10 months ago

Okay good, the 5.12 build isn't broken!

I have one question though, is the URL for purchasing the app supposed to be working already? I'm talking about this one:

https://github.com/nuttyartist/notes/blob/2c756348d0ec4cd2c609782bc4377940f9714521/notes_purchase_data.json#L2

Because right now the website is returning me this:

image

nuttyartist commented 10 months ago

I have one question though, is the URL for purchasing the app supposed to working already? I'm talking about this one:

Yes, it's an invalid link now because we need to update the purchase_pro_url in notes_purchase_data.json to https://www.get-notes.com/pricing. The error is because I added the utm_source to the link and with the Lemon Squeezy it results in an error but with the get-notes link it should work fine.

nuttyartist commented 10 months ago

@guihkx, can you please check if I did it correctly?

guihkx commented 10 months ago

Yup, everything's good.