Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

Auto-update using Sparkle

Explorer ,
Aug 14, 2023 Aug 14, 2023

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



TOPICS
Crash , How to , SDK
617
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2023 Aug 14, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 14, 2023 Aug 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)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 14, 2023 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2023 Aug 14, 2023

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 14, 2023 Aug 14, 2023

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2023 Aug 14, 2023

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 14, 2023 Aug 14, 2023
LATEST

Sounds good

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines