Help uploading packages with OSX
SOLVED: The 1st comment on the article gives the solution which is to just add the flags -D and -X to the terminal command
I'm having trouble with the 3rd tutorial in the developer guide: Hello world - manually create package. The problem is I can't upload a package succesfully. I am on OSX and so I followed the suggested Uploading H5P packages with OSX article, using terminal to zip the folder content before trying to upload it within WordPress. However, I get the following error:
Validating h5p package failed.
Am I right in thinking the problem is with the folders not being recursively zipped properly? I am following the instructions by navigating into the greeting folder then running the command: zip -r greeter.h5p * so I don't know what I can do to resolve the issue. Any suggestions?
Wed, 02/12/2020 - 13:00
I just scrolled down to the comments below the article and saw the solution! Which is to include the extra flags -D and -X giving: zip -r -D -X greeter.h5p *. This now works for me. Perhaps the original article could be updated?
Wed, 02/12/2020 - 14:02
Hi Colin!Yes, I agree that
Yes, I agree that the article should be updated. In particular, it should hint to https://github.com/h5p/h5p-cli which could/should be used to pack archives for H5P.