ChatGPT-Next-Web 代码更新很快,但是提供的客户端一周才发布一次,想用上最新的功能就需要自己构建一下桌面客户端了,这里记录一下构建流程。
结论:不要交叉编译Tauri程序,否则会变得不幸。
conda activate node
git clone --depth=1 -b main --single-branch https://github.com/Yidadaa/ChatGPT-Next-Web.git
cd ChatGPT-Next-Web
npm install -g yarn
npm install
# conda install -c conda-forge rust
export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
curl https://sh.rustup.rs -sSf | sh
yarn tauri info
# app/masks/cn.ts 中修改默认的面具
# app/constant.ts 中修改默认的模型
# app/store/config.ts 中修改默认的设置
export PATH=$HOME/.cargo/bin:$PATH
rustc --print target-list | grep 'x86_64'| grep 'windows'
rustup target add x86_64-pc-windows-gnu
(容器外) sudo docker-compose exec code-server apt update
(容器外) sudo docker-compose exec code-server apt-get install gcc-mingw-w64-x86-64
yarn tauri build --target x86_64-pc-windows-gnu
Network Error: Error encountered in the status line: Connection reset by peer
makensis.exe