Skip to content

Commit a9c8272

Browse files
committed
remove win32 from xs
1 parent c968bcf commit a9c8272

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

4949
Some binaries may be exposed as batch/shell scripts to properly handling shared library loading. Some binaries on
5050
64-bit systems may be natively 32-bit.

src/engines/xs.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ const execa = require('execa');
66
const Installer = require('../installer');
77
const { 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
};

0 commit comments

Comments
 (0)