天水 网站建设,网站怎么排版,旅游网站的设计,合肥建设学校网站项目 项目#xff1a;https://github.com/tw93/Pake/ 免费ICO图片#xff1a;https://icon-icons.com/zh/ 设置环境 以下教程仅针对windows系统适用 请确保您的 Node.js 版本为 18 或更高版本 文档#xff1a;https://v1.tauri.app/zh-cn/v1/guides/getting-started/prerequ…项目 项目https://github.com/tw93/Pake/ 免费ICO图片https://icon-icons.com/zh/ 设置环境 以下教程仅针对windows系统适用 请确保您的 Node.js 版本为 18 或更高版本 文档https://v1.tauri.app/zh-cn/v1/guides/getting-started/prerequisites/ Microsoft Visual Studio C 生成工具 WebView2 Rust(难点)
前面两点容易难的是安装Rust原因在于网络互通因为github,npm默认都是国外的地址我的方法有两种
设置代理方法1
1.我使用的是v2rayN 并将监听端口设置为7890所以打开cmd输入以下代码
setx http_proxy http://127.0.0.1:7891
setx https_proxy http://127.0.0.1:78912.https://www.rust-lang.org/tools/install 下载Rust双击打开输入序号1安装依赖 方法2使用winget安装rust
首先安装winget如果你的系统没有安装winget 步骤如下
下载winget
https://github.com/microsoft/winget-cli/releases/download/v1.9.2507/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle然后打开powershell导航到下载目录使用以下命令安装msixbundle文件
Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle换源
winget source remove msstore
winget source add winget https://cdn.winget.microsoft.com/cache打开powershell设置代理
$env:http_proxyhttp://127.0.0.1:7891
$env:https_proxyhttp://127.0.0.1:7891最后安装rust
winget install --id Rustlang.Rustup命令行打包
首先安装pake-cli,步骤
1.换源可选
npm config set registry https://mirrors.huaweicloud.com/repository/npm/2.安装必须
npm install pake-cli -g3.一键打包参考如下
pake https://woniu336.github.io --name bilibili --icon blog.ico --installer-language zh-CN --show-system-tray --system-tray-icon blog.icohttps://woniu336.github.io 打包的网址前面带http/httpsbilibili为名称最好是单个英文不能有下划线和中文ico文件放在当前目录zh-CN 设置安装程序为中文
更多参数https://github.com/tw93/Pake/blob/master/bin/README_CN.md
最后打包成功的文件在命令所在目录以.msi为后缀
其他命令
清除代理命令,安装成功后可选
setx http_proxy
setx https_proxy 更新你的 Rust 版本
rustup update卸载 Rust
rustup self uninstall