Skip to content

Commit faff663

Browse files
committed
fix: add apt-fast optimizations
1 parent da1971d commit faff663

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

dist/legacy/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/modern/setup-cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/setup-apt/src/apt-fast.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,15 @@ async function setupAptFastViaInstaller() {
4848
const installerPath = join(tmpdir(), "install-apt-fast.sh")
4949

5050
// Patch the installer script to not use sudo explicitly
51-
const script = await readFile(installerPath, "utf8")
52-
await writeFile(installerPath, script.replace(/sudo/g, ""))
51+
let script = await readFile(installerPath, "utf8")
52+
script = script
53+
.replace(/sudo/g, "")
54+
.replace(
55+
"https://raw.githubusercontent.com/ilikenwf/apt-fast/master",
56+
"https://raw.githubusercontent.com/Rongronggg9/apt-fast/ac82051792f764220e5e303d4560de0f1952826b",
57+
)
58+
59+
await writeFile(installerPath, script)
5360

5461
await depP
5562

0 commit comments

Comments
 (0)