fix(sign): fixed sign renderer
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user