feat: add KaiOS manifest file (#1528)

This commit is contained in:
Nolan Lawson 2019-09-24 00:50:42 -07:00 committed by GitHub
parent 1bbe2a5612
commit 3a2fe740c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View file

@ -19,6 +19,7 @@ const assets = __assets__
.filter(filename => !filename.endsWith('.map')) .filter(filename => !filename.endsWith('.map'))
.filter(filename => filename !== '/robots.txt') .filter(filename => filename !== '/robots.txt')
.filter(filename => !filename.includes('traineddata.gz')) // Tesseract already caches it in IDB .filter(filename => !filename.includes('traineddata.gz')) // Tesseract already caches it in IDB
.filter(filename => !filename.endsWith('.webapp')) // KaiOS manifest
// `shell` is an array of all the files generated by webpack // `shell` is an array of all the files generated by webpack
// also contains '/index.html' for some reason // also contains '/index.html' for some reason

37
static/manifest.webapp Normal file
View file

@ -0,0 +1,37 @@
{
"version": "1.0.0",
"name": "Pinafore",
"description": "Mastodon client",
"type": "web",
"launch_path": "/",
"icons": {
"48": "/icon-48.png",
"72": "/icon-72.png",
"96": "/icon-96.png"
},
"developer": {
"name": "Nolan Lawson",
"url": "https://nolanlawson.com"
},
"locales": {
"en-US": {
"name": "Pinafore",
"subtitle": "Mastodon client",
"description": "Mastodon client, focused on speed and simplicity."
}
},
"default_locale": "en-US",
"permissions": {
"serviceworker": {
"description": "Needed for offline storage and notifications."
},
"desktop-notification": {
"description": "Needed for notifications."
}
},
"messages": [
{
"serviceworker-notification": "/"
}
]
}