fix(sign): fixed sign renderer

This commit is contained in:
2025-08-10 06:49:47 -04:00
parent 396d594a27
commit 55ef3490ae

View File

@@ -402,14 +402,8 @@ async function handleOpenBundle() {
async function handleSignBundle() { async function handleSignBundle() {
if (!currentBundlePath) return; if (!currentBundlePath) return;
const result = await ipcRenderer.invoke('select-private-key');
if (result.canceled || !result.filePaths.length) {
return; // User canceled the dialog
}
const privateKeyPath = result.filePaths[0];
showSpinner(); showSpinner();
const signResult = await ipcRenderer.invoke('sign-bundle', { bundlePath: currentBundlePath, privateKey: privateKeyPath }); const signResult = await ipcRenderer.invoke('sign-bundle', currentBundlePath);
hideSpinner(); hideSpinner();
if (signResult.success) { if (signResult.success) {