Exemplo n.º 1
0
 def test_pack(self):
     comm.setUp()
     app_name = "Simd"
     app_url = "http://peterjensen.github.io/mandelbrot/js/mandelbrot-xdk.html"
     cmd = "python %smake_apk.py --package=org.xwalk.%s --name=%s --app-url=%s --arch=%s --mode=%s --enable-remote-debugging" % \
     (comm.pack_tools, app_name.lower(), app_name, app_url, comm.ARCH, comm.MODE)
     comm.pack(cmd, app_name, self)
Exemplo n.º 2
0
 def test_1_pack(self):
     # clean up old apk
     commands.getstatusoutput("rm %s%s*" % (comm.build_app_dest, "org.xwalk." + app_name.lower()))
     manifest_json = ""
     if not os.path.exists(sample_src + "manifest.json"):
         manifest_opt = {}
         manifest_opt["icons"] = [
             {"src": "icon_32.png", "sizes": "32x32"},
             {"src": "icon_64.png", "sizes": "64x64"},
             {"src": "icon_128.png", "sizes": "128x128"},
             {"src": "icon_256.png", "sizes": "256x256"},
         ]
         manifest_opt["xwalk_package_id"] = package_name
         manifest_opt["xwalk_app_version"] = "0.0.1"
         manifest_opt["start_url"] = "index.html"
         manifest_opt["name"] = "HexGL"
         manifest_opt = json.JSONEncoder().encode(manifest_opt)
         manifest_json = "--manifest='%s'" % manifest_opt
     cmd = "%s --crosswalk=%s %s --platforms=android --android=%s --targets=%s --enable-remote-debugging %s" % (
         comm.apptools,
         comm.crosswalkzip,
         manifest_json,
         comm.MODE,
         comm.ARCH,
         sample_src,
     )
     comm.pack(cmd, app_name.lower(), self)
Exemplo n.º 3
0
 def test_1_pack(self):
     #clean up old apk
     commands.getstatusoutput("rm %s%s*" % (comm.build_app_dest, "org.xwalk." + app_name.lower()))
     manifest_json = ""
     if not os.path.exists(sample_src + "manifest.json"):
         manifest_opt = {}
         manifest_opt["icons"] = [{"src":"icon_32.png","sizes":"32x32"},
                                  {"src":"icon_64.png","sizes":"64x64"},
                                  {"src":"icon_128.png","sizes":"128x128"},
                                  {"src":"icon_256.png","sizes":"256x256"}
                                 ]
         manifest_opt["xwalk_package_id"] = package_name
         manifest_opt["xwalk_app_version"] = "0.0.1"
         manifest_opt["start_url"] = "index.html"
         manifest_opt["name"] = "HexGL"
         manifest_opt = json.JSONEncoder().encode(manifest_opt)
         manifest_json = "--manifest='%s'" % manifest_opt
     cmd = "%s --crosswalk=%s %s --platforms=android --android=%s --targets=%s --enable-remote-debugging %s" % \
         (comm.apptools,
          comm.crosswalkzip,
          manifest_json,
          comm.MODE,
          comm.ARCH,
          sample_src)
     comm.pack(cmd, app_name.lower(), self)
Exemplo n.º 4
0
 def test_pack(self):
     comm.setUp()
     app_name = "Sysapps"
     sample_src = "/SysApps_DeviceCapabilities/src/"
     manifest_file = comm.sample_src_pref + sample_src + "manifest.json"
     cmd = "python %smake_apk.py --package=org.xwalk.%s --manifest=%s --arch=%s --mode=%s --enable-remote-debugging" % \
     (comm.pack_tools, app_name.lower(), manifest_file, comm.ARCH, comm.MODE)
     comm.pack(cmd, app_name, self)
Exemplo n.º 5
0
 def test_pack(self):
     comm.setUp()
     app_name = "Sysapps"
     sample_src = "/SysApps_DeviceCapabilities/src/"
     manifest_file = comm.sample_src_pref + sample_src + "manifest.json" 
     cmd = "python %smake_apk.py --package=org.xwalk.%s --manifest=%s --arch=%s --mode=%s --enable-remote-debugging" % \
     (comm.pack_tools, app_name.lower(), manifest_file, comm.ARCH, comm.MODE)
     comm.pack(cmd, app_name, self)
Exemplo n.º 6
0
 def test_pack(self):
     comm.setUp()
     #memorygame, hexgl,hangoman
     app_name = "Hangonman"
     sample_src = "/HangOnMan/src/app/"
     app_root = comm.sample_src_pref + sample_src
     cmd = "python %smake_apk.py --package=org.xwalk.%s --name=%s --app-root=%s --app-local-path=%s --arch=%s --mode=%s --enable-remote-debugging" % \
     (comm.pack_tools, app_name.lower(), app_name, app_root, comm.index_path, comm.ARCH, comm.MODE)
     comm.pack(cmd, app_name, self)
 def test_pack(self):
     comm.setUp()
     #memorygame, hexgl,hangoman
     app_name = "Memorygame"
     sample_src = "/MemoryGame/src/"
     app_root = comm.sample_src_pref + sample_src 
     cmd = "python %smake_apk.py --package=org.xwalk.%s --name=%s --app-root=%s --app-local-path=%s --arch=%s --mode=%s --enable-remote-debugging" % \
     (comm.pack_tools, app_name.lower(), app_name, app_root, comm.index_path, comm.ARCH, comm.MODE)
     comm.pack(cmd, app_name, self)
Exemplo n.º 8
0
 def test_pack(self):
     comm.setUp()
     app_name = "Webrtc"
     sample_src = "/webrtc/client/"
     manifest_file = comm.sample_src_pref + sample_src + "manifest.json"
     cmd = (
         "python %smake_apk.py --package=org.xwalk.%s --manifest=%s --arch=%s --mode=%s --enable-remote-debugging"
         % (comm.pack_tools, app_name.lower(), manifest_file, comm.ARCH, comm.MODE)
     )
     comm.pack(cmd, app_name, self)
Exemplo n.º 9
0
 def test_pack(self):
     comm.setUp()
     app_name = "Webgl"
     sample_src = comm.sample_src_pref + "webgl/"
     cmd = "%s --crosswalk=%s --platforms=android --android=%s --targets=%s --enable-remote-debugging %s" % \
         (comm.apptools,
          comm.crosswalkzip,
          comm.MODE,
          comm.ARCH,
          sample_src)
     comm.pack(cmd, app_name.lower(), self)
Exemplo n.º 10
0
    def test_1_pack(self):
        #clean up old apk
        commands.getstatusoutput("rm %s%s*" % (comm.build_app_dest, "org.xwalk." + app_name.lower()))

        cmd = "%s --crosswalk=%s --platforms=android --android=%s --targets=%s --enable-remote-debugging %s" % \
            (comm.apptools,
             comm.crosswalkzip,
             comm.MODE,
             comm.ARCH,
             sample_src)
        comm.pack(cmd, app_name.lower(), self)
Exemplo n.º 11
0
    def test_1_pack(self):
        #clean up old apk
        commands.getstatusoutput("rm %s%s*" % (comm.build_app_dest, "org.xwalk." + app_name.lower()))

        cmd = "%s --crosswalk=%s --platforms=android --android=%s --targets=%s --enable-remote-debugging %s" % \
            (comm.apptools,
             comm.crosswalkzip,
             comm.MODE,
             comm.ARCH,
             sample_src)
        comm.pack(cmd, app_name.lower(), self)
Exemplo n.º 12
0
 def test_pack(self):
     comm.setUp()
     app_name = "Webgl"
     sample_src = "/webgl/"
     manifest_file = comm.sample_src_pref + sample_src + "manifest.json"
     cmd = "python %smake_apk.py --package=org.xwalk.%s --manifest=%s --app-versionCode=1 --arch=%s --mode=%s --enable-remote-debugging" % \
         (comm.pack_tools,
          app_name.lower(),
          manifest_file,
          comm.ARCH,
          comm.MODE)
     comm.pack(cmd, app_name, self)
 def test_pack(self):
     comm.setUp()
     app_name = "Helloworld"
     sample_src = "hello-world/"
     app_root = comm.sample_src_pref + sample_src
     cmd = "%s --crosswalk=%s --platforms=android --android=%s --targets=%s --enable-remote-debugging %s" % \
         (comm.apptools,
          comm.crosswalkzip,
          comm.MODE,
          comm.ARCH,
          app_root)
     comm.pack(cmd, app_name.lower(), self)
Exemplo n.º 14
0
 def test_1_pack(self):
     #clean up old apk
     commands.getstatusoutput("rm %s%s*" % (comm.build_app_dest, "org.xwalk." + app_name.lower()))
     #copy new manifest.json to replace old one
     shutil.copyfile(sample_src + "../manifest.json", sample_src + "manifest.json")
     cmd = "%s --crosswalk=%s --platforms=android --android=%s --targets=%s --enable-remote-debugging %s" % \
         (comm.apptools,
          comm.crosswalkzip,
          comm.MODE,
          comm.ARCH,
          sample_src)
     comm.pack(cmd, app_name.lower(), self)
Exemplo n.º 15
0
 def test_pack(self):
     comm.setUp()
     app_name = "Simd"
     sample_src = "/simd-mandelbrot/"
     manifest_file = comm.sample_src_pref + sample_src + "manifest.json"
     cmd = "python %smake_apk.py --package=org.xwalk.%s --manifest=%s --app-versionCode=1 --arch=%s --mode=%s --enable-remote-debugging" % \
         (comm.pack_tools,
          app_name.lower(),
          manifest_file,
          comm.ARCH,
          comm.MODE)
     comm.pack(cmd, app_name, self)
Exemplo n.º 16
0
 def test_pack(self):
     comm.setUp()
     #memorygame, hexgl,hangoman
     app_name = "Hexgl"
     sample_src = "HexGL/assets/www/"
     app_root = comm.sample_src_pref + sample_src
     cmd = "%s --crosswalk=%s --platforms=android --android=%s --targets=%s --enable-remote-debugging %s" % \
         (comm.apptools,
          comm.crosswalkzip,
          comm.MODE,
          comm.ARCH,
          app_root)
     comm.pack(cmd, app_name.lower(), self)
Exemplo n.º 17
0
 def test_pack(self):
     comm.setUp()
     #memorygame, hexgl,hangoman
     app_name = "Hangonman"
     sample_src = "HangOnMan/src/"
     app_root = comm.sample_src_pref + sample_src
     #copy new manifest.json to replace old one
     shutil.copyfile(app_root + "../manifest.json", app_root + "manifest.json")  
     cmd = "%s --crosswalk=%s --platforms=android --android=%s --targets=%s --enable-remote-debugging %s" % \
         (comm.apptools,
          comm.crosswalkzip,
          comm.MODE,
          comm.ARCH,
          app_root)
     comm.pack(cmd, app_name.lower(), self)
    def test_1_pack(self):
        #clean up old apk
        commands.getstatusoutput("rm %s%s*" % (app_dir, app_name))

        cmd = "python %smake_apk.py --package=%s --name=%s "\
        "--app-root=%s --app-local-path=%s --arch=%s --mode=%s "\
        "--enable-remote-debugging --app-versionCode=123" % \
            (comm.pack_tools,
             package_name,
             app_name,
             sample_src,
             comm.index_path,
             comm.ARCH,
             comm.MODE)
        comm.pack(cmd, app_name, self)
    def test_1_pack(self):
        #clean up old apk
        commands.getstatusoutput("rm %s%s*" % (app_dir, app_name))

        cmd = "python %smake_apk.py --package=%s --name=%s "\
        "--app-root=%s --app-local-path=%s --arch=%s --mode=%s "\
        "--enable-remote-debugging --app-versionCode=123" % \
            (comm.pack_tools,
             package_name,
             app_name,
             sample_src,
             comm.index_path,
             comm.ARCH,
             comm.MODE)
        comm.pack(cmd, app_name, self)
 def test_pack(self):
     comm.setUp()
     app_name = "Helloworld"
     sample_src = "hello-world/"
     app_root = comm.sample_src_pref + sample_src
     cmd = "python %smake_apk.py --package=org.xwalk.%s --name=%s "\
     "--app-root=%s --app-local-path=%s --arch=%s --mode=%s "\
     "--enable-remote-debugging --app-versionCode=123" % \
         (comm.pack_tools,
          app_name.lower(),
          app_name,
          app_root,
          comm.index_path,
          comm.ARCH,
          comm.MODE)
     comm.pack(cmd, app_name, self)
 def test_pack(self):
     comm.setUp()
     app_name = "Helloworld"
     sample_src = "/hello_world/"
     app_root = comm.sample_src_pref + sample_src
     cmd = "python %smake_apk.py --package=org.xwalk.%s --name=%s "\
     "--app-root=%s --app-local-path=%s --arch=%s --mode=%s "\
     "--enable-remote-debugging --app-versionCode=123" % \
         (comm.pack_tools,
          app_name.lower(),
          app_name,
          app_root,
          comm.index_path,
          comm.ARCH,
          comm.MODE)
     comm.pack(cmd, app_name, self)