Updated for Gingerbread GApps and current mirror list, as well as add options for CM6 tegra, CM5 and CM4.

Change-Id: I4f2b8b4c798ea446699e181d570c2a72b1388657
This commit is contained in:
Denham Crafton 2011-02-10 17:16:50 -06:00
parent 6b424f3c40
commit da8cd10e67

View File

@ -2,9 +2,9 @@
import sys, random, urllib2, zipfile, StringIO, os import sys, random, urllib2, zipfile, StringIO, os
from optparse import OptionParser from optparse import OptionParser
FILENAME=["gapps-hdpi-20101114-signed.zip","gapps-mdpi-20101020-signed.zip","gapps-mdpi-tiny-20101020-signed.zip"] FILENAME=["gapps-gb-20110120-signed.zip","gapps-gb-tegra-20110118-signed.zip","gapps-hdpi-20101114-signed.zip","gapps-mdpi-20101020-signed.zip","gapps-mdpi-tiny-20101020-signed.zip","gapps-mdpi-tegra-20101020-signed.zip","gapps-passion-EPE54B-signed.zip","gapps-ds-ERE36B-signed.zip","DRC83_base_defanged.zip"]
VERSIONS=["hdpi","mdpi","mdpi-tiny"] VERSIONS=["gb","gb-tegra","hdpi","mdpi","mdpi-tiny","tegra","cm5hdpi","cm5mdpi","cm4"]
MIRRORS=["http://cyanogenmod-mirror.local.host.name/gapps/","http://goo-inside.me/google-apps/","http://android.d3xt3r01.tk/cyanogen/gapps/"] MIRRORS=["http://goo-inside.me/gapps/","http://android.d3xt3r01.tk/cyanogen/gapps/","http://android.local.host.name/gapps/"]
def device(): def device():
print "usage: get-google-files -m [method] -v [version]" print "usage: get-google-files -m [method] -v [version]"
@ -49,7 +49,7 @@ def download(version):
def main(): def main():
parser = OptionParser(usage="usage: %prog [options]") parser = OptionParser(usage="usage: %prog [options]")
parser.add_option("-m", "--method", dest='method', default="download", help="Extraction Method: download") parser.add_option("-m", "--method", dest='method', default="download", help="Extraction Method: download")
parser.add_option("-v", "--version", dest='version', default="hdpi", help="GApps Version: hdpi, mdpi, mdpi-tiny [default: hdpi]") parser.add_option("-v", "--version", dest='version', default="gb", help="GApps Version: gb, gb-tegra, hdpi, mdpi, mdpi-tiny, tegra, cm5hdpi, cm5mdpi, cm4 [default: gb]")
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
if options.method == "device": if options.method == "device":