diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-02-17 12:33:27 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-02-17 12:36:29 -0500 |
| commit | 393121b700deed5522b00ee4f84315b706f636c0 (patch) | |
| tree | d8d986e39f74b600b35a980290543ae05ac5240e /static | |
| parent | fe077b7dd8fa46236a2c81479a83490f90822972 (diff) | |
update fastboot.js to v1.0.5
Diffstat (limited to 'static')
| -rw-r--r-- | static/install/web.html | 4 | ||||
| m--------- | static/js/fastboot | 0 | ||||
| -rw-r--r-- | static/js/web-install.js | 11 |
3 files changed, 7 insertions, 8 deletions
diff --git a/static/install/web.html b/static/install/web.html index a4694da7..70c870f5 100644 --- a/static/install/web.html +++ b/static/install/web.html @@ -27,8 +27,8 @@ <link rel="manifest" href="/manifest.webmanifest"/> <link rel="license" href="/LICENSE.txt"/> <script type="module" src="/js/redirect.js?9"></script> - <script type="module" src="/js/fastboot/dist/fastboot.min.mjs?6"></script> - <script type="module" src="/js/web-install.js?11"></script> + <script type="module" src="/js/fastboot/dist/fastboot.min.mjs?7"></script> + <script type="module" src="/js/web-install.js?12"></script> </head> <body> <header> diff --git a/static/js/fastboot b/static/js/fastboot -Subproject 9762e7777b07dcef9c0076c73476cfe69295fe7 +Subproject 7a60c4f4b7a3ea059a338ada2dcfec898883541 diff --git a/static/js/web-install.js b/static/js/web-install.js index c38eefa1..9571b49f 100644 --- a/static/js/web-install.js +++ b/static/js/web-install.js @@ -1,6 +1,6 @@ // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT -import * as fastboot from "./fastboot/dist/fastboot.min.mjs?6"; +import * as fastboot from "./fastboot/dist/fastboot.min.mjs?7"; const RELEASES_URL = "https://releases.grapheneos.org"; @@ -196,10 +196,9 @@ async function flashRelease(setProgress) { } setProgress("Flashing release..."); - await fastboot.FactoryImages.flashZip( - device, blob, true, reconnectCallback, + await device.flashFactoryZip(blob, true, reconnectCallback, (action, item, progress) => { - let userAction = fastboot.FactoryImages.USER_ACTION_MAP[action]; + let userAction = fastboot.USER_ACTION_MAP[action]; let userItem = item === "avb_custom_key" ? "verified boot key" : item; setProgress(`${userAction} ${userItem}...`, progress); } @@ -267,9 +266,9 @@ function addButtonHook(id, callback) { // This doesn't really hurt, and because this page is exclusively for web install, // we can tolerate extra logging in the console in case something goes wrong. -fastboot.setDebugMode(true); +fastboot.setDebugLevel(2); -fastboot.FactoryImages.configureZip({ +fastboot.configureZip({ workerScripts: { inflate: ["/js/fastboot/dist/vendor/z-worker-pako.js", "pako_inflate.min.js"], }, |
