@backtomyfuture/exchange-cli 0.1.9 → 0.1.10
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/bin/exchange-cli.js +9 -2
- package/install.js +9 -2
- package/package.json +9 -4
package/bin/exchange-cli.js
CHANGED
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
const { execFileSync } = require('child_process');
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const path = require('path');
|
|
6
|
-
const { ensureDarwinArm64RuntimeLayout } = require('./runtime-layout');
|
|
7
6
|
|
|
8
7
|
const PLATFORM_PACKAGES = {
|
|
9
8
|
'darwin-arm64': '@backtomyfuture/exchange-cli-darwin-arm64',
|
|
9
|
+
'darwin-x64': '@backtomyfuture/exchange-cli-darwin-x64',
|
|
10
|
+
'linux-x64': '@backtomyfuture/exchange-cli-linux-x64',
|
|
11
|
+
'linux-arm64': '@backtomyfuture/exchange-cli-linux-arm64',
|
|
12
|
+
'win32-x64': '@backtomyfuture/exchange-cli-win32-x64',
|
|
13
|
+
'win32-ia32': '@backtomyfuture/exchange-cli-win32-ia32',
|
|
10
14
|
};
|
|
11
15
|
|
|
12
16
|
const platformKey = `${process.platform}-${process.arch}`;
|
|
@@ -42,7 +46,10 @@ function getBinaryPath() {
|
|
|
42
46
|
|
|
43
47
|
try {
|
|
44
48
|
const binaryPath = getBinaryPath();
|
|
45
|
-
|
|
49
|
+
if (process.platform === 'darwin') {
|
|
50
|
+
const { ensureDarwinArm64RuntimeLayout } = require('./runtime-layout');
|
|
51
|
+
ensureDarwinArm64RuntimeLayout(binaryPath);
|
|
52
|
+
}
|
|
46
53
|
execFileSync(binaryPath, process.argv.slice(2), {
|
|
47
54
|
stdio: 'inherit',
|
|
48
55
|
env: { ...process.env },
|
package/install.js
CHANGED
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
const fs = require('fs');
|
|
5
|
-
const { ensureDarwinArm64RuntimeLayout } = require('./bin/runtime-layout');
|
|
6
5
|
|
|
7
6
|
const PLATFORM_PACKAGES = {
|
|
8
7
|
'darwin-arm64': '@backtomyfuture/exchange-cli-darwin-arm64',
|
|
8
|
+
'darwin-x64': '@backtomyfuture/exchange-cli-darwin-x64',
|
|
9
|
+
'linux-x64': '@backtomyfuture/exchange-cli-linux-x64',
|
|
10
|
+
'linux-arm64': '@backtomyfuture/exchange-cli-linux-arm64',
|
|
11
|
+
'win32-x64': '@backtomyfuture/exchange-cli-win32-x64',
|
|
12
|
+
'win32-ia32': '@backtomyfuture/exchange-cli-win32-ia32',
|
|
9
13
|
};
|
|
10
14
|
|
|
11
15
|
const platformKey = `${process.platform}-${process.arch}`;
|
|
@@ -20,7 +24,10 @@ const ext = process.platform === 'win32' ? '.exe' : '';
|
|
|
20
24
|
|
|
21
25
|
try {
|
|
22
26
|
const binaryPath = require.resolve(`${pkg}/bin/exchange-cli${ext}`);
|
|
23
|
-
|
|
27
|
+
if (process.platform === 'darwin') {
|
|
28
|
+
const { ensureDarwinArm64RuntimeLayout } = require('./bin/runtime-layout');
|
|
29
|
+
ensureDarwinArm64RuntimeLayout(binaryPath, (message) => console.log(message));
|
|
30
|
+
}
|
|
24
31
|
if (process.platform !== 'win32') {
|
|
25
32
|
fs.chmodSync(binaryPath, 0o755);
|
|
26
33
|
console.log(`exchange-cli: set executable permission for ${platformKey}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backtomyfuture/exchange-cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Exchange
|
|
3
|
+
"version": "0.1.10",
|
|
4
|
+
"description": "On-premises Exchange Server CLI for email, calendar, tasks, and contacts.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"exchange-cli": "bin/exchange-cli.js"
|
|
7
7
|
},
|
|
@@ -13,12 +13,17 @@
|
|
|
13
13
|
"install.js"
|
|
14
14
|
],
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@backtomyfuture/exchange-cli-darwin-arm64": "0.1.
|
|
16
|
+
"@backtomyfuture/exchange-cli-darwin-arm64": "0.1.10",
|
|
17
|
+
"@backtomyfuture/exchange-cli-darwin-x64": "0.1.10",
|
|
18
|
+
"@backtomyfuture/exchange-cli-linux-x64": "0.1.10",
|
|
19
|
+
"@backtomyfuture/exchange-cli-linux-arm64": "0.1.10",
|
|
20
|
+
"@backtomyfuture/exchange-cli-win32-x64": "0.1.10",
|
|
21
|
+
"@backtomyfuture/exchange-cli-win32-ia32": "0.1.10"
|
|
17
22
|
},
|
|
18
23
|
"engines": {
|
|
19
24
|
"node": ">=14"
|
|
20
25
|
},
|
|
21
|
-
"keywords": ["exchange", "ews", "cli", "email", "ai-agent"
|
|
26
|
+
"keywords": ["exchange", "exchange-server", "ews", "cli", "email", "ai-agent"],
|
|
22
27
|
"license": "Apache-2.0",
|
|
23
28
|
"homepage": "https://github.com/backtomyfuture/exchange-cli#readme",
|
|
24
29
|
"repository": {
|