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.
4444| [ QuickJS] [ ] | ` quickjs ` , ` quickjs-run-test262 ` | ✅ | | ✅ | ✅ | ✅ | ✅ |
4545| [ SpiderMonkey] [ ] | ` sm ` , ` spidermonkey ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
4646| [ V8] [ ] | ` v8 ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
47- | [ XS] [ ] | ` xs ` | ✅ | | ✅ | ✅ | ✅ | ✅ |
47+ | [ XS] [ ] | ` xs ` | ✅ | | ✅ | ✅ | | ✅ |
4848
4949Some binaries may be exposed as batch/shell scripts to properly handling shared library loading. Some binaries on
505064-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');
66const Installer = require ( '../installer' ) ;
77const { platform, unzip } = require ( '../common' ) ;
88
9- function getFilename ( ) {
9+ function getFilename ( version ) {
1010 switch ( platform ) {
1111 case 'darwin-x64' :
1212 return 'mac' ;
1313 case 'linux-ia32' :
1414 return 'lin32' ;
1515 case 'linux-x64' :
1616 return 'lin64' ;
17- case 'win32-ia32' :
1817 case 'win32-x64' :
19- return 'win' ;
18+ if ( parseInt ( version , 10 ) < 11 ) {
19+ return 'win' ;
20+ }
21+ return 'win64' ;
2022 default :
2123 throw new Error ( `No XS builds available for ${ platform } ` ) ;
2224 }
@@ -39,7 +41,7 @@ class XSInstaller extends Installer {
3941 }
4042
4143 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` ;
4345 }
4446
4547 extract ( ) {
@@ -71,7 +73,7 @@ XSInstaller.config = {
7173 id : 'xs' ,
7274 supported : [
7375 'linux-ia32' , 'linux-x64' ,
74- 'win32-ia32' , 'win32- x64',
76+ 'win32-x64' ,
7577 'darwin-x64' ,
7678 ] ,
7779} ;
You can’t perform that action at this time.
0 commit comments