This repository serves as a placeholder of chrome demos for Chrome rebase testing.
The simple way to use the demos is to access to the GitHub pages at http://honry.github.io/demo/
Based on the Crosswalk Project, one can build an installable web application for Android platforms following these steps:
-
Download Crosswalk Project for Android package (
.zip
) from https://download.01.org/crosswalk/releases/crosswalk/android/:wget url/to/android/canary/18.46.471.0/crosswalk-18.46.471.0.zip
-
Clone Crosswalk-app-tools:
git clone https://github.com/crosswalk-project/crosswalk-app-tools.git
-
Set Environment variables:
vim .bashrc export CROSSWALK_APP_TOOLS_CACHE_DIR=path/to/crosswalk/directory export PATH=path/to/crosswalk-app-tool/src:$PATH
-
Go to crosswalk-app-tools directory:
cd path/to/crosswalk-app-tools
-
Install crosswalk-app-tools:
sudo npm install
-
Clone demo:
git clone https://github.com/honry/demo.git
-
Go to the parent directory of demo
cd path/to/parent/directory/of/demo
-
Create APK package as follows:
crosswalk-pkg --crosswalk=path/to/crosswalk/android/crosswalk-18.46.471.0.zip demo/
This will produce two apk files, one for x86 architecture and one for ARM. The apk files will end up in the parent directory of the application. Each file is given the name by append "xwalk_package_id", "xwalk_app_version" in the manifest, and an architecture identifier ("x86" or "arm"). For this demo, the output files are
org.chrome.demo-0.1-debug.armabi-v7a.apk
andorg.chrome.demo-0.1-debug.x86.apk
.
Build an installable web application for Windows platforms following these steps:
-
Download Crosswalk Project for Windows package (
.zip
) from https://download.01.org/crosswalk/releases/crosswalk/windows/ -
Install crosswalk-app-tools:
npm install -g crosswalk-app-tools
-
Clone demo:
git clone https://github.com/honry/demo.git
-
Go to the parent directory of demo
-
Create MSI file as follows:
crosswalk-pkg --crosswalk=path\to\crosswalk\windows\crosswalk-18.46.468.0.zip --platforms=windows demo\
This will produce a msi file, it will end up in the parent directory of the application.
-
Install the application on windows:
Double click the msi file to install.