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
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "static/js/fastboot"]
path = static/js/fastboot
url = https://github.com/kdrag0n/fastboot.js

View File

@ -30,8 +30,6 @@ cp -a nginx nginx-tmp
rm -rf static-tmp rm -rf static-tmp
cp -a static 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 for file in static-tmp/**/*.@(json|webmanifest); do
json_verify < "$file" >/dev/null json_verify < "$file" >/dev/null

View File

@ -28,7 +28,7 @@
<link rel="manifest" href="/manifest.webmanifest"/> <link rel="manifest" href="/manifest.webmanifest"/>
<link rel="license" href="/LICENSE.txt"/> <link rel="license" href="/LICENSE.txt"/>
{{js|/js/redirect.js}} {{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}} {{js|/js/web-install.js}}
</head> </head>
<body> <body>

@ -1 +0,0 @@
Subproject commit 457f4564c30d8f251c92abd78371d2004c62fb8e

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

View File

@ -1,6 +1,6 @@
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT // @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"; const RELEASES_URL = "https://releases.grapheneos.org";
@ -325,7 +325,7 @@ fastboot.setDebugLevel(2);
fastboot.configureZip({ fastboot.configureZip({
workerScripts: { 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"],
}, },
}); });