Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
errr... can it be trying to overwrite the plug-in file while the plug-in is still loaded and executing?
Copy link to clipboard
Copied
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)
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
well, personally i think AE users are touchy about auto updates... they don't like the environment changing in mid project.
anyways, i'm unfamiliar with a method of changing an execuatable or dll while it's executing.
Copy link to clipboard
Copied
Ok Thanks for your response.
If I somehow get the handle on which it is crashing, Could you tell me how I can close AE on this handle.
Copy link to clipboard
Copied
perhaps running “app.quit()” thorugh AEGP_ExecuteScript() would do the trick.
but it seems you need the updater to run as an external executable, which would in turn be able to re-launch AE via system command when the update is done.
Copy link to clipboard
Copied
Sounds good
Find more inspiration, events, and resources on the new Adobe Community
Explore Now