Picture of Pippo De Paperis
Zipping plugins for authoring tool
by Pippo De Paperis - Monday, 14 November 2016, 5:19 PM
 

Hi all,

I've been struggling really hard to find a way to zip custom plugins so that the authoring tool likes them. So far, only zip files download from github work.

If I zip a file myself on windows and try to upload it, it tells me that it cannot find bower.js, but the file is there in the root folder.

If I zip the file from linux, the adapt VM hangs and eats up all the CPU...

Any suggestion to what I could use to zip a plugin so that it is correctly handled by the authoring tool?

Thanks a lot!

Picture of Gareth Walker
Re: Zipping plugins for authoring tool
by Gareth Walker - Monday, 14 November 2016, 10:06 PM
 

Hi --

Have you tried zipping via the command prompt (zip -r -X archive_name.zip folder_to_compress)? I think that was recommended by someone for themes, and the same may be true for plugins.

And/or have you tried playing around with the structure of the zip file. I think you need to zip the plugin folder, rather than the contents of the folder - or it may be the other way around. But if you've just been doing one, maybe try the other?

I'm assuming that these custom plugins are authoring tool compatible - i.e. they have a properties.schema?

Picture of Joe Wickert
Re: Zipping plugins for authoring tool
by Joe Wickert - Monday, 14 November 2016, 10:54 PM
 

I've found that the "Create Archive" right click on Mac also has this problem. It creates a Zip file that won't load into the Authoring Tool.

Gareth's tip about using the command prompt works on Mac for me.

Picture of Matt Leathes
Re: Zipping plugins for authoring tool
by Matt Leathes - Tuesday, 15 November 2016, 10:02 AM
 
I think you need to zip the plugin folder, rather than the contents of the folder

This is correct - if you download one of the zip files (e.g. adapt-contrib-mcq) from the github repo and open it and you'll see that all the files are contained within a subfolder called something like adapt-contrib-mcq-master

 

Picture of Pippo De Paperis
Re: Zipping plugins for authoring tool
by Pippo De Paperis - Tuesday, 15 November 2016, 2:38 PM
 

Hi, 

That worked from Linux from the command line.I had forgotten the -r -X flags :)))

Cheers,

Donato