openmux 0.2.91 → 0.2.92

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/bin/openmux +4 -0
  2. package/package.json +1 -1
package/bin/openmux CHANGED
@@ -160,6 +160,9 @@ if [[ -z "$PKG_JSON" ]]; then
160
160
  if [[ ! -f "$BIN_DIR/bunfig.toml" ]]; then
161
161
  echo "# openmux runtime config (empty - preload already compiled in)" > "$BIN_DIR/bunfig.toml"
162
162
  fi
163
+ if [[ -f "$BIN_DIR/.version" ]]; then
164
+ export OPENMUX_VERSION="$(cat "$BIN_DIR/.version")"
165
+ fi
163
166
  export ZIG_PTY_LIB="${ZIG_PTY_LIB:-$BIN_DIR/libzig_pty.$LIB_EXT}"
164
167
  # cd to BIN_DIR to avoid reading user's bunfig.toml
165
168
  cd "$BIN_DIR"
@@ -192,5 +195,6 @@ fi
192
195
 
193
196
  # Set library path, cd to BIN_DIR to avoid user's bunfig.toml, and execute
194
197
  export ZIG_PTY_LIB="${ZIG_PTY_LIB:-$BIN_DIR/libzig_pty.$LIB_EXT}"
198
+ export OPENMUX_VERSION="$VERSION"
195
199
  cd "$BIN_DIR"
196
200
  exec "./openmux-bin" "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmux",
3
- "version": "0.2.91",
3
+ "version": "0.2.92",
4
4
  "description": "Terminal multiplexer with master-stack tiling layout",
5
5
  "module": "src/index.tsx",
6
6
  "type": "module",