arthurdapaz

Cydia Sources Importer

Jul 3rd, 2015
928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.86 KB | None | 0 0
  1. # WHAT IS THIS?
  2. # -- Importing multiples sources in Cydia at once!
  3. # -- And allowing then to be editable inside Cydia app.
  4. # by Arthur da Paz
  5. #
  6. # GUIDE:
  7. # -- install cycript and OpenSSH
  8. # create the text file /var/mobile/sources.txt
  9. # each line of it should contain an URL corresponding to the repo
  10. # once your sources.txt is ready and filled with all the sources
  11. # copy+paste the command bellow via ssh (recommended to be logged in as 'mobile', not 'root')
  12. #
  13. # ATTENTION: Cydia must be opened
  14. #            (on any default view and in stand by state)
  15.  
  16.  
  17. echo 'function loadSources(){var srcs=[NSString stringWithContentsOfFile:@"/var/mobile/sources.txt"].split("\n").filter(function(l){return(l!=""&&l!=undefined)});for(var i=0;i<srcs.length;i++)[Cydia.sharedApplication addTrivialSource:srcs[i]];[Cydia.sharedApplication syncData]}loadSources()'|cycript -p Cydia
Advertisement
Add Comment
Please, Sign In to add comment