I've tried installing two add-ons today (Attendance and Course menu) by downloading a zip file from GIT and uploading from inside Moodle.
Both times I get an error "Invalid add-on name" (see image)
The explanation of the error is this: "The name of the root directory in the ZIP package violates formal syntax requirements. Some ZIP packages, such as those generated by Github, may contain an incorrect root directory name. You need to fix the name of the root directory to match the add-on name"
What is the best thing to do?
I'm trying to avoid hacking zip files.