Compare commits

...

6 Commits

Author SHA1 Message Date
MikeHughes-BIN 8c0130337e Fix for windows power shell command 2025-12-19 15:31:08 +01:00
Hughes, Mike 4a7aeec869 Merge branch 'develop' into 'main'
Add start scripts for Windows and Unix environments that checks if node is...

See merge request proj-wise2526-video2document/video2document!74
2025-12-19 09:48:39 +01:00
Hughes, Mike 4f3b03f881 Merge branch 'feature/starting-scripts' into 'develop'
Add start scripts for Windows and Unix environments that checks if node is...

See merge request proj-wise2526-video2document/video2document!73
2025-12-19 09:47:31 +01:00
Hughes, Mike 26ed7e3c58 Merge branch 'develop' into 'main'
Fixed the change speaker feature. every step till the point where its send to...

See merge request proj-wise2526-video2document/video2document!72
2025-12-17 16:58:15 +01:00
Hughes, Mike 853eb1a5eb Merge branch 'develop' into 'main'
New Stable Version 2.0

See merge request proj-wise2526-video2document/video2document!68
2025-12-16 19:20:19 +01:00
Hughes, Mike 283b4ed6af Merge branch 'develop' into 'main'
Implemented the general modular framework.

See merge request proj-wise2526-video2document/video2document!22
2025-11-15 15:14:24 +01:00
+22 -19
View File
@@ -30,25 +30,28 @@ async function showSaveDialog(defaultName, format) {
throw err; throw err;
} }
} else if (platform === 'win32') { } else if (platform === 'win32') {
// Windows const safeName = decodeURIComponent(defaultName);
const powershell = `
Add-Type -AssemblyName System.Windows.Forms const powershell = `
$dialog = New-Object System.Windows.Forms.SaveFileDialog Add-Type -AssemblyName System.Windows.Forms;
$dialog.FileName = "${defaultName}.${format}" $dialog = New-Object System.Windows.Forms.SaveFileDialog;
$dialog.Filter = "${format.toUpperCase()} Dateien (*.${format})|*.${format}|Alle Dateien (*.*)|*.*" $dialog.FileName = '${safeName}.${format}';
$dialog.Title = "Dokument speichern als" $dialog.Filter = '${format.toUpperCase()} Dateien (*.${format})|*.${format}|Alle Dateien (*.*)|*.*';
$result = $dialog.ShowDialog() $dialog.Title = 'Dokument speichern als';
if ($result -eq 'OK') { $dialog.FileName } $result = $dialog.ShowDialog();
`; if ($result -eq 'OK') { $dialog.FileName }
`;
try {
const result = execSync(`powershell -Command "${powershell.replace(/\n/g, '; ')}"`, { try {
encoding: 'utf8' const result = execSync(
}); `powershell -NoProfile -Command "${powershell.replace(/\r?\n/g, ' ')}"`,
return result.trim() || null; { encoding: 'utf8' }
} catch (err) { );
throw err; return result.trim() || null;
} } catch (err) {
if (err.status === 1) return null; // User cancelled
throw new Error("Save dialog failed: " + err.message);
}
} else { } else {
// Linux - zenity oder kdialog // Linux - zenity oder kdialog
try { try {