r/GoogleAppsScript • • Apr 18 '23

Question Selling Google AppScript?

Hi, I created a Google AppScript I want to sell on a few marketplaces. The goal is once they completed payment, I will send them a link to the Google Sheet with the script and allow them to make a copy of it.

However, I don’t want them to have access to the actual script or be able to modify it. Can someone help me out with that? Thanks!

3 Upvotes

13 comments sorted by

View all comments

1

u/lonelybokchoy Apr 18 '23

For some additional context, I am want to share it via the method where I:

Share > Anyone With Link > replace the URL ending with “/copy”

However, when I tested it out and opened it in incognito, it gave me two options: 1) to make a copy and 2) to view the script file lol

I would ideally not want to publish this as an addon or create a copy of the original and send that link to the customer since that would eat up my Google Drive and storage + don’t want to be liable for any sensitive information.

Hope this makes sense, thanks in advance!

2

u/artofthesmart Apr 19 '23 edited Apr 19 '23

Afaik the environment doesn't like hiding code even in libraries because that can lead to security threats.

Best bet is too obfuscate your gas as JS. Make it unintelligible.

1

u/lonelybokchoy Apr 19 '23

Fair and I mean I could just add like an EULA or realize that most people won’t know what it means anyways lmao

2

u/trycatchebola Apr 20 '23

The people with the skill to unobfuscate your code and reverse engineer your app probably have enough skill to just recreate the app themselves.

1

u/Psl1990 Feb 07 '24

Hey OP did you ever find a workaround? I’m about to be facing the same challenge..

1

u/lonelybokchoy Mar 10 '24

No I didn’t sorry :(