Skip to main content
Known Participant
August 14, 2023
Question

Auto-update using Sparkle

  • August 14, 2023
  • 1 reply
  • 741 views

Hi
I'm developing a plugin for AfterEffects, which will be uploaded on FxFactory as well as an external site.
For the external site, I'm implementing auto-update using Sparkle framework. 
I understand that my plugin bundle is different from the host bundle, i.e. AfterEffects.
However, I was able to implement auto update for my plugin using the below code in my GlobalSetup:

PlaceHolderClass *placeholder = [[PlaceHolderClass alloc] init];

SUUpdater *updater = [SUUpdater updaterForBundle:[NSBundle bundleForClass:[placeholder class]]];

[updater checkForUpdates:nil];

But once the update build is downloaded, next task is extracting and while extracting it crashes and gives the error:

Assertion failed: (auxiliaryToolURL != nil), function -[SUInstallerLauncher pathForBundledTool:extension:fromBundle:], file SUInstallerLauncher.m, line 329.

Please help



This topic has been closed for replies.

1 reply

Community Expert
August 14, 2023

errr... can it be trying to overwrite the plug-in file while the plug-in is still loaded and executing?

Veena2411Author
Known Participant
August 14, 2023

Hi @shachar carmi 
Thanks for your response. I was wondering the same. Maybe it is trying to relaunch the plugin. (While I think it should relaunch AfterEffects maybe)

Veena2411Author
Known Participant
August 14, 2023

Sparkle is quite good, but its newest versions don't seem to be working for me. The code I provided is written for old version of Sparkle.
So do you have any other option for implementing auto-update for an AfterEffects plugin