specmem-hardwicksoftware 3.5.19 → 3.5.20
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.
Potentially problematic release.
This version of specmem-hardwicksoftware might be problematic. Click here for more details.
package/package.json
CHANGED
|
@@ -30,6 +30,40 @@ const isGlobalInstall = process.env.npm_config_global === 'true' ||
|
|
|
30
30
|
process.env.npm_lifecycle_event === 'postinstall' &&
|
|
31
31
|
!__dirname.includes(process.cwd());
|
|
32
32
|
|
|
33
|
+
// ============================================================================
|
|
34
|
+
// PLATFORM CHECK - Linux only for now
|
|
35
|
+
// ============================================================================
|
|
36
|
+
const currentPlatform = require('os').platform();
|
|
37
|
+
if (currentPlatform === 'win32') {
|
|
38
|
+
console.log('\n\x1b[31m╔════════════════════════════════════════════════════════════╗\x1b[0m');
|
|
39
|
+
console.log('\x1b[31m║\x1b[0m \x1b[1m\x1b[31m⚠ SPECMEM IS LINUX-ONLY (for now)\x1b[0m \x1b[31m║\x1b[0m');
|
|
40
|
+
console.log('\x1b[31m╠════════════════════════════════════════════════════════════╣\x1b[0m');
|
|
41
|
+
console.log('\x1b[31m║\x1b[0m \x1b[31m║\x1b[0m');
|
|
42
|
+
console.log('\x1b[31m║\x1b[0m Windows support coming soon! \x1b[31m║\x1b[0m');
|
|
43
|
+
console.log('\x1b[31m║\x1b[0m \x1b[31m║\x1b[0m');
|
|
44
|
+
console.log('\x1b[31m║\x1b[0m Options: \x1b[31m║\x1b[0m');
|
|
45
|
+
console.log('\x1b[31m║\x1b[0m • Use WSL2 (Windows Subsystem for Linux) \x1b[31m║\x1b[0m');
|
|
46
|
+
console.log('\x1b[31m║\x1b[0m • Use a Linux VM or Docker container \x1b[31m║\x1b[0m');
|
|
47
|
+
console.log('\x1b[31m║\x1b[0m • Use a Linux VPS \x1b[31m║\x1b[0m');
|
|
48
|
+
console.log('\x1b[31m║\x1b[0m \x1b[31m║\x1b[0m');
|
|
49
|
+
console.log('\x1b[31m╚════════════════════════════════════════════════════════════╝\x1b[0m\n');
|
|
50
|
+
process.exit(0);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (currentPlatform === 'darwin') {
|
|
54
|
+
console.log('\n\x1b[33m╔════════════════════════════════════════════════════════════╗\x1b[0m');
|
|
55
|
+
console.log('\x1b[33m║\x1b[0m \x1b[1m\x1b[33m⚠ MACOS SUPPORT IS EXPERIMENTAL\x1b[0m \x1b[33m║\x1b[0m');
|
|
56
|
+
console.log('\x1b[33m╠════════════════════════════════════════════════════════════╣\x1b[0m');
|
|
57
|
+
console.log('\x1b[33m║\x1b[0m \x1b[33m║\x1b[0m');
|
|
58
|
+
console.log('\x1b[33m║\x1b[0m SpecMem is primarily developed for Linux. \x1b[33m║\x1b[0m');
|
|
59
|
+
console.log('\x1b[33m║\x1b[0m Some features may not work correctly on macOS. \x1b[33m║\x1b[0m');
|
|
60
|
+
console.log('\x1b[33m║\x1b[0m \x1b[33m║\x1b[0m');
|
|
61
|
+
console.log('\x1b[33m║\x1b[0m Proceeding with installation... \x1b[33m║\x1b[0m');
|
|
62
|
+
console.log('\x1b[33m║\x1b[0m \x1b[33m║\x1b[0m');
|
|
63
|
+
console.log('\x1b[33m╚════════════════════════════════════════════════════════════╝\x1b[0m\n');
|
|
64
|
+
// Continue with install but warn
|
|
65
|
+
}
|
|
66
|
+
|
|
33
67
|
if (!isGlobalInstall) {
|
|
34
68
|
console.log('\n\x1b[33m╔════════════════════════════════════════════════════════════╗\x1b[0m');
|
|
35
69
|
console.log('\x1b[33m║\x1b[0m \x1b[1m\x1b[31m⚠ SPECMEM MUST BE INSTALLED GLOBALLY\x1b[0m \x1b[33m║\x1b[0m');
|