|Farooq KZ c6d79ed709 Merge branch 'master' of https://notabug.org/farooqkz/git2omnisd||1 week ago|
|.gitignore||1 week ago|
|LICENSE||1 week ago|
|README.md||1 week ago|
|git2omnisd.py||1 week ago|
This script creates an OmniSD compatible zip file from the given git repository and has been created to use with Git webhooks. Config has been hardcoded. Adding a method which reads config from a config file is welcome(hint: use Python's configparser module) or if you can't and you need, contact me so that I may add this feature if I had enough resource.
First install requirements with pip:
python3 -m pip install cherrypy requests
Then change this app's config through editing the source code:
outvariable ("/tmp/eval-omnisd.zip") to anything you want. A temporary file will be written there.
repo_nameto your app's repository name.
app_idto App ID. This will be used in creating OmniSD zip.
Now run the script:
application/x-www-form-urlencodedThat's it all :)
It is under ISC and comes with absolutely no warranty from me. See LICENSE.