2013-10-14 15 views
0

我manifest.webapp:如何爲Firefox OS配置APP圖標?

"icons": { 
    "30": "img/icon_30.png", 
    "60": "img/icon_60.png" 
}, 

但是圖標沒有在Firefox OS模擬器顯示。我的應用程序託管在Github頁面上。如果域名必須是頂級域名,我懷疑模擬器中顯示的圖標。

請給我一個正確的配置示例,如果我的域沒有問題。謝謝你的答案。

回答

1

嘗試從項目的根目錄中爲圖標寫入整個路徑。例如,如果你的項目的文件夾被稱爲「程序hello_world」(讓你的GitHub項目是http://github.com/user/hello_world),你會寫:

"icons": { 
    "30": "/hello_world/img/icon_30.png", 
    "60": "/hello_world/img/icon_60.png" 
} 

我希望這有助於。

+0

但是'launch_path'應該是什麼? – Tychio

+0

'launch_path'應該像'/ hello_world /' – alefteris

+0

這是工作!謝謝!但我必須添加manifest.webapp而不是URL。 – Tychio

相關問題