File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,8 @@ export function nodePlatformToDartPlatform(platform: string): DartPlatform {
35
35
case 'android' :
36
36
return 'android' ;
37
37
case 'linux' :
38
- return 'linux' ;
39
38
case 'linux-musl' :
40
- return 'linux-musl ' ;
39
+ return 'linux' ;
41
40
case 'darwin' :
42
41
return 'macos' ;
43
42
case 'win32' :
@@ -168,13 +167,15 @@ void (async () => {
168
167
const nodeArch = argv . package . substring ( index + 1 ) ;
169
168
const dartPlatform = nodePlatformToDartPlatform ( nodePlatform ) ;
170
169
const dartArch = nodeArchToDartArch ( nodeArch ) ;
170
+ const isMusl = nodePlatform === 'linux-musl' ;
171
171
const outPath = p . join ( 'npm' , argv . package ) ;
172
172
await downloadRelease ( {
173
173
repo : 'dart-sass' ,
174
174
assetUrl :
175
175
'https://github.com/sass/dart-sass/releases/download/' +
176
176
`${ version } /dart-sass-${ version } -` +
177
- `${ dartPlatform } -${ dartArch } ${ getArchiveExtension ( dartPlatform ) } ` ,
177
+ `${ dartPlatform } -${ dartArch } ${ isMusl ? '-musl' : '' } ` +
178
+ `${ getArchiveExtension ( dartPlatform ) } ` ,
178
179
outPath,
179
180
} ) ;
180
181
await patchLauncherScript ( outPath , dartPlatform , dartArch ) ;
You can’t perform that action at this time.
0 commit comments