forked from tindy2013/stairspeedtest-reborn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Windows Autobuild CI (tindy2013#91)
* Add Windows x64 Build to Actions Clean up build scripts. * Add build-time dependency Fix v2ray release package name. * Fix CURL library usage in CMakeLists Fix wrong package name. * Fix typo * Fix wrong clients install path * Change order of dependency builds * Fix libev-mingw download URL * Use another download URL of libev * Fix typo * Add CFLAGS for stack protector * Add unzip package install * Clean up scripts Fix websocketd not found on building Windows clients. Fix v2ray-plugin unpack failed on building Linux ARMHF clients. * Add Windows Build to Travis CI Add Windows x86 Build to Actions. Clean up scripts. * Rename calling clients Add downloading Shadowsocks(R)-Windows clients. * Add build for icon resource on Windows * Fix dependency problem Fix stripping websocketd will break the program.
- Loading branch information
Showing
10 changed files
with
307 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@echo off | ||
chcp 65001>nul | ||
title Stair Speedtest Web GUI Backend | ||
setlocal enabledelayedexpansion | ||
start http://127.0.0.1:65430/gui.html | ||
tools\gui\websocketd --port=65430 --maxforks=1 --staticdir=tools\gui stairspeedtest /rpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
#!/bin/bash | ||
set -xe | ||
mkdir base/tools/clients | ||
|
||
curl -LO https://github.com/shadowsocks/libev/archive/mingw.tar.gz | ||
tar xvf mingw.tar.gz | ||
cd libev-mingw | ||
./configure --prefix=$MINGW_PREFIX | ||
make install -j4 | ||
cd .. | ||
|
||
git clone https://github.com/shadowsocks/simple-obfs --depth=1 | ||
cd simple-obfs | ||
git submodule update --init | ||
./autogen.sh | ||
./configure --disable-documentation | ||
make -j4 | ||
gcc $(find src/ -name "obfs_local-*.o") $(find . -name "*.a" ! -name "*.dll.a") -o simple-obfs -fstack-protector -static -lev -lws2_32 -s | ||
mv simple-obfs.exe ../base/tools/clients/ | ||
cd .. | ||
|
||
git clone https://github.com/shadowsocks/shadowsocks-libev --depth=1 | ||
cd shadowsocks-libev | ||
git submodule update --init | ||
./autogen.sh | ||
./configure --disable-documentation | ||
|
||
# fix codes | ||
sed -i "s/%I/%z/g" src/utils.h | ||
|
||
make -j4 | ||
gcc $(find src/ -name "ss_local-*.o") $(find . -name "*.a" ! -name "*.dll.a") -o ss-local -fstack-protector -static -lev -lws2_32 -lsodium -lmbedtls -lmbedcrypto -lpcre | ||
mv ss-local.exe ../base/tools/clients/ | ||
cd .. | ||
|
||
git clone -b Akkariiin/develop --single-branch --depth=1 https://github.com/shadowsocksrr/shadowsocksr-libev | ||
cd shadowsocksr-libev | ||
|
||
# build ahead to reconfigure | ||
cd libudns | ||
./autogen.sh | ||
./configure | ||
make -j4 | ||
cd .. | ||
|
||
./autogen.sh | ||
CFLAGS+="-fstack-protector" ./configure --disable-documentation | ||
|
||
# fix codes | ||
sed -i "s/^const/extern const/g" src/tls.h | ||
sed -i "s/^const/extern const/g" src/http.h | ||
|
||
make -j4 | ||
gcc $(find src/ -name "ss_local-*.o") $(find . -name "*.a" ! -name "*.dll.a") -o ssr-local -fstack-protector -static -lpcre -lssl -lcrypto -lev -lws2_32 -s | ||
mv ssr-local.exe ../base/tools/clients/ | ||
cd .. | ||
|
||
git clone https://github.com/trojan-gfw/trojan --depth=1 | ||
cd trojan | ||
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 | ||
mv trojan.exe ../base/tools/clients/ | ||
cd .. | ||
|
||
if [[ "$MSYSTEM" = "MINGW64" ]];then | ||
curl -LO https://github.com/v2ray/v2ray-core/releases/latest/download/v2ray-windows-64.zip | ||
curl -LO https://github.com/joewalnes/websocketd/releases/download/v0.3.1/websocketd-0.3.1-windows_amd64.zip | ||
curl -LO https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.1/v2ray-plugin-windows-amd64-v1.3.1.tar.gz | ||
fi | ||
if [[ "$MSYSTEM" = "MINGW32" ]];then | ||
curl -LO https://github.com/v2ray/v2ray-core/releases/latest/download/v2ray-windows-32.zip | ||
curl -LO https://github.com/joewalnes/websocketd/releases/download/v0.3.1/websocketd-0.3.1-windows_386.zip | ||
curl -LO https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.1/v2ray-plugin-windows-386-v1.3.1.tar.gz | ||
fi | ||
|
||
curl -LO https://github.com/shadowsocks/shadowsocks-windows/releases/download/4.1.10.0/Shadowsocks-4.1.10.0.zip | ||
unzip Shadowsocks-4.1.10.0.zip Shadowsocks.exe | ||
mv Shadowsocks.exe base/tools/clients/shadowsocks-win.exe | ||
|
||
curl -LO https://github.com/shadowsocksrr/shadowsocksr-csharp/releases/download/4.9.2/ShadowsocksR-win-4.9.2.zip | ||
7z x ShadowsocksR-win-4.9.2.zip ShadowsocksR-win-4.9.2/ShadowsocksR-dotnet2.0.exe | ||
mv ShadowsocksR-win-4.9.2/ShadowsocksR-dotnet2.0.exe base/tools/clients/shadowsocksr-win.exe | ||
|
||
unzip v2ray*.zip v2ray.exe v2ctl.exe | ||
unzip websocketd*.zip websocketd | ||
tar xvf v2ray-plugin*.gz | ||
rm v2ray-plugin*.gz | ||
mv v2ray-plugin* base/tools/clients/v2ray-plugin.exe | ||
mv v2ray.exe v2ctl.exe base/tools/clients/ | ||
mv websocketd base/tools/gui/websocketd.exe | ||
|
||
set +xe |
Oops, something went wrong.