mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
.github
docs
script
checkVersion.cjs
copy-core.cjs
gen-version.ts
napcat-custom.bat
napcat-gc.ps1
napcat-log.ps1
napcat-utf8.bat
napcat-utf8.ps1
napcat.bat
napcat.ps1
napcat.sh
src
static
test
.editorconfig
.env.development
.env.production
.eslintrc.cjs
.gitignore
.gitmodules
LICENSE
README.md
logo.png
package.json
tsconfig.json
vite.config.ts
22 lines
408 B
Bash
22 lines
408 B
Bash
#!/bin/bash
|
|
|
|
get_script_dir() {
|
|
local script_path="${1:-$0}"
|
|
local script_dir
|
|
script_path=$(readlink -f "$script_path")
|
|
script_dir=$(dirname "$script_path")
|
|
|
|
echo "$script_dir"
|
|
}
|
|
|
|
SCRIPT_DIR=$(get_script_dir)
|
|
|
|
export ELECTRON_RUN_AS_NODE=1
|
|
|
|
if ! [ -x /opt/QQ/qq ]; then
|
|
echo "Error: /opt/QQ/qq is not executable or does not exist." >&2
|
|
exit 1
|
|
fi
|
|
|
|
/opt/QQ/qq "${SCRIPT_DIR}/napcat.mjs" "$@"
|