New created extention can't be installed


#1

Hi, I made an extension. It all works when I place it in the libraries folder but when I try to install a zipped version of the extention I get an: “file is not a valid extention zip” error.
Can anyone spot the problem? I dont’ see why it doesn’twork.

InkyBoard.zip (12.0 KB)


#2

Verify that the js file mentionned in the s2e file “javascriptUrl” renseign the good file name

Exemple : "javascriptURL":"js/mblock_bluetooth_extension.js",
And the javascript in my js directory is named “/mblock_bluetooth_extension.js”

And verify your s2e file with a json validator (many free on google). Are you using the online extension center or it’s just in local ? (you had create a extension zipped and you want to import this in mBlock). Post your zip file if you want I can analyze it


#3

Hi Coiffierp,
There is no javascript file, it is an Arduino only extension. So the javascripturl is empty (“javascriptURL”:"").
I checked the s2e file already with a JSON editor, no problems there.

The weird thing is that I can manually place the extension files in the library folder where all the other extensions are. It works flawlessly, but when I zip everything and try to add it with the extension manager it wouldn’t install.

The extension is uploaded with the original post. I would appreciate it if you can analyze it, I tried almost everything but no success.


#4

You have to renseign the “javascriptUrl”. It’s an Arduino extension, ok, but the doc say you always have to add the javascriptUrl file. I had added it and I can install your extension in mBlock, the message “Invalid zip file” has disapear since I have added the javascriptUrl in the s2e file, here you are the new zip file.

http://www.mobissime.com/inkyboard.zip


#5

For more explaination, read this : http://download.makeblock.com/mblock/mblock_extension_guide.pdf


#6


#7

inkyboard.zip (13,4 Ko)
The correct new version


#8

thanks, it is working like charm now. I think I misinterpret the sentence “If your extension does not support Scratch Mode, skip this part”, thought it meant that I could skip the javascript file altogether.


#9

ah ok, I didn’t know that. So it could be possible without “javascriptUrl” I think, you’re right