gazectl 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/bin/gazectl +9 -2
  2. package/package.json +1 -1
package/bin/gazectl CHANGED
@@ -6,8 +6,15 @@ VENV_DIR="$GAZECTL_DIR/venv"
6
6
  MODEL_FILE="$GAZECTL_DIR/face_landmarker.task"
7
7
  MODEL_URL="https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task"
8
8
 
9
- # Find the gazectl.py script (relative to this bin script)
10
- SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
9
+ # Resolve symlinks to find actual package directory
10
+ # (npm symlinks bin scripts from node_modules/.bin/)
11
+ SOURCE="${BASH_SOURCE[0]}"
12
+ while [ -L "$SOURCE" ]; do
13
+ DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
14
+ SOURCE="$(readlink "$SOURCE")"
15
+ [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
16
+ done
17
+ SCRIPT_DIR="$(cd "$(dirname "$SOURCE")/.." && pwd)"
11
18
  GAZECTL_PY="$SCRIPT_DIR/gazectl.py"
12
19
  REQUIREMENTS="$SCRIPT_DIR/requirements.txt"
13
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gazectl",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Head tracking display focus switcher for macOS + Aerospace",
5
5
  "bin": {
6
6
  "gazectl": "bin/gazectl"