Version 3 (modified by jazz, 13 years ago) (diff) |
---|
2012-03-11
Development of Google Chrome Apps
- [參考] How To Create Your Own Chrome Web Apps
- [小目標] 嘗試做一個 hadoop.nchc.org.tw 的 Chrome App,根據定位應該比較偏向「線上網頁應用程式(Hosted App)」。
- 首先,準備一個 128x128 的圖檔 128.png 當 logo
- 接著,產生一個 manifest.json
~$ mkdir hadoop.tw ~$ cd hadoop.tw ~/hadoop.tw$ cat >> manifest.json << EOF { "name": "Hadoop 實驗叢集", "description": "提供使用者一個連上 hadoop.nchc.org.tw 的 Chrome Hosted App", "version": "0.0.1", "icons": { "128": "128.png" }, "app": { "urls": [ "https://hadoop.nchc.org.tw/" ], "launch": { "web_url": "https://hadoop.nchc.org.tw/", "container": "tab" } } } EOF
- 開啟 Chrome 瀏覽器的「工具」->「擴充功能」,勾選「開發人員模式」,選擇剛剛建立的 hadoop.tw 目錄,就會看到類似底下的結果:
Attachments (5)
- 128.png (20.9 KB) - added by jazz 13 years ago.
- hadoop_chrome_app.png (67.6 KB) - added by jazz 13 years ago.
- new-tab.png (55.7 KB) - added by jazz 13 years ago.
- chrome_crx.png (25.6 KB) - added by jazz 13 years ago.
- hadoop.tw.crx (21.7 KB) - added by jazz 13 years ago.
Download all attachments as: .zip