パッケージ型
概要
パッケージ型の簡単な作成方法
パッケージ型について
ZIPファイルなどの形式で固めたものをインストールする方式
手順
ディレクトリを準備
パッケージ型には最低index.htmlとマニフェストファイルを準備する
index.html
manifest.webapp
{
"name": "サンプル1",
"description": "はじめてのFirefox OSアプリ",
"launch_path": "/index.html",
"icons": {
"16": "/images/icon-16.png",
"48": "/images/icon-48.png",
"128": "/images/icon-128.png",
"256": "/images/icon-256.png"
},
"developer": {
"name": "Shigeharu Matsumoto",
"url": "http://www29.atwiki.jp/m_shige1979/pages/1.html"
},
"default_locale": "ja"
}
あとはなんかアイコン用の画像ファイルなどを用意してディレクトリに準備
Firefoxでシミュレータの画面を起動し、「Add Directory」を指定
マニフェストファイルを選択する
登録完了
シミュレータで起動
最終更新:2013年07月14日 20:57