lenix 1.0.4 → 1.0.5

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.
@@ -1,17 +1,14 @@
1
1
  #!/bin/bash
2
2
 
3
- # Detect actual shell
4
- SHELL_CONFIG="${HOME}/.bashrc"
5
-
6
- if [[ "$SHELL" == *"zsh"* ]]; then
3
+ if [ -n "$ZSH_VERSION" ]; then
7
4
  SHELL_CONFIG="${HOME}/.zshrc"
8
- elif [[ "$SHELL" == *"bash"* ]]; then
9
- # Bash needs .bash_profile to source .bashrc
5
+ elif [ -n "$BASH_VERSION" ]; then
10
6
  SHELL_CONFIG="${HOME}/.bashrc"
11
7
  PROFILE_CONFIG="${HOME}/.bash_profile"
8
+ else
9
+ SHELL_CONFIG="${HOME}/.profile"
12
10
  fi
13
11
 
14
- # Create shell config if it doesn't exist
15
12
  touch "$SHELL_CONFIG"
16
13
 
17
14
  echo "===================================="
@@ -34,7 +31,7 @@ if [[ ! $REPLY =~ ^[Yy]$ ]]; then
34
31
  fi
35
32
 
36
33
  if grep -q "# Lua local modules setup" "$SHELL_CONFIG"; then
37
- echo "⚠️ Already installed in $SHELL_CONFIG"
34
+ echo " Already installed in $SHELL_CONFIG"
38
35
  echo "Installation aborted."
39
36
  exit 0
40
37
  fi
@@ -46,9 +43,9 @@ echo 'export LUA_PATH="./lua_modules/share/lua/5.4/?.lua;./lua_modules/share/lua
46
43
  echo 'export LUA_CPATH="./lua_modules/lib/lua/5.4/?.so;;"' >> "$SHELL_CONFIG"
47
44
  echo '# Lua local modules end.' >> "$SHELL_CONFIG"
48
45
 
49
- # For bash, ensure .bash_profile sources .bashrc
50
- if [[ "$SHELL" == *"bash"* ]] && [ -n "$PROFILE_CONFIG" ]; then
51
- if [ ! -f "$PROFILE_CONFIG" ] || ! grep -q "source.*bashrc" "$PROFILE_CONFIG"; then
46
+ if [ -n "$BASH_VERSION" ] && [ -n "$PROFILE_CONFIG" ]; then
47
+ touch "$PROFILE_CONFIG"
48
+ if ! grep -q "source.*bashrc" "$PROFILE_CONFIG"; then
52
49
  echo '' >> "$PROFILE_CONFIG"
53
50
  echo '# Source .bashrc' >> "$PROFILE_CONFIG"
54
51
  echo 'if [ -f ~/.bashrc ]; then source ~/.bashrc; fi' >> "$PROFILE_CONFIG"
@@ -58,12 +55,12 @@ fi
58
55
  source "$SHELL_CONFIG" 2>/dev/null || true
59
56
 
60
57
  echo ""
61
- echo "✓ Setup complete!"
62
- echo "✓ Added to: $SHELL_CONFIG"
58
+ echo "Setup complete!"
59
+ echo "Added to: $SHELL_CONFIG"
63
60
  echo ""
64
- echo "📦 Usage:"
61
+ echo "Usage:"
65
62
  echo " luarocks install --tree ./lua_modules <package>"
66
63
  echo ""
67
- echo "⚠️ IMPORTANT: Restart your terminal for changes to take effect"
64
+ echo " IMPORTANT: Restart your terminal for changes to take effect"
68
65
  echo ""
69
66
  echo "To undo, remove lines containing '# Lua local modules setup' from $SHELL_CONFIG"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lenix",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "author": "Lenix",
6
6
  "license": "GPL-3.0",
@@ -23,13 +23,13 @@
23
23
  "dist",
24
24
  "bin"
25
25
  ],
26
+ "scripts": {
27
+ "build": "tsc -p src/fxmanifest/tsconfig.json"
28
+ },
26
29
  "devDependencies": {
27
30
  "typescript": "^5.3.3"
28
31
  },
29
32
  "dependencies": {
30
33
  "@types/node": "^20.7.1"
31
- },
32
- "scripts": {
33
- "build": "tsc -p src/fxmanifest/tsconfig.json"
34
34
  }
35
- }
35
+ }