add version to fastboot.js library path
This commit is contained in:
parent
7262cb5733
commit
747020407b
@ -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"
|
||||
|
@ -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>
|
||||
|
@ -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"],
|
||||
},
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user