sys.exit(1)
if not BUILD_PARAMETERS.pkgmode:
    print "Please add the -m parameter for the pkgmode"
    sys.exit(1)
elif BUILD_PARAMETERS.pkgmode and not BUILD_PARAMETERS.pkgmode in PKG_MODES:
    print "Wrong pkg-mode, only support: %s, exit ..." % PKG_MODES
    sys.exit(1)

comm.installCrosswalk(BUILD_PARAMETERS.pkgmode)
app_name = "CordovaPackage"
pkg_name = "com.example.cordovaPackage2"

current_path_tmp = os.getcwd()
cordova_android_path = os.path.join(current_path_tmp, "cordova-android")
if os.path.exists(cordova_android_path):
    comm.doRemove([cordova_android_path])
os.system("git clone https://github.com/apache/cordova-android.git")

project_path = os.path.join(current_path_tmp, app_name)
if os.path.exists(project_path):
    comm.doRemove([project_path])

os.system("cordova-android/bin/create %s %s %s" % (app_name, pkg_name, app_name))
os.chdir(project_path)
os.system("plugman install --platform android --plugin ../../../tools/cordova-plugin-crosswalk-webview/ --project .")

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

xwalk_version = "%s" % comm.CROSSWALK_VERSION
Exemple #2
0
    sys.exit(1)
elif BUILD_PARAMETERS.pkgmode and not BUILD_PARAMETERS.pkgmode in PKG_MODES:
    print "Wrong pkg mode, only support: %s, exit ..." % PKG_MODES
    sys.exit(1)
if BUILD_PARAMETERS.pkgarch and not BUILD_PARAMETERS.pkgarch in PKG_ARCH:
    print "Wrong pkg arch, only support: %s, exit ..." % PKG_ARCH
    sys.exit(1)

comm.installCrosswalk(BUILD_PARAMETERS.pkgmode, BUILD_PARAMETERS.pkgarch)
app_name = "CordovaPackage"
pkg_name = "com.example.cordovaPackage2"

current_path_tmp = os.getcwd()
project_path = os.path.join(current_path_tmp, app_name)
if os.path.exists(project_path):
    comm.doRemove([project_path])

os.system("cordova create %s %s %s" % (app_name, pkg_name, app_name))
os.chdir(project_path)
os.system("cordova platform add android")

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

xwalk_version = "%s" % comm.CROSSWALK_VERSION
if comm.CROSSWALK_BRANCH == "beta":
    xwalk_version = "org.xwalk:xwalk_%s_library_beta:%s" % (
        pkg_mode_tmp, comm.CROSSWALK_VERSION)

os.system(
    sys.exit(1)
elif BUILD_PARAMETERS.pkgmode and not BUILD_PARAMETERS.pkgmode in PKG_MODES:
    print "Wrong pkg mode, only support: %s, exit ..." % PKG_MODES
    sys.exit(1)
if BUILD_PARAMETERS.pkgarch and not BUILD_PARAMETERS.pkgarch in PKG_ARCH:
    print "Wrong pkg arch, only support: %s, exit ..." % PKG_ARCH
    sys.exit(1)

comm.installCrosswalk(BUILD_PARAMETERS.pkgmode, BUILD_PARAMETERS.pkgarch)
app_name = "CordovaPackage"
pkg_name = "com.example.cordovaPackage2"

current_path_tmp = os.getcwd()
project_path = os.path.join(current_path_tmp, app_name)
if os.path.exists(project_path):
    comm.doRemove([project_path])

os.system("cordova create %s %s %s" % (app_name, pkg_name, app_name))
os.chdir(project_path)
os.system("cordova platform add android")


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

xwalk_version = "%s" % comm.CROSSWALK_VERSION
if comm.CROSSWALK_BRANCH == "beta":
    xwalk_version = "org.xwalk:xwalk_%s_library_beta:%s" % (pkg_mode_tmp, comm.CROSSWALK_VERSION)

    sys.exit(1)
if not BUILD_PARAMETERS.pkgmode:
    print "Please add the -m parameter for the pkgmode"
    sys.exit(1)
elif BUILD_PARAMETERS.pkgmode and not BUILD_PARAMETERS.pkgmode in PKG_MODES:
    print "Wrong pkg-mode, only support: %s, exit ..." % PKG_MODES
    sys.exit(1)

comm.installCrosswalk(BUILD_PARAMETERS.pkgmode)
app_name = "CordovaPackage"
pkg_name = "com.example.cordovaPackage2"

current_path_tmp = os.getcwd()
cordova_android_path = os.path.join(current_path_tmp, "cordova-android")
if os.path.exists(cordova_android_path):
    comm.doRemove([cordova_android_path])
os.system("git clone https://github.com/apache/cordova-android.git")

project_path = os.path.join(current_path_tmp, app_name)
if os.path.exists(project_path):
    comm.doRemove([project_path])

os.system("cordova-android/bin/create %s %s %s" % (app_name, pkg_name, app_name))
os.chdir(project_path)
os.system("plugman install --platform android --plugin ../../../tools/cordova-plugin-crosswalk-webview/ --project .")

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

xwalk_version = "%s" % comm.CROSSWALK_VERSION