symfluence 0.5.8 → 0.7.0

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.
Files changed (2) hide show
  1. package/lib/platform.js +7 -6
  2. package/package.json +1 -2
package/lib/platform.js CHANGED
@@ -2,12 +2,11 @@
2
2
  * Platform detection and mapping for SYMFLUENCE binaries
3
3
  */
4
4
 
5
- // Mapping from Node.js platform/arch to SYMFLUENCE release naming
5
+ // Mapping from Node.js platform/arch to SYMFLUENCE release naming.
6
+ // Only platforms with pre-built binaries in CI (linux-x86_64, macos-arm64).
6
7
  const PLATFORM_MAP = {
7
8
  'darwin-arm64': 'macos-arm64',
8
- 'darwin-x64': 'macos-x64', // Currently not supported, but reserved
9
9
  'linux-x64': 'linux-x86_64',
10
- 'linux-arm64': 'linux-aarch64', // Future support
11
10
  };
12
11
 
13
12
  /**
@@ -21,10 +20,12 @@ function getPlatform() {
21
20
  const key = `${platform}-${arch}`;
22
21
 
23
22
  if (!PLATFORM_MAP[key]) {
23
+ const name = getPlatformName();
24
24
  throw new Error(
25
- `Unsupported platform: ${platform} ${arch}\n` +
26
- `Supported platforms: ${Object.keys(PLATFORM_MAP).join(', ')}\n` +
27
- `Please file an issue at: https://github.com/DarriEy/SYMFLUENCE/issues`
25
+ `Unsupported platform: ${name} (${platform} ${arch})\n` +
26
+ `Pre-built binaries are available for: Linux x86_64, macOS Apple Silicon\n` +
27
+ `You can build from source instead: symfluence binary install\n` +
28
+ `See: https://github.com/DarriEy/SYMFLUENCE/blob/main/docs/SYSTEM_REQUIREMENTS.md`
28
29
  );
29
30
  }
30
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "symfluence",
3
- "version": "0.5.8",
3
+ "version": "0.7.0",
4
4
  "description": "Structure for Unifying Multiple Modeling Alternatives - Pre-compiled hydrological modeling tools",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -41,7 +41,6 @@
41
41
  "bugs": {
42
42
  "url": "https://github.com/DarriEy/SYMFLUENCE/issues"
43
43
  },
44
- "preferGlobal": true,
45
44
  "files": [
46
45
  "bin/",
47
46
  "lib/",