diff --git a/install_linux.sh b/install_linux.sh index c7fd81d..8aedfc8 100644 --- a/install_linux.sh +++ b/install_linux.sh @@ -90,18 +90,18 @@ source $config_file # 进入安装目录 cd /opt/QQ/resources/app/app_launcher -# 修改index.json -echo "正在修补index.json..." +# 修改index.js +echo "正在修补index.js..." # 检查是否已存在相同的修改 if grep -q "require('/opt/QQ/resources/app/LiteLoader');" index.js; then - echo "index.json 已包含相同的修改,无需再次修改。" + echo "index.js 已包含相同的修改,无需再次修改。" else # 如果不存在,则进行修改 sudo sed -i '' -e "1i\\ require('/opt/QQ/resources/app/LiteLoader');\ " -e '$a\' index.js - echo "已修补 index.json。" + echo "已修补 index.js。" fi echo "安装完成!脚本将在3秒后退出..." diff --git a/install_mac.sh b/install_mac.sh index 4a2b144..432a0d0 100755 --- a/install_mac.sh +++ b/install_mac.sh @@ -64,18 +64,18 @@ fi # 进入安装目录 cd /Applications/QQ.app/Contents/Resources/app/app_launcher -# 修改index.json -echo "正在修补index.json..." +# 修改index.js +echo "正在修补index.js..." # 检查是否已存在相同的修改 if grep -q "require('$HOME/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader');" index.js; then - echo "index.json 已包含相同的修改,无需再次修改。" + echo "index.js 已包含相同的修改,无需再次修改。" else # 如果不存在,则进行修改 sudo sed -i '' -e "1i\\ require('$HOME/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader');\ " -e '$a\' index.js - echo "已修补 index.json。" + echo "已修补 index.js。" fi echo "安装完成!脚本将在3秒后退出..." diff --git a/install_mac_launchd.sh b/install_mac_launchd.sh index aa538e9..d04b8ae 100755 --- a/install_mac_launchd.sh +++ b/install_mac_launchd.sh @@ -67,18 +67,18 @@ launchctl setenv LITELOADERQQNT_PROFILE $pluginsDir # 进入安装目录 cd /Applications/QQ.app/Contents/Resources/app/app_launcher -# 修改index.json -echo "正在修补index.json..." +# 修改index.js +echo "正在修补index.js..." # 检查是否已存在相同的修改 if grep -q "require('$HOME/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader');" index.js; then - echo "index.json 已包含相同的修改,无需再次修改。" + echo "index.js 已包含相同的修改,无需再次修改。" else # 如果不存在,则进行修改 sudo sed -i '' "1i\\ require('$HOME/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader');\ " index.js - echo "已修补 index.json。" + echo "已修补 index.js。" fi echo "安装完成!脚本将在3秒后退出..." diff --git a/install_windows.py b/install_windows.py index 99c7abe..3ba969d 100644 --- a/install_windows.py +++ b/install_windows.py @@ -181,8 +181,8 @@ def main(): # 进入安装目录 os.chdir(app_launcher_path) - # 修改index.json - print("正在修补index.json...") + # 修改index.js + print("正在修补index.js...") index_path = os.path.join(app_launcher_path, "index.js") with open(index_path, "r+") as f: content = f.read()