mirror of https://github.com/aminya/setup-cpp.git
Merge pull request #402 from aminya/faster-fast-apt
fix: add apt-fast optimizations
This commit is contained in:
commit
464f3a00d5
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
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue