Merge pull request #402 from aminya/faster-fast-apt

fix: add apt-fast optimizations
This commit is contained in:
Amin Ya 2025-05-20 22:15:55 -07:00 committed by GitHub
commit 464f3a00d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 6 deletions

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

@ -48,8 +48,15 @@ async function setupAptFastViaInstaller() {
const installerPath = join(tmpdir(), "install-apt-fast.sh")
// Patch the installer script to not use sudo explicitly
const script = await readFile(installerPath, "utf8")
await writeFile(installerPath, script.replace(/sudo/g, ""))
let script = await readFile(installerPath, "utf8")
script = script
.replace(/sudo/g, "")
.replace(
"https://raw.githubusercontent.com/ilikenwf/apt-fast/master",
"https://raw.githubusercontent.com/Rongronggg9/apt-fast/ac82051792f764220e5e303d4560de0f1952826b",
)
await writeFile(installerPath, script)
await depP