Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/extensionsIntegrated/appUpdater/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ define(function (require, exports, module) {
window.__TAURI__.path.resolveResource("src-node/installer/launch-windows-installer.js")
.then(async nodeSrcPath=>{
// this is not supposed to work in linux.
// Strip Windows UNC prefix (\\?\) that Tauri adds on Windows as
// Node 24 cannot load the entry script from \\?\ prefixed paths.
if(nodeSrcPath.startsWith('\\\\?\\')){
nodeSrcPath = nodeSrcPath.slice(4);
}
const argsArray = [nodeSrcPath, appdataDir];
const command = window.__TAURI__.shell.Command.sidecar('phnode', argsArray);
command.on('close', data => {
Expand Down
5 changes: 5 additions & 0 deletions src/tauri-updater.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
window.__TAURI__.path.resolveResource("src-node/installer/download-file.js")
.then(async nodeSrcPath=>{
// this is not supposed to work in linux.
// Strip Windows UNC prefix (\\?\) that Tauri adds on Windows as
// Node 24 cannot load the entry script from \\?\ prefixed paths.
if(nodeSrcPath.startsWith('\\\\?\\')){
nodeSrcPath = nodeSrcPath.slice(4);
}
const argsArray = [nodeSrcPath, argJson];
const command = window.__TAURI__.shell.Command.sidecar('phnode', argsArray);
command.on('close', data => {
Expand Down
Loading