File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ installing engines to make eshost automatically find the installed engines.
44
44
| [ QuickJS] [ ] | ` quickjs ` , ` quickjs-run-test262 ` | ✅ | | ✅ | ✅ | ✅ | ✅ |
45
45
| [ SpiderMonkey] [ ] | ` sm ` , ` spidermonkey ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
46
46
| [ V8] [ ] | ` v8 ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
47
- | [ XS] [ ] | ` xs ` | ✅ | | ✅ | ✅ | ✅ | ✅ |
47
+ | [ XS] [ ] | ` xs ` | ✅ | | ✅ | ✅ | | ✅ |
48
48
49
49
Some binaries may be exposed as batch/shell scripts to properly handling shared library loading. Some binaries on
50
50
64-bit systems may be natively 32-bit.
Original file line number Diff line number Diff line change @@ -6,17 +6,19 @@ const execa = require('execa');
6
6
const Installer = require ( '../installer' ) ;
7
7
const { platform, unzip } = require ( '../common' ) ;
8
8
9
- function getFilename ( ) {
9
+ function getFilename ( version ) {
10
10
switch ( platform ) {
11
11
case 'darwin-x64' :
12
12
return 'mac' ;
13
13
case 'linux-ia32' :
14
14
return 'lin32' ;
15
15
case 'linux-x64' :
16
16
return 'lin64' ;
17
- case 'win32-ia32' :
18
17
case 'win32-x64' :
19
- return 'win' ;
18
+ if ( parseInt ( version , 10 ) < 11 ) {
19
+ return 'win' ;
20
+ }
21
+ return 'win64' ;
20
22
default :
21
23
throw new Error ( `No XS builds available for ${ platform } ` ) ;
22
24
}
@@ -39,7 +41,7 @@ class XSInstaller extends Installer {
39
41
}
40
42
41
43
getDownloadURL ( version ) {
42
- return `https://github.com/Moddable-OpenSource/moddable-xst/releases/download/v${ version } /xst-${ getFilename ( ) } .zip` ;
44
+ return `https://github.com/Moddable-OpenSource/moddable-xst/releases/download/v${ version } /xst-${ getFilename ( version ) } .zip` ;
43
45
}
44
46
45
47
extract ( ) {
@@ -71,7 +73,7 @@ XSInstaller.config = {
71
73
id : 'xs' ,
72
74
supported : [
73
75
'linux-ia32' , 'linux-x64' ,
74
- 'win32-ia32' , 'win32- x64',
76
+ 'win32-x64' ,
75
77
'darwin-x64' ,
76
78
] ,
77
79
} ;
You can’t perform that action at this time.
0 commit comments