接通 Windows 与 Web 设备间加密文字聊天

This commit is contained in:
xhgit committed 2026-11-13 18:43:04 +08:00
1 parent b04034ee89
commit d1efdedc57
27 files changed
+880 -22

No files matched your search

+10
View File
@@ -1,3 +1,12 @@
FROM rust:1.95-bookworm AS mls
WORKDIR /src
RUN rustup target add wasm32-unknown-unknown
RUN cargo install --locked wasm-bindgen-cli --version 0.2.130
COPY crypto/Cargo.toml crypto/Cargo.lock ./
COPY crypto/src ./src
RUN cargo build --locked --release --target wasm32-unknown-unknown \
&& wasm-bindgen --target web --out-dir /mls target/wasm32-unknown-unknown/release/xhchat_mls_check.wasm
FROM node:24-alpine AS build
WORKDIR /src
COPY package.json package-lock.json ./
@@ -5,6 +14,7 @@ COPY web/package.json web/
COPY Desktop/package.json Desktop/
RUN npm ci --workspace web --include-workspace-root=false --no-audit
COPY web/ web/
COPY --from=mls /mls/ web/public/mls/
RUN npm run build -w web
FROM nginx:alpine