@jdxcode/mise 2024.9.4 → 2024.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/installArchSpecificPackage.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ Install mise (other methods [here](https://mise.jdx.dev/getting-started.html)):
|
|
|
36
36
|
```sh-session
|
|
37
37
|
$ curl https://mise.run | sh
|
|
38
38
|
$ ~/.local/bin/mise --version
|
|
39
|
-
2024.9.
|
|
39
|
+
2024.9.5 macos-arm64 (a1b2d3e 2024-09-17)
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
or install a specific a version:
|
|
@@ -6,10 +6,10 @@ function installArchSpecificPackage(version) {
|
|
|
6
6
|
|
|
7
7
|
process.env.npm_config_global = 'false';
|
|
8
8
|
|
|
9
|
-
var platform = process.platform == 'win32' ? '
|
|
10
|
-
var arch = platform == '
|
|
9
|
+
var platform = process.platform == 'win32' ? 'windows' : process.platform;
|
|
10
|
+
var arch = platform == 'windows' && process.arch == 'ia32' ? 'x86' : process.arch;
|
|
11
11
|
|
|
12
|
-
var cp = spawn(platform == '
|
|
12
|
+
var cp = spawn(platform == 'windows' ? 'npm.cmd' : 'npm', ['install', '--no-save', ['@jdxcode/mise', platform, arch].join('-') + '@' + version], {
|
|
13
13
|
stdio: 'inherit',
|
|
14
14
|
shell: true
|
|
15
15
|
});
|
|
@@ -30,7 +30,7 @@ function installArchSpecificPackage(version) {
|
|
|
30
30
|
|
|
31
31
|
linkSync(bin, path.resolve(process.cwd(), executable));
|
|
32
32
|
|
|
33
|
-
if (platform == '
|
|
33
|
+
if (platform == 'windows') {
|
|
34
34
|
var pkg = JSON.parse(fs.readFileSync(path.resolve(process.cwd(), 'package.json')));
|
|
35
35
|
fs.writeFileSync(path.resolve(process.cwd(), 'bin/mise'), 'This file intentionally left blank');
|
|
36
36
|
pkg.bin.mise = 'bin/mise.exe';
|