编译过程中,会有从github下载失败的情况: Error failed to bundle project: https://github.com/tauri-apps/binary-releases/releases/download/nsis-plugins-v0/NSIS-ApplicationID.zip: Network Error: Network Error: Error encountered in the status line: 此时需要下载:NSIS, 然后解压到C:\Users\dassi\AppData...
2. nsis 下载超时 根据上一个问题的解决思路,同样查询tauri的源码可以得知nsis相关的处理逻辑位于github.com/tauri-apps/t 追踪代码,在get_and_extract_nsis方法中,实现了下载nsis的相关逻辑: // Gets NSIS and verifies the download via Sha1 fn get_and_extract_nsis(nsis_toolset_path: &Path, _tauri_tool...
https://tauri.app/zh-cn/v1/api/config/#nsisinstallermode:https://link.juejin.cn?target=https%3A%2F%2Ftauri.app%2Fzh-cn%2Fv1%2Fapi%2Fconfig%2F%23nsisinstallermode
- [`3ab170917`](https://www.github.com/tauri-apps/tauri/commit/3ab170917ed535fc9013f0a9255631fb34493e18) ([#9932](https://www.github.com/tauri-apps/tauri/pull/9932)) Changed `NsisConfig::compression` field from `Option<NsisCompression>` to just `NsisCompression` ## \[2.0.0-beta....
"nsis" => Ok(Self::Nsis), Expand Down Expand Up @@ -282,6 +286,49 @@ pub struct DebConfig { pub desktop_template: Option<PathBuf>, } /// Configuration for RPM bundles. #[skip_serializing_none] #[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature =...
Add initial support for building nsis bundles on non-Windows platforms. 60e6f6c3 feat(bundler): Add support for creating NSIS bundles on unix hosts (#5788) on 2023-01-19 Add nsis bundle target c94e1326 feat(bundler): add nsis, closes #4450, closes #2319 (#4674) on 2023-01-03 Remove...
构建生成后,在peanut-projects/app/src-tauri/target/release/bundle/文件夹下有两个子文件夹msi和nsis,分别存放 msi 和 exe 格式的安装包。 /msi/peanut-app_0.0.0_x64_en-US.msi /nsis/peanut-app_0.0.0_x64-setup.exe 可分发这两个安装包。
..."win": {"target":"nsis","sign":"./sign.js"},... (详细的可以直接阅读electron builder官网介绍,这里只做简单说明) 对于应用更新而言,我们之前采用的是electron-updater自动更新模式: 如果对这块感兴趣,可以阅读我们之前的文章: Tauri的核心模块 ...
cd3846c8(#6955) AddWindowsUpdateInstallMode::nsis_args 85e77fb7(#6762) Correctly determine MIME type of.txtfiles. [1.3.0] Added theadditional_browser_argsoption to the window configuration. 3dc38b15feat(core): expose additional_browser_args to window config (fix:#5757) (#5799) on 2022-12...
// Prevents additional console window on Windows in release, DO NOT REMOVE!!#![cfg_attr(not(debug_assertions),windows_subsystem="windows")]// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command// #[tauri::command]// fn greet(name: &str) -> String {// fo...