New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install themes & apps via zip file upload #60
Comments
The first change towards this, moving theme html files into the theme's subfolder, has been done. This will allow themes to install as cleanly as apps. Next are two things I'm thinking about:
{
"type": "app",
"folder": "test",
"name": "Test App",
"version": "1.0.0",
"website": "http://www.elefantcms.com/shared-apps",
"repos": "git://github.com/jbroadway/test-app.git",
"author": {
"name": "Johnny Broadway",
"email": "johnny@johnnybroadway.com"
}
} And for themes: {
"type": "theme",
"folder": "test",
"name": "Test Theme",
"version": "1.0.0",
"website": "http://www.elefantcms.com/themes",
"repos": "git://github.com/jbroadway/test-theme.git",
"author": {
"name": "Johnny Broadway",
"email": "johnny@johnnybroadway.com"
}
} Then its simply a matter of fetching/moving files to their appropriate locations. For zip handling, see: |
UI-wise, I see this as a link under Tools > Designer titled "Install App/Theme" similar to how the importers appear under Tools > Blog Posts. It would then ask you to upload a zip or paste the Github repository clone link. If the zip or repo didn't contain a valid The |
Here will be the official format of the elefant.json files: {
"type": "theme",
"folder": "bootstrapped",
"name": "Bootstrapped",
"version": "1.0.0",
"website": "http://www.elefantcms.com/themes",
"repository": "git://github.com/jbroadway/bootstrapped.git",
"author": {
"name": "Johnny Broadway",
"email": "johnny@johnnybroadway.com"
},
"requires": {
"php": "5.3.2",
"elefant": "1.1.2"
}
} Now have the zip installer working for themes in the theme_installer branch. |
Zip installer is complete. Next up is the Github installer. |
Github installer now works too. Last step: Documentation. |
Also: Look into Github rate limits, ran into errors fetching wiki app. |
Fixed issues with Github, was a zero byte file. Added simple rate limiting anyway. Should also add the ability to point to the URL of a zip file, which would be the fastest install method. Pulling individual files from Github is slow, and downloading then re-uploading the zip file is often a needless extra step. Also: Docs. |
Todos:
Now merged into master branch. |
Fixed issues with zip files and strange folder names, and zip files can now be installed from links. Closing this, new issues should be reported as bugs. |
No description provided.
The text was updated successfully, but these errors were encountered: