Exemple #1
0
    sys.exit(1)
elif BUILD_PARAMETERS.pkgarch and not BUILD_PARAMETERS.pkgarch in PKG_ARCHS:
    print "Wrong pkg-arch, only support: %s, exit ..." % PKG_ARCHS
    sys.exit(1)

app_name = "CrosswalkVersion"
pkg_name = "com.example.crosswalkVersion1"
current_path_tmp = os.getcwd()
project_path = os.path.join(current_path_tmp, app_name)
comm.create(app_name, pkg_name, current_path_tmp)

main_version = comm.CROSSWALK_VERSION.split('.')[0]

latestVersion = ''
if comm.CROSSWALK_BRANCH == "stable" or comm.CROSSWALK_BRANCH == "beta":
    latestVersion = comm.getLatestCrosswalkVersion(comm.CROSSWALK_BRANCH,
                                                   main_version)

pkg_mode_tmp = "shared"
pkg_arch_tmp = "x86"

if BUILD_PARAMETERS.pkgmode == "embedded":
    pkg_mode_tmp = "core"

if BUILD_PARAMETERS.pkgarch == "arm":
    pkg_arch_tmp = "armv7"

VERSION_TYPES = []
EXCEPTED_VERSIONS = []
if comm.CROSSWALK_BRANCH == "beta":
    VERSION_TYPES = ["org.xwalk:xwalk_%s_library_beta:%s+" % (pkg_mode_tmp, main_version), \
        "org.xwalk:xwalk_%s_library_beta:%s" % (pkg_mode_tmp, comm.CROSSWALK_VERSION)]
    sys.exit(1)
elif BUILD_PARAMETERS.pkgarch and not BUILD_PARAMETERS.pkgarch in PKG_ARCHS:
    print "Wrong pkg-arch, only support: %s, exit ..." % PKG_ARCHS
    sys.exit(1)

app_name = "CrosswalkVersion"
pkg_name = "com.example.crosswalkVersion1"
current_path_tmp = os.getcwd()
project_path = os.path.join(current_path_tmp, app_name)
comm.create(app_name, pkg_name, current_path_tmp)

main_version = comm.CROSSWALK_VERSION.split('.')[0]

latestVersion = ''
if comm.CROSSWALK_BRANCH == "stable" or comm.CROSSWALK_BRANCH == "beta":
    latestVersion = comm.getLatestCrosswalkVersion(comm.CROSSWALK_BRANCH, main_version)

pkg_mode_tmp = "shared"
apk_name_arch = "-"
pack_arch_tmp = "arm"
if BUILD_PARAMETERS.pkgmode == "embedded":
    pkg_mode_tmp = "core"
    apk_name_arch = "-armv7-"
    if BUILD_PARAMETERS.pkgarch and BUILD_PARAMETERS.pkgarch != "arm":
        apk_name_arch = "-%s-" % BUILD_PARAMETERS.pkgarch
        if BUILD_PARAMETERS.pkgarch == "x86":
            pack_arch_tmp = "x86"
        elif BUILD_PARAMETERS.pkgarch == "x86_64":
            pack_arch_tmp = "x86 --xwalk64bit"
        elif BUILD_PARAMETERS.pkgarch == "arm64":
            pack_arch_tmp = "arm --xwalk64bit"