From ca01558963dae8c99b8319667afa321a44c0d75a Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Sun, 12 Oct 2025 10:37:13 +0530 Subject: [PATCH] refactor: removed bundling ffmpeg with deb rpm packages instead its a dependency now and added appimage builds --- src-tauri/capabilities/shell.json | 10 ++++++++++ src-tauri/tauri.linux-aarch64.conf.json | 12 +++++++++--- src-tauri/tauri.linux-x86_64.conf.json | 12 +++++++++--- 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/src-tauri/capabilities/shell.json b/src-tauri/capabilities/shell.json index 63a039d..5500902 100644 --- a/src-tauri/capabilities/shell.json +++ b/src-tauri/capabilities/shell.json @@ -35,6 +35,11 @@ "args": true, "sidecar": true }, + { + "name": "ffmpeg", + "cmd": "ffmpeg", + "args": true + }, { "name": "aria2c", "cmd": "aria2c", @@ -75,6 +80,11 @@ "args": true, "sidecar": true }, + { + "name": "ffmpeg", + "cmd": "ffmpeg", + "args": true + }, { "name": "aria2c", "cmd": "aria2c", diff --git a/src-tauri/tauri.linux-aarch64.conf.json b/src-tauri/tauri.linux-aarch64.conf.json index 7a90d81..2357f9b 100644 --- a/src-tauri/tauri.linux-aarch64.conf.json +++ b/src-tauri/tauri.linux-aarch64.conf.json @@ -25,7 +25,7 @@ }, "bundle": { "active": true, - "targets": ["deb", "rpm"], + "targets": ["deb", "rpm", "appimage"], "createUpdaterArtifacts": true, "licenseFile": "../LICENSE", "icon": [ @@ -37,13 +37,12 @@ ], "externalBin": [ "binaries/yt-dlp", - "binaries/ffmpeg", - "binaries/ffprobe", "binaries/aria2c", "binaries/deno" ], "linux": { "deb": { + "depends": ["ffmpeg"], "files": { "/etc/opt/chrome/native-messaging-hosts/com.neosubhamoy.neodlp.json": "./resources/msghost-manifest/linux/chrome.json", "/etc/chromium/native-messaging-hosts/com.neosubhamoy.neodlp.json": "./resources/msghost-manifest/linux/chrome.json", @@ -55,6 +54,7 @@ "rpm": { "epoch": 0, "release": "1", + "depends": ["ffmpeg"], "files": { "/etc/opt/chrome/native-messaging-hosts/com.neosubhamoy.neodlp.json": "./resources/msghost-manifest/linux/chrome.json", "/etc/chromium/native-messaging-hosts/com.neosubhamoy.neodlp.json": "./resources/msghost-manifest/linux/chrome.json", @@ -62,6 +62,12 @@ "/usr/bin/neodlp-msghost": "./target/aarch64-unknown-linux-gnu/release/neodlp-msghost", "/etc/xdg/autostart/neodlp-autostart.desktop": "./resources/autostart/linux/autostart.desktop" } + }, + "appimage": { + "files": { + "/usr/bin/ffmpeg": "./binaries/ffmpeg-aarch64-unknown-linux-gnu", + "/usr/bin/ffprobe": "./binaries/ffprobe-aarch64-unknown-linux-gnu" + } } } } diff --git a/src-tauri/tauri.linux-x86_64.conf.json b/src-tauri/tauri.linux-x86_64.conf.json index 4c82997..90fc041 100644 --- a/src-tauri/tauri.linux-x86_64.conf.json +++ b/src-tauri/tauri.linux-x86_64.conf.json @@ -25,7 +25,7 @@ }, "bundle": { "active": true, - "targets": ["deb", "rpm"], + "targets": ["deb", "rpm", "appimage"], "createUpdaterArtifacts": true, "licenseFile": "../LICENSE", "icon": [ @@ -37,13 +37,12 @@ ], "externalBin": [ "binaries/yt-dlp", - "binaries/ffmpeg", - "binaries/ffprobe", "binaries/aria2c", "binaries/deno" ], "linux": { "deb": { + "depends": ["ffmpeg"], "files": { "/etc/opt/chrome/native-messaging-hosts/com.neosubhamoy.neodlp.json": "./resources/msghost-manifest/linux/chrome.json", "/etc/chromium/native-messaging-hosts/com.neosubhamoy.neodlp.json": "./resources/msghost-manifest/linux/chrome.json", @@ -55,6 +54,7 @@ "rpm": { "epoch": 0, "release": "1", + "depends": ["ffmpeg"], "files": { "/etc/opt/chrome/native-messaging-hosts/com.neosubhamoy.neodlp.json": "./resources/msghost-manifest/linux/chrome.json", "/etc/chromium/native-messaging-hosts/com.neosubhamoy.neodlp.json": "./resources/msghost-manifest/linux/chrome.json", @@ -62,6 +62,12 @@ "/usr/bin/neodlp-msghost": "./target/x86_64-unknown-linux-gnu/release/neodlp-msghost", "/etc/xdg/autostart/neodlp-autostart.desktop": "./resources/autostart/linux/autostart.desktop" } + }, + "appimage": { + "files": { + "/usr/bin/ffmpeg": "./binaries/ffmpeg-x86_64-unknown-linux-gnu", + "/usr/bin/ffprobe": "./binaries/ffprobe-x86_64-unknown-linux-gnu" + } } } }