Skip to content

Commit

Permalink
🎉 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed Jan 2, 2025
1 parent 1ae2c45 commit d3a7c26
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 49 deletions.
39 changes: 1 addition & 38 deletions .github/workflows/cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
APP_NAME: "WebSocketReflectorX"
APP_VERSION: "0.3.0"
APP_VERSION: "0.3.1"

#-------------------------------------------------------------------------------
# Workflow jobs
Expand Down Expand Up @@ -79,43 +79,6 @@ jobs:
wsrx-cli-${{env.APP_VERSION}}-linux64-gnu.tar.gz
wsrx-cli-${{env.APP_VERSION}}-linux64-musl.tar.gz
## macOS build ###############################################################
build-mac:
name: "macOS CI build"
runs-on: macos-12
steps:
# Checkout repository (and submodules)
- name: Checkout repository (and submodules)
uses: actions/checkout@v4
with:
submodules: recursive

# Setup Rust
- uses: actions-rs/toolchain@v1
with:
toolchain: stable

# Build application
- name: Build application
run: cargo build --release --features=binary

# Deploy application
- name: Compress Binaries
run: zip -r -y -X wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip target/release/wsrx

# Upload application ZIP
- name: Upload application ZIP
uses: actions/upload-artifact@v4
with:
name: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip
path: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip

## macOS build ###############################################################
build-mac-arm:
name: "macOS ARM CI build"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

env:
APP_NAME: "WebSocketReflectorX"
APP_VERSION: "0.3.0"
APP_VERSION: "0.3.1"
QT_VERSION: "6.8.1"

#-------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
APP_NAME: "WebSocketReflectorX"
APP_VERSION: "0.3.0"
APP_VERSION: "0.3.1"
QT_VERSION: "6.8.1"

#-------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20)

set(VERSION_MAJOR 0)
set(VERSION_MINOR 3)
set(VERSION_PATCH 0)
set(VERSION_PATCH 1)

execute_process(
COMMAND git describe --always --dirty
Expand Down
2 changes: 1 addition & 1 deletion deploy_linux.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

export APP_NAME="WebSocketReflectorX"
export APP_VERSION=0.3.0
export APP_VERSION=0.3.1
export GIT_VERSION=$(git rev-parse --short HEAD)

echo "> $APP_NAME packager (Linux x86_64) [v$APP_VERSION]"
Expand Down
2 changes: 1 addition & 1 deletion deploy_macos.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

export APP_NAME="WebSocketReflectorX"
export APP_VERSION=0.3.0
export APP_VERSION=0.3.1
export GIT_VERSION=$(git rev-parse --short HEAD)

arch=x86_64
Expand Down
2 changes: 1 addition & 1 deletion deploy_windows.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

export APP_NAME="WebSocketReflectorX"
export APP_VERSION=0.3.0
export APP_VERSION=0.3.1
export GIT_VERSION=$(git rev-parse --short HEAD)

echo "> $APP_NAME packager (Windows x86_64) [v$APP_VERSION]"
Expand Down
2 changes: 1 addition & 1 deletion wsrx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wsrx"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
authors = ["Reverier-Xu <reverier.xu@xdsec.club>"]
description = "Controlled TCP-over-WebSocket forwarding tunnel."
Expand Down
6 changes: 2 additions & 4 deletions wsrx/src/cli/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ fn build_router(secret: Option<String>) -> axum::Router {
.allow_headers(Any)
.allow_origin(Any);
axum::Router::new()
.nest(
"/",
.merge(
axum::Router::new()
.route(
"/pool",
Expand All @@ -142,8 +141,7 @@ fn build_router(secret: Option<String>) -> axum::Router {
.layer(cors_layer)
.with_state(state.clone()),
)
.nest(
"/",
.merge(
axum::Router::new()
.route("/connect", get(get_cors_status).post(add_pending_origin))
.layer(any_origin_layer)
Expand Down

0 comments on commit d3a7c26

Please sign in to comment.