Skip to content

Commit 2f013f5

Browse files
committed
rename exe to overtls-bin
make rust compiler happy
1 parent 1ad2cc5 commit 2f013f5

File tree

11 files changed

+22
-18
lines changed

11 files changed

+22
-18
lines changed

.github/workflows/mips-unknown-linux-gnu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: |
3434
./.github/workflows/mips-unknown-linux-gnu.sh
3535
cbindgen -c cbindgen.toml -l C --cpp-compat -o ./overtls.h
36-
zip -j release/overtls-${{ matrix.target }}.zip target/${{ matrix.target }}/release/overtls ./config.json ./overtls.h target/${{ matrix.target }}/release/libovertls.so
36+
zip -j release/overtls-${{ matrix.target }}.zip target/${{ matrix.target }}/release/overtls-bin ./config.json ./overtls.h target/${{ matrix.target }}/release/libovertls.so
3737
3838
- name: Upload
3939
uses: softprops/action-gh-release@v1

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ jobs:
6969
fi
7070
cbindgen -c cbindgen.toml -l C --cpp-compat -o ./overtls.h
7171
if [[ "${{ matrix.host_os }}" == "windows-latest" ]]; then
72-
powershell Compress-Archive -Path target/${{ matrix.target }}/release/overtls.exe, ./config.json, ./overtls.h, target/${{ matrix.target }}/release/overtls.dll -DestinationPath release/overtls-${{ matrix.target }}.zip
72+
powershell Compress-Archive -Path target/${{ matrix.target }}/release/overtls-bin.exe, ./config.json, ./overtls.h, target/${{ matrix.target }}/release/overtls.dll -DestinationPath release/overtls-${{ matrix.target }}.zip
7373
elif [[ "${{ matrix.host_os }}" == "macos-latest" ]]; then
74-
zip -j release/overtls-${{ matrix.target }}.zip target/${{ matrix.target }}/release/overtls ./config.json ./overtls.h target/${{ matrix.target }}/release/libovertls.dylib
74+
zip -j release/overtls-${{ matrix.target }}.zip target/${{ matrix.target }}/release/overtls-bin ./config.json ./overtls.h target/${{ matrix.target }}/release/libovertls.dylib
7575
if [[ "${{ matrix.target }}" == "x86_64-apple-darwin" ]]; then
7676
./build-aarch64-apple-ios.sh
7777
zip -r release/overtls-aarch64-apple-ios-xcframework.zip ./overtls.xcframework/
7878
./build-apple.sh
7979
zip -r release/overtls-apple-xcframework.zip ./overtls.xcframework/
8080
fi
8181
elif [[ "${{ matrix.host_os }}" == "ubuntu-latest" ]]; then
82-
zip -j release/overtls-${{ matrix.target }}.zip target/${{ matrix.target }}/release/overtls ./config.json ./overtls.h target/${{ matrix.target }}/release/libovertls.so
82+
zip -j release/overtls-${{ matrix.target }}.zip target/${{ matrix.target }}/release/overtls-bin ./config.json ./overtls.h target/${{ matrix.target }}/release/libovertls.so
8383
fi
8484
8585
if [[ "${{ matrix.target }}" == "x86_64-unknown-linux-gnu" ]]; then

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ rust-version = "1.80"
1111
[lib]
1212
crate-type = ["staticlib", "cdylib", "lib"]
1313

14+
[[bin]]
15+
name = "overtls-bin"
16+
path = "src/bin/main.rs"
17+
1418
[dependencies]
1519
async-shared-timeout = "0.2"
1620
base64 = "0.22"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN git clone https://github.com/shadowsocksr-live/overtls.git && \
1919
ENV CONFIG=/app/config.json
2020

2121

22-
CMD bash /app/overtls -r server -c ${CONFIG}
22+
CMD bash /app/overtls-bin -r server -c ${CONFIG}
2323

2424

2525

docker/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ EOF
126126
echolog "开始启动-----------------------------"
127127
echolog "使用的tunnel_path=$TUNNEL_PATH-------"
128128
checkssl && initIndex && initConfig && nginx && \
129-
cd /default && chmod +x ./overtls && ./overtls -v $OVERTLS_LOG_LEVEL -r server -c config.json
129+
cd /default && chmod +x ./overtls-bin && ./overtls-bin -v $OVERTLS_LOG_LEVEL -r server -c config.json

install/overtls-install-musl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ nginx_conf_dir="/etc/nginx/conf.d"
6262
nginx_conf_file="${nginx_conf_dir}/overtls.conf"
6363
site_dir="/fakesite"
6464
site_cert_dir="/fakesite_cert"
65-
target_bin_path="/usr/local/bin/overtls"
66-
bin_name=overtls
65+
target_bin_path="/usr/local/bin/overtls-bin"
66+
bin_name=overtls-bin
6767

6868
INSTALL_CMD="apt"
6969

install/overtls-install-selfsign.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ nginx_conf_dir="/etc/nginx/conf.d"
6666
nginx_conf_file="${nginx_conf_dir}/overtls.conf"
6767
site_dir="/fakesite"
6868
site_cert_dir="/fakesite_cert"
69-
target_bin_path="/usr/local/bin/overtls"
70-
bin_name=overtls
69+
target_bin_path="/usr/local/bin/overtls-bin"
70+
bin_name=overtls-bin
7171

7272
INSTALL_CMD="apt"
7373

install/overtls-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ nginx_conf_dir="/etc/nginx/conf.d"
6767
nginx_conf_file="${nginx_conf_dir}/overtls.conf"
6868
site_dir="/fakesite"
6969
site_cert_dir="/fakesite_cert"
70-
target_bin_path="/usr/bin/overtls"
71-
bin_name=overtls
70+
target_bin_path="/usr/bin/overtls-bin"
71+
bin_name=overtls-bin
7272

7373
INSTALL_CMD="apt"
7474

readme-cn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cargo install overtls
5757
git clone https://github.com/shadowsocksr-live/overtls.git
5858
cd overtls
5959
cargo build --release
60-
sudo cp target/release/overtls /usr/local/bin/
60+
sudo cp target/release/overtls-bin /usr/local/bin/
6161
```
6262
6363
### 服務端一鍵安裝腳本
@@ -80,13 +80,13 @@ sudo systemctl start overtls
8080
### 服務端
8181
8282
```bash
83-
overtls -r server -c config.json
83+
overtls-bin -r server -c config.json
8484
```
8585
8686
### 客戶端
8787
8888
```bash
89-
overtls -r client -c config.json
89+
overtls-bin -r client -c config.json
9090
```
9191
9292
如果想查看日志信息,你可以在你当前的工作目录 (`pwd`) 里创建文件 `.env` 写入这些内容 `RUST_LOG=overtls=trace` 即可.

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ programming language environment first, and then run the following commands to c
7272
git clone https://github.com/shadowsocksr-live/overtls.git
7373
cd overtls
7474
cargo build --release
75-
sudo cp target/release/overtls /usr/local/bin/
75+
sudo cp target/release/overtls-bin /usr/local/bin/
7676
```
7777
7878
## Server-side one-click installation script
@@ -97,12 +97,12 @@ sudo systemctl start overtls
9797
9898
### Server
9999
```bash
100-
overtls -r server -c config.json
100+
overtls-bin -r server -c config.json
101101
```
102102
103103
### Client
104104
```bash
105-
overtls -r client -c config.json
105+
overtls-bin -r client -c config.json
106106
```
107107
108108
If you want to see log info, you can create a `.env` file in current dir (`pwd`)

0 commit comments

Comments
 (0)