日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

Crosswalk Project for Linux

發布時間:2023/12/20 linux 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Crosswalk Project for Linux 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

原文實在太慢,轉載到這里方便訪問。

Crosswalk Project for Linux

The Crosswalk Project for Linux enables the creation of Linux desktop applications using web technologies. It is based on the Chromium content layer and its integration with the Linux desktop UI.

As with other platforms, the Crosswalk Project for Linux supports advanced Web APIs like WebGL, WebRTC, WebAudio, ServiceWorker, SIMD and Web Manifest.

This distribution includes a .deb package of the Crosswalk runtime and a backend for the crosswalk-app-tools command line suite to package Crosswalk applications for Debian Linux. The Crosswalk package is tested on Ubuntu 14.04 and Deepin Linux 2014.2

Downloading and Installing Crosswalk Project for Linux

Download the Crosswalk deb package from https://download.01.org/crosswalk/releases/crosswalk/linux/deb/

Double click to open the deb file and start installing Crosswalk using the system software manager (you may need to input your administrator password).

Alternatively, you can directly use sudo dpkg -i crosswalk_xxx.deb to install it from the command line.

Running a Crosswalk application

The simplest way to start a Crosswalk application is to use the xwalk command with the application’s manifest as argument:

$ xwalk /path/to/manifest.json

Crosswalk will parse the manifest and launch the application from the entry point specified in start_url. Crosswalk supports both “packaged” and “hosted” applications, meaning that start_url can point either to a local file in the application folder or an external URL. See here for documentation about the Crosswalk manifest.

If the application was packaged in the XPK format, it can be launched directly with the xwalk command:

$ xwalk /path/to/app.xpk

Finally, if the application was packaged as a .deb package (see next section) it can be installed with dpkg and launched from its desktop icon or by invoking its name from the command line.

##Packaging a web application

Package as .xpk To package a Crosswalk application as an XPK package, follow the instructions in https://github.com/crosswalk-project/crosswalk-website/wiki/Crosswalk-package-management#xpk-package-generator-python-version

The XPK package can be launched directly with the xwalk command (see the previous section)

Package as .deb To package a Crosswalk application as a deb package, you’ll need to use the crosswalk-app-tools CLI suite and its debian backend. Follow the instructions in https://github.com/crosswalk-project/crosswalk-app-tools-deb to install the backend, and package the application with the command crosswalk-app build.

Note: crosswalk-app-tools does not yet support multiple backends. Once you install the .deb backend, you will only be able to create .deb packages until it is removed. You may want to keep multiple copies of crosswalk-app-tools to build for multiple platforms.

Other notes and instructions

The “devscripts” and “debhelper” packages are needed to create debian packages with crosswalk-app-tools.

Crosswalk follows the W3C manifest specification. In particular, if no display member is specified in the manifest, Crosswalk will use minimal-ui as the default value and will display simple navigation controls with the application. To remove them, you need to explicitly specify “display”: “standalone” or “display”: “fullscreen” in the manifest.

When launching an application, Crosswalk will display the error

[0630/233246:ERROR:browser_main_loop.cc(185)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.

This is because the suid sandbox is not enabled in Crosswalk (see https://crosswalk-project.org/jira/browse/XWALK-3839). It has no effect on the application, and as such the error can be safely ignored.

If you want to dig deeper into Crosswalk for Linux, the links below might prove useful:

  • Building Crosswalk: https://crosswalk-project.org/contribute/building_crosswalk.html
  • Contributing to Crosswalk: https://crosswalk-project.org/contribute/contributing-code.html
  • Implementing Extensions: https://github.com/crosswalk-project/crosswalk-website/wiki/Crosswalk-Extensions

總結

以上是生活随笔為你收集整理的Crosswalk Project for Linux的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。