Skip to content

Commit

Permalink
Update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tindy2013 committed Feb 19, 2021
1 parent 1fdcb30 commit ce4b95d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions scripts/build.alpine.clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ cd ..

git clone -b Akkariiin/develop --single-branch --depth=1 https://github.com/shadowsocksrr/shadowsocksr-libev
cd shadowsocksr-libev
# fix codes
sed -i "s/^const/extern const/g" src/tls.h
sed -i "s/^const/extern const/g" src/http.h
./autogen.sh
./configure --disable-documentation
make -j4
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.macos.clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ curl -LO https://github.com/v2fly/v2ray-core/releases/latest/download/v2ray-maco
unzip v2ray*.zip v2ray v2ctl
mv v2ray v2ctl base/tools/clients/

curl -LO https://github.com/trojan-gfw/trojan/releases/download/v1.15.1/trojan-1.15.1-macos.zip
curl -LO https://github.com/trojan-gfw/trojan/releases/download/v1.16.0/trojan-1.16.0-macos.zip
unzip trojan*.zip trojan/trojan
mv trojan/trojan base/tools/clients/

Expand Down
2 changes: 1 addition & 1 deletion scripts/build.windows.clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ cd trojan
git pull --ff-only
cmake -DMYSQL_INCLUDE_DIR="$MINGW_PREFIX/include/mysql" -G "Unix Makefiles" .
make -j4
g++ -o trojan $(find CMakeFiles/trojan.dir/src/ -name "*.obj") -static -lmysqlclient -lssl -lcrypto -lz -lws2_32 -lwsock32 -lboost_program_options-mt -lcrypt32 -lsecur32 -lshlwapi -s
g++ -o trojan $(find CMakeFiles/trojan.dir/src/ -name "*.obj") -static -lmysqlclient -lssl -lcrypto -lz -lws2_32 -lwsock32 -lboost_program_options-mt -lcrypt32 -lsecur32 -lshlwapi -lbcrypt -s
mv trojan.exe ../built/
cd ..

Expand Down

0 comments on commit ce4b95d

Please sign in to comment.