{"action":"created","issue":{"url":"https://api.github.com/repos/opengapps/opengapps/issues/73","labels_url":"https://api.github.com/repos/opengapps/opengapps/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/opengapps/opengapps/issues/73/comments","events_url":"https://api.github.com/repos/opengapps/opengapps/issues/73/events","html_url":"https://github.com/opengapps/opengapps/issues/73","id":96673247,"number":73,"title":"Automated Upload Script","user":{"login":"bgiesing","id":7895463,"avatar_url":"https://avatars.githubusercontent.com/u/7895463?v=3","gravatar_id":"","url":"https://api.github.com/users/bgiesing","html_url":"https://github.com/bgiesing","followers_url":"https://api.github.com/users/bgiesing/followers","following_url":"https://api.github.com/users/bgiesing/following{/other_user}","gists_url":"https://api.github.com/users/bgiesing/gists{/gist_id}","starred_url":"https://api.github.com/users/bgiesing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgiesing/subscriptions","organizations_url":"https://api.github.com/users/bgiesing/orgs","repos_url":"https://api.github.com/users/bgiesing/repos","events_url":"https://api.github.com/users/bgiesing/events{/privacy}","received_events_url":"https://api.github.com/users/bgiesing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-07-22T21:49:59Z","updated_at":"2015-07-25T07:38:10Z","closed_at":null,"body":"Maybe we can add a simple bash script (maybe `./upload.sh`?) that would automatically cd into the source directory, add the files, commit with a common format, and push.\r\n```\r\ncd sources/$arch &&\r\ngit add . &&\r\ngit commit -am'$AppName $VersionName ($DPI)' &&\r\ngit push origin HEAD:master &&\r\ncd ../../\r\n```\r\n\r\nTo explain:\r\n\r\n1. The `cd` command would cd into the appropriate source dir.\r\n2. Add to Staged\r\n3. Commit with $AppName being either the keyword, package name, or the Play Store name; $VersionName and $DPI coming from the `./add_sourceapp.sh` command variables.\r\n4. This is interesting, but when you clone and run `./download-sources.sh`, it doesn't set the branch of the modules to master, so this version of the command would take what you just added (HEAD) and push it to origin/master.\r\n5. Take you back to the main directory.\r\n\r\nIf we have multiple files added at the same time, then we could do two things:\r\n\r\n- Add to one commit (with the name being altered to show `$AppName $VersionName ($DPI) and more` (Or something similar)\r\n- Add to one commit and put all the `$AppName $VersionName ($DPI)` on a line each.\r\n- Make seperate commits for each APK of different name (aka multiple GMS versions would still be one commit with the name having multiple DPIs, but Play Store and Chrome would still be seperate commits)\r\n\r\nAny thoughts or anybody want to implement?"},"comment":{"url":"https://api.github.com/repos/opengapps/opengapps/issues/comments/124816970","html_url":"https://github.com/opengapps/opengapps/issues/73#issuecomment-124816970","issue_url":"https://api.github.com/repos/opengapps/opengapps/issues/73","id":124816970,"user":{"login":"bgiesing","id":7895463,"avatar_url":"https://avatars.githubusercontent.com/u/7895463?v=3","gravatar_id":"","url":"https://api.github.com/users/bgiesing","html_url":"https://github.com/bgiesing","followers_url":"https://api.github.com/users/bgiesing/followers","following_url":"https://api.github.com/users/bgiesing/following{/other_user}","gists_url":"https://api.github.com/users/bgiesing/gists{/gist_id}","starred_url":"https://api.github.com/users/bgiesing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgiesing/subscriptions","organizations_url":"https://api.github.com/users/bgiesing/orgs","repos_url":"https://api.github.com/users/bgiesing/repos","events_url":"https://api.github.com/users/bgiesing/events{/privacy}","received_events_url":"https://api.github.com/users/bgiesing/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T07:38:10Z","updated_at":"2015-07-25T07:38:10Z","body":"@mfonville I can't think of much other scenarios. You either do a first upload or upload a new file. Both worked (in fact, since the all the apps are up to date, I added the last version of Inbox and and then updated to the latest.) I even tried a non Google app.\r\n\r\nI think, we actually need more than just me (and you) testing. Calling all @opengapps/packagers!"}}