use GrapheneOS fastboot.js fork

This commit is contained in:
Daniel Micay
2022-08-27 19:04:45 -04:00
parent fc17535db0
commit 450b3048ce
9 changed files with 9 additions and 9 deletions
-3
View File
@@ -1,3 +0,0 @@
[submodule "static/js/fastboot"]
path = static/js/fastboot
url = https://github.com/kdrag0n/fastboot.js
-2
View File
@@ -30,8 +30,6 @@ cp -a nginx nginx-tmp
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.1.1
for file in static-tmp/**/*.@(json|webmanifest); do
json_verify < "$file" >/dev/null
+1 -1
View File
@@ -28,7 +28,7 @@
<link rel="manifest" href="/manifest.webmanifest"/>
<link rel="license" href="/LICENSE.txt"/>
{{js|/js/redirect.js}}
<script type="module" src="/js/fastboot/v1.1.1/fastboot.min.mjs" integrity="sha256-OXtHjW8CO7yw1L2Od6fGK7WVTCMl7Zghu24DZDNCBjI="></script>
<script type="module" src="/js/fastboot/dfcb7800/fastboot.min.mjs" integrity="sha256-HJ9CCo8xOjAIvY5WWwG/5kOsq1KcDcYGzgy3jb2N2hE="></script>
{{js|/js/web-install.js}}
</head>
<body>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,6 +1,6 @@
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT
import * as fastboot from "./fastboot/v1.1.1/fastboot.min.mjs";
import * as fastboot from "./fastboot/dfcb7800/fastboot.min.mjs";
const RELEASES_URL = "https://releases.grapheneos.org";
@@ -325,7 +325,7 @@ fastboot.setDebugLevel(2);
fastboot.configureZip({
workerScripts: {
inflate: ["/js/fastboot/v1.1.1/vendor/z-worker-pako.js", "pako_inflate.min.js"],
inflate: ["/js/fastboot/dfcb7800/vendor/z-worker-pako.js", "pako_inflate.min.js"],
},
});