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

Already on GitHub? Sign in to your account

Easiest Way to Disable Sparkle #224

Closed
BaseHead opened this Issue Nov 13, 2012 · 2 comments

Comments

Projects
None yet
2 participants

Hey!

I got Sparkle going about 9 months ago in my app and love it!
Question: What is the cleanest way to disabled it from auto-checking.

When I compile my app it makes the demo mode and then I wrap codemeter encryption around the .app to make the usb dongle version also from the same code.
The problem I have is both versions will try and auto-update from the same appcast which will over rite one of the versions with the wrong one.

So what I need is either.....
A. an easy way to disable Sparkle by commenting out a few lines of code when the program detects it's running in demo mode so it never checks ever.
(this is probably the easiest)

or

B. Allow Sparkle updating of each version somehow so I guess they'd need to be seen as unique in someway.

Any suggestions how to pull this off easily?

thx!

Steve

Contributor

andymatuschak commented Nov 16, 2012

I think the easiest way to deal with this is for you to make two targets in Xcode: one which produces the demo app, and one which produces the encrypted app. For the latter target, you can have Xcode run the scripts which actually encrypt the app, and you then you can have a separate Info.plist for the encrypted target which points at a different appcast.

thx Andy for the info!
I will forward this to my main coder!

Steve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment