diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-04-11 23:25:22 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-04-11 23:25:22 -0400 |
| commit | 747020407bcf401552b472b70db0cd53acfc0557 (patch) | |
| tree | a583356a523bc2cf7afe1d422d05e9fb84f2a391 | |
| parent | 7262cb57330d6f89f28ed419c174153e3156369f (diff) | |
add version to fastboot.js library path
| -rwxr-xr-x | process_static | 1 | ||||
| -rw-r--r-- | static/install/web.html | 2 | ||||
| -rw-r--r-- | static/js/web-install.js | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/process_static b/process_static index d11e030a..ec4f7193 100755 --- a/process_static +++ b/process_static @@ -8,6 +8,7 @@ export PATH="$PWD/node_modules/.bin:$PATH" rm -rf static_tmp cp -a static static_tmp rm -rf static_tmp/js/fastboot/{!(dist),dist/!(fastboot.min.mjs|fastboot.min.mjs.map|vendor)} +mv static_tmp/js/fastboot/dist static_tmp/js/fastboot/v1.0.9 for file in static_tmp/**/*.@(json|webmanifest); do json_reformat -m < "$file" | sponge "$file" diff --git a/static/install/web.html b/static/install/web.html index db9c2e4e..6df7d5d2 100644 --- a/static/install/web.html +++ b/static/install/web.html @@ -27,7 +27,7 @@ <link rel="manifest" href="/manifest.webmanifest"/> <link rel="license" href="/LICENSE.txt"/> <script type="module" src="/js/redirect.js"></script> - <script type="module" src="/js/fastboot/dist/fastboot.min.mjs?1.0.9"></script> + <script type="module" src="/js/fastboot/v1.0.9/fastboot.min.mjs"></script> <script type="module" src="/js/web-install.js"></script> </head> <body> diff --git a/static/js/web-install.js b/static/js/web-install.js index c6b096d0..838dd6d6 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?1.0.9"; +import * as fastboot from "./fastboot/v1.0.9/fastboot.min.mjs"; const RELEASES_URL = "https://releases.grapheneos.org"; @@ -295,7 +295,7 @@ fastboot.setDebugLevel(2); fastboot.configureZip({ workerScripts: { - inflate: ["/js/fastboot/dist/vendor/z-worker-pako.js", "pako_inflate.min.js"], + inflate: ["/js/fastboot/v1.0.9/vendor/z-worker-pako.js", "pako_inflate.min.js"], }, }); |
