mailos 0.1.69 → 0.1.73
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/mailos-darwin-amd64
CHANGED
|
Binary file
|
package/bin/mailos-darwin-arm64
CHANGED
|
Binary file
|
package/bin/mailos-linux-amd64
CHANGED
|
Binary file
|
package/bin/mailos-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -48,8 +48,30 @@ function install() {
|
|
|
48
48
|
fs.chmodSync(targetBinary, '755');
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
// Create emailOS alias
|
|
52
|
+
console.log('Creating emailOS alias...');
|
|
53
|
+
const aliasExt = isWindows ? '.exe' : '';
|
|
54
|
+
const aliasBinary = path.join(__dirname, '..', 'bin', `emailOS${aliasExt}`);
|
|
55
|
+
|
|
56
|
+
try {
|
|
57
|
+
if (isWindows) {
|
|
58
|
+
// On Windows, copy the file to create alias
|
|
59
|
+
fs.copyFileSync(targetBinary, aliasBinary);
|
|
60
|
+
} else {
|
|
61
|
+
// On Unix systems, create symlink
|
|
62
|
+
if (fs.existsSync(aliasBinary)) {
|
|
63
|
+
fs.unlinkSync(aliasBinary);
|
|
64
|
+
}
|
|
65
|
+
fs.symlinkSync(`${BINARY_NAME}${sourceExt}`, aliasBinary);
|
|
66
|
+
}
|
|
67
|
+
fs.chmodSync(aliasBinary, '755');
|
|
68
|
+
console.log(`✓ Created emailOS alias -> ${BINARY_NAME}`);
|
|
69
|
+
} catch (error) {
|
|
70
|
+
console.warn(`⚠️ Warning: Could not create emailOS alias: ${error.message}`);
|
|
71
|
+
}
|
|
72
|
+
|
|
51
73
|
console.log(`✓ ${BINARY_NAME} installed successfully!`);
|
|
52
|
-
console.log('Run "mailos help" to get started.');
|
|
74
|
+
console.log('Run "mailos help" or "emailOS help" to get started.');
|
|
53
75
|
|
|
54
76
|
} catch (error) {
|
|
55
77
|
console.error('Installation failed:', error.message);
|
package/scripts/uninstall.js
CHANGED
|
@@ -7,11 +7,13 @@ const readline = require('readline');
|
|
|
7
7
|
|
|
8
8
|
const binPath = path.join(__dirname, '..', 'bin', 'mailos');
|
|
9
9
|
const binPathWin = path.join(__dirname, '..', 'bin', 'mailos.exe');
|
|
10
|
+
const aliasPath = path.join(__dirname, '..', 'bin', 'emailOS');
|
|
11
|
+
const aliasPathWin = path.join(__dirname, '..', 'bin', 'emailOS.exe');
|
|
10
12
|
|
|
11
13
|
console.log('🗑️ EmailOS Uninstallation');
|
|
12
14
|
console.log('========================');
|
|
13
15
|
console.log();
|
|
14
|
-
console.log('Removing EmailOS binary...');
|
|
16
|
+
console.log('Removing EmailOS binary and aliases...');
|
|
15
17
|
|
|
16
18
|
try {
|
|
17
19
|
if (fs.existsSync(binPath)) {
|
|
@@ -20,7 +22,13 @@ try {
|
|
|
20
22
|
if (fs.existsSync(binPathWin)) {
|
|
21
23
|
fs.unlinkSync(binPathWin);
|
|
22
24
|
}
|
|
23
|
-
|
|
25
|
+
if (fs.existsSync(aliasPath)) {
|
|
26
|
+
fs.unlinkSync(aliasPath);
|
|
27
|
+
}
|
|
28
|
+
if (fs.existsSync(aliasPathWin)) {
|
|
29
|
+
fs.unlinkSync(aliasPathWin);
|
|
30
|
+
}
|
|
31
|
+
console.log('✓ Binary and aliases removed');
|
|
24
32
|
} catch (error) {
|
|
25
33
|
console.error('Binary cleanup failed:', error.message);
|
|
26
34
|
}
|