openmemo 0.2.0 → 0.2.1

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/openmemo CHANGED
@@ -25,14 +25,14 @@ BIN_PKG="openmemo-${PLATFORM}"
25
25
 
26
26
  # Try to find the binary in node_modules (global install structure)
27
27
  # Path 1: Global install - binary package is a sibling in node_modules
28
- GLOBAL_BIN="$PKG_DIR/../$BIN_PKG/openmemo"
28
+ GLOBAL_BIN="$PKG_DIR/../$BIN_PKG/openmemo-${PLATFORM}"
29
29
 
30
30
  # Path 2: Local install - binary package is in package's node_modules
31
- LOCAL_BIN="$PKG_DIR/node_modules/$BIN_PKG/openmemo"
31
+ LOCAL_BIN="$PKG_DIR/node_modules/$BIN_PKG/openmemo-${PLATFORM}"
32
32
 
33
33
  # Windows executable paths
34
- GLOBAL_BIN_EXE="$PKG_DIR/../$BIN_PKG/openmemo.exe"
35
- LOCAL_BIN_EXE="$PKG_DIR/node_modules/$BIN_PKG/openmemo.exe"
34
+ GLOBAL_BIN_EXE="$PKG_DIR/../$BIN_PKG/openmemo-${PLATFORM}.exe"
35
+ LOCAL_BIN_EXE="$PKG_DIR/node_modules/$BIN_PKG/openmemo-${PLATFORM}.exe"
36
36
 
37
37
  # Try each path
38
38
  if [ -x "$GLOBAL_BIN" ]; then
@@ -28,9 +28,9 @@ const pkgName = `openmemo-${os}-${cpu}`;
28
28
  const ext = os === "windows" ? ".exe" : "";
29
29
 
30
30
  // Check global install path (sibling package)
31
- const globalPath = join(__dirname, "..", "..", pkgName, `openmemo${ext}`);
31
+ const globalPath = join(__dirname, "..", "..", pkgName, `openmemo-${os}-${cpu}${ext}`);
32
32
  // Check local install path
33
- const localPath = join(__dirname, "..", "node_modules", pkgName, `openmemo${ext}`);
33
+ const localPath = join(__dirname, "..", "node_modules", pkgName, `openmemo-${os}-${cpu}${ext}`);
34
34
 
35
35
  if (existsSync(globalPath) || existsSync(localPath)) {
36
36
  console.log(`[openmemo] Binary found for ${os}-${cpu}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmemo",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "OpenTUI-based memo app inspired by mattn/memo",
5
5
  "bin": {
6
6
  "openmemo": "bin/openmemo"
@@ -34,9 +34,9 @@
34
34
  "postinstall": "node bin/postinstall.mjs"
35
35
  },
36
36
  "optionalDependencies": {
37
- "openmemo-darwin-arm64": "0.2.0",
38
- "openmemo-linux-x64": "0.2.0",
39
- "openmemo-linux-arm64": "0.2.0",
40
- "openmemo-windows-x64": "0.2.0"
37
+ "openmemo-darwin-arm64": "0.2.1",
38
+ "openmemo-linux-x64": "0.2.1",
39
+ "openmemo-linux-arm64": "0.2.1",
40
+ "openmemo-windows-x64": "0.2.1"
41
41
  }
42
42
  }