diff --git a/electron/main/custom_document.html b/electron/main/custom_document.html deleted file mode 100644 index d0427fd..0000000 --- a/electron/main/custom_document.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - Custom Document - - - - -
-

Manage document types

- - - - - -
- - -
- - - - -
- - - - - -
- -
-
- - - - - - - \ No newline at end of file diff --git a/electron/main/main.js b/electron/main/main.js deleted file mode 100644 index 3861ad3..0000000 --- a/electron/main/main.js +++ /dev/null @@ -1,44 +0,0 @@ -import { app, BrowserWindow, ipcMain, dialog } from 'electron'; -import { exec } from 'child_process'; -import path from 'path'; -import { fileURLToPath } from 'url'; - -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); - -let mainWindow; - -function createWindow() { - mainWindow = new BrowserWindow({ - width: 800, - height: 600, - webPreferences: { - nodeIntegration: false, - contextIsolation: true, - preload: path.join(__dirname, 'preload.js') - } - }); - - mainWindow.loadFile('main/index.html'); -} - -app.whenReady().then(createWindow); - -// Kommunikation vom Renderer (Frontend) -ipcMain.handle('convert-video', async (event, filePath) => { - const output = path.join(path.dirname(filePath), 'converted.mp4'); - - return new Promise((resolve, reject) => { - exec(`ffmpeg -i "${filePath}" -vcodec libx264 "${output}"`, (error, stdout, stderr) => { - if (error) { - console.error('Fehler beim Konvertieren:', error); - reject(error); - } else { - console.log('Konvertierung abgeschlossen:', output); - resolve(output); - } - }); - }); -}); - -