electron app:

- add file association for .wacz
- support opening wacz, warc, har files via double-click from os (fixes #24)
- command line: support opening files via command line, as well as specifying --url and --ts
- support cmdline args via 'yarn run start-electron <file> --url <url> --ts <ts>'
This commit is contained in:
Ilya Kreymer
2020-10-25 09:04:40 -07:00
parent 94dbf0fd77
commit e12407983c
6 changed files with 165 additions and 119 deletions
+8 -1
View File
@@ -17,6 +17,7 @@
"lit-element": "^2.3.1",
"marked": "^1.0.0",
"mime-types": "^2.1.27",
"minimist": "^1.2.5",
"pretty-bytes": "^5.3.0",
"register-service-worker": "^1.7.1",
"split.js": "^1.6.2"
@@ -52,7 +53,7 @@
"start-prod": "http-server -p 9990",
"pack": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --publish never",
"pack-signed": "electron-builder",
"start-electron": "NODE_ENV=development electron ./dist/electron.js",
"start-electron": "NODE_ENV=development electron ./dist/electron.js $1",
"start-jekyll": "yarn run build-docs && bundle exec jekyll serve",
"dist": "yarn run build && yarn run pack",
"release": "yarn run build && electron-builder"
@@ -130,6 +131,12 @@
"name": "HAR File",
"description": "HAR File",
"role": "Viewer"
},
{
"ext": "wacz",
"name": "WACZ File",
"description": "Web Archive Collection Zipped (WACZ)",
"role": "Viewer"
}
]
}