Skip to content

Commit 32a8dfe

Browse files
authored
Update for cli_pkg 2.8.0 (#272)
1 parent 6944074 commit 32a8dfe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tool/prepare-optional-release.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ export function nodePlatformToDartPlatform(platform: string): DartPlatform {
3535
case 'android':
3636
return 'android';
3737
case 'linux':
38-
return 'linux';
3938
case 'linux-musl':
40-
return 'linux-musl';
39+
return 'linux';
4140
case 'darwin':
4241
return 'macos';
4342
case 'win32':
@@ -168,13 +167,15 @@ void (async () => {
168167
const nodeArch = argv.package.substring(index + 1);
169168
const dartPlatform = nodePlatformToDartPlatform(nodePlatform);
170169
const dartArch = nodeArchToDartArch(nodeArch);
170+
const isMusl = nodePlatform === 'linux-musl';
171171
const outPath = p.join('npm', argv.package);
172172
await downloadRelease({
173173
repo: 'dart-sass',
174174
assetUrl:
175175
'https://github.com/sass/dart-sass/releases/download/' +
176176
`${version}/dart-sass-${version}-` +
177-
`${dartPlatform}-${dartArch}${getArchiveExtension(dartPlatform)}`,
177+
`${dartPlatform}-${dartArch}${isMusl ? '-musl' : ''}` +
178+
`${getArchiveExtension(dartPlatform)}`,
178179
outPath,
179180
});
180181
await patchLauncherScript(outPath, dartPlatform, dartArch);

0 commit comments

Comments
 (0)