Skip to content

Commit

Permalink
Update for cli_pkg 2.8.0 (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Feb 20, 2024
1 parent 6944074 commit 32a8dfe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tool/prepare-optional-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ export function nodePlatformToDartPlatform(platform: string): DartPlatform {
case 'android':
return 'android';
case 'linux':
return 'linux';
case 'linux-musl':
return 'linux-musl';
return 'linux';
case 'darwin':
return 'macos';
case 'win32':
Expand Down Expand Up @@ -168,13 +167,15 @@ void (async () => {
const nodeArch = argv.package.substring(index + 1);
const dartPlatform = nodePlatformToDartPlatform(nodePlatform);
const dartArch = nodeArchToDartArch(nodeArch);
const isMusl = nodePlatform === 'linux-musl';
const outPath = p.join('npm', argv.package);
await downloadRelease({
repo: 'dart-sass',
assetUrl:
'https://github.com/sass/dart-sass/releases/download/' +
`${version}/dart-sass-${version}-` +
`${dartPlatform}-${dartArch}${getArchiveExtension(dartPlatform)}`,
`${dartPlatform}-${dartArch}${isMusl ? '-musl' : ''}` +
`${getArchiveExtension(dartPlatform)}`,
outPath,
});
await patchLauncherScript(outPath, dartPlatform, dartArch);
Expand Down

0 comments on commit 32a8dfe

Please sign in to comment.