Skip to content

Commit 5bfac58

Browse files
edwardrfedw-defang
andauthored
Track nodejs download and remove old winget pkg file (#636)
* Track nodejs download and remove old winget pkg file * Fix dayifu.net -> defang.io --------- Co-authored-by: Edward J <[email protected]>
1 parent b11dfd9 commit 5bfac58

File tree

4 files changed

+1
-53
lines changed

4 files changed

+1
-53
lines changed

pkgs/npm/src/clilib.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ async function getLatestVersion(): Promise<string> {
2828
}
2929

3030
async function downloadAppArchive(
31-
version: string,
3231
archiveFilename: string,
3332
outputPath: string
3433
): Promise<string | null> {
35-
const repo = "DefangLabs/defang";
36-
const downloadUrl = `https://github.com/${repo}/releases/download/v${version}/${archiveFilename}`;
34+
const downloadUrl = `https://s.defang.io/${archiveFilename}?x-defang-source=npm`;
3735
const downloadTargetFile = path.join(outputPath, archiveFilename);
3836

3937
return await downloadFile(downloadUrl, downloadTargetFile);
@@ -291,7 +289,6 @@ export async function install(
291289
const filename = getAppArchiveFilename(version, os.platform, os.arch);
292290

293291
const archiveFile = await downloadAppArchive(
294-
version,
295292
filename,
296293
saveDirectory
297294
);

pkgs/winget/DefangLabs.defang.installer.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

pkgs/winget/DefangLabs.defang.locale.en-US.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

pkgs/winget/DefangLabs.defang.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)