other changes for linux

This commit is contained in:
Daniel Haller 2024-05-04 00:44:44 +02:00
parent d329e4c2f9
commit 6470ea5546
6 changed files with 10 additions and 0 deletions

View File

@ -40,6 +40,7 @@ const options = {
linux: {
maintainer: 'Stratum',
category: 'AudioVideo',
icon: 'public/favicon.icns',
desktop: {
StartupNotify: 'false',
Encoding: 'UTF-8',

BIN
public/favicon.icns Normal file

Binary file not shown.

View File

@ -15,6 +15,10 @@ export function getFFMPEGPath() {
return { ffmpeg: ffmpeg, ffprobe: ffprobe }
} else {
// Linux:
// const ffmpeg = path.join(ffmpegPath, 'ffmpeg')
// const ffprobe = path.join(ffmpegPath, 'ffprobe')
const ffmpeg = path.join(ffmpegPath, 'ffmpeg.exe')
const ffprobe = path.join(ffmpegPath, 'ffprobe.exe')

View File

@ -14,6 +14,7 @@ export function getMP4DecryptPath() {
return mp4Decrypt
} else {
// Linux: const mp4Decrypt = path.join(decryptPath, 'mp4decrypt').replace(/\s/g, '\\ ')
const mp4Decrypt = path.join(decryptPath, 'mp4decrypt.exe')
return mp4Decrypt

View File

@ -23,6 +23,8 @@ function createWindow() {
icon: __dirname + '/icon/favicon.ico',
width: 950,
height: 700,
// Linux:
// backgroundColor: '#2222222',
webPreferences: {
devTools: true,
nodeIntegration: true,
@ -181,6 +183,8 @@ ipcMain.handle(
icon: __dirname + '/icon/favicon.ico',
width: opt.width,
height: opt.height,
// Linux:
// backgroundColor: '#2222222',
webPreferences: {
devTools: true,
nodeIntegration: true,

Binary file not shown.