@@ -10,6 +10,10 @@ if [ -n "$GITHUB_ACTIONS" ]; then
10
10
for dir in " nekoray" " v2ray-core" " sing-box-extra" " sing-box" " libneko" " Xray-core" ; do
11
11
[ -d " $dir " ] && rm -rf " $dir "
12
12
done
13
+ else
14
+ if ! rmdir nekoray v2ray-core sing-box-extra sing-box libneko Xray-core 2> /dev/null; then
15
+ echo " clean and ready..."
16
+ fi
13
17
fi
14
18
15
19
# Clone or update repositories with a function
@@ -29,11 +33,7 @@ clone_or_update_repo() {
29
33
30
34
# Array to store repository URLs
31
35
repos=(" nekoray=https://github.com/MatsuriDayo/nekoray.git"
32
- " v2ray-core=https://github.com/MatsuriDayo/v2ray-core.git"
33
- " sing-box-extra=https://github.com/MatsuriDayo/sing-box-extra.git"
34
- " sing-box=https://github.com/MatsuriDayo/sing-box.git"
35
- " libneko=https://github.com/MatsuriDayo/libneko.git"
36
- " Xray-core=https://github.com/MatsuriDayo/Xray-core.git" )
36
+ " v2ray-core=https://github.com/MatsuriDayo/v2ray-core.git" )
37
37
38
38
# Clone or update repositories using the function
39
39
for repo_info in " ${repos[@]} " ; do
70
70
export PATH=" /usr/local/opt/qt@5/bin:$PATH "
71
71
export LDFLAGS=" -L/usr/local/opt/qt@5/lib"
72
72
export CPPFLAGS=" -I/usr/local/opt/qt@5/include"
73
- export PKG_CONFIG_PATH=" /usr/local/opt/qt@5/lib/pkgconfig"
73
+ export QT_QPA_PLATFORM_PLUGIN_PATH=" /usr/local/opt/qt@5/plugins"
74
+ # export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig"
74
75
75
76
# Install macdeployqt for macOS
76
77
check_and_install " macdeployqt" " qt@5"
@@ -114,7 +115,7 @@ curl -fLso "$nApp/Contents/MacOS/geoip.db" "https://github.com/SagerNet/sing-geo
114
115
curl -fLso " $nApp /Contents/MacOS/geosite.db" " https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db"
115
116
116
117
# Copy fa_IR.qm and zh_CN.qm to nekoray.app/Contents/MacOS
117
- for file in " fa_IR.qm" " zh_CN.qm" ; do
118
+ for file in " fa_IR.qm" " zh_CN.qm" " ru_RU.qm " ; do
118
119
cp " $nPath /build/$file " " $nApp /Contents/MacOS"
119
120
done
120
121
0 commit comments