diff --git a/index.html b/index.html
index 2ec6ae5..7a0a902 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
-
+
NeoDLP
diff --git a/public/neodlp.svg b/public/neodlp.svg
new file mode 100644
index 0000000..edcda60
--- /dev/null
+++ b/public/neodlp.svg
@@ -0,0 +1,11 @@
+
\ No newline at end of file
diff --git a/public/tauri.svg b/public/tauri.svg
deleted file mode 100644
index 31b62c9..0000000
--- a/public/tauri.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/public/vite.svg b/public/vite.svg
deleted file mode 100644
index e7b8dfb..0000000
--- a/public/vite.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/scripts/chmod.js b/scripts/chmod.js
deleted file mode 100644
index 145724f..0000000
--- a/scripts/chmod.js
+++ /dev/null
@@ -1,51 +0,0 @@
-import fs from 'fs';
-import path from 'path';
-import { fileURLToPath } from 'url';
-import { execSync } from 'child_process';
-
-const __filename = fileURLToPath(import.meta.url);
-const __dirname = path.dirname(__filename);
-const projectRoot = path.resolve(__dirname, '..');
-
-// Define array of binary source directories
-const binSrcDirs = [
- path.join(projectRoot, 'src-tauri', 'binaries'),
-];
-
-function makeFilesExecutable() {
- let totalCount = 0;
- let successDirs = 0;
-
- for (const binSrc of binSrcDirs) {
- try {
- if (!fs.existsSync(binSrc)) {
- console.error(`Binaries directory does not exist: ${binSrc}`);
- continue;
- }
-
- const files = fs.readdirSync(binSrc);
- const nonExeFiles = files.filter(file => !file.endsWith('.exe'));
- let count = 0;
-
- for (const file of nonExeFiles) {
- const filePath = path.join(binSrc, file);
- if (fs.statSync(filePath).isFile()) {
- execSync(`chmod +x "${filePath}"`);
- console.log(`Made executable: ${path.relative(__dirname, filePath)}`);
- count++;
- }
- }
-
- console.log(`Successfully made ${count} files executable in ${binSrc}`);
- totalCount += count;
- successDirs++;
- } catch (error) {
- console.error(`Error processing directory ${binSrc}: ${error.message}`);
- }
- }
-
- console.log(`\nSummary: Made ${totalCount} files executable across ${successDirs} directories`);
-}
-
-console.log(`RUNNING: 🛠️ Build Script --> chmod.js`);
-makeFilesExecutable();
diff --git a/scripts/update-yt-dlp.js b/scripts/update-yt-dlp.js
deleted file mode 100644
index 7a4bab6..0000000
--- a/scripts/update-yt-dlp.js
+++ /dev/null
@@ -1,57 +0,0 @@
-import fs from 'fs';
-import path from 'path';
-import { execFile } from 'child_process';
-import { fileURLToPath } from 'url';
-
-const __filename = fileURLToPath(import.meta.url);
-const __dirname = path.dirname(__filename);
-const projectRoot = path.resolve(__dirname, '..');
-
-console.log(`RUNNING: 🛠️ Build Script --> update-yt-dlp.js`);
-
-// Get the platform triple from command line arguments
-const platformTriple = process.argv[2];
-
-if (!platformTriple) {
- console.error('Error: Please provide a platform triple');
- process.exit(1);
-}
-
-// Define the binaries directory
-const binariesDir = path.join(projectRoot, 'src-tauri', 'binaries');
-
-// Construct the binary filename based on platform triple
-let binaryName = `yt-dlp-${platformTriple}`;
-if (platformTriple === 'x86_64-pc-windows-msvc') {
- binaryName += '.exe';
-}
-
-// Full path to the binary
-const binaryPath = path.join(binariesDir, binaryName);
-
-// Check if binary exists
-if (!fs.existsSync(binaryPath)) {
- console.error(`Error: Binary not found at: ${binaryPath}`);
- process.exit(1);
-}
-
-console.log(`Found binary at: ${binaryPath}`);
-
-// Make binary executable if not on Windows
-if (platformTriple !== 'x86_64-pc-windows-msvc') {
- console.log('Making binary executable...');
- fs.chmodSync(binaryPath, 0o755);
-}
-
-// Execute the update command
-console.log(`Updating ${platformTriple} binary to latest nightly version...`);
-execFile(binaryPath, ['--update-to', 'nightly'], (error, stdout, stderr) => {
- if (error) {
- console.error(`Error updating binary: ${error.message}`);
- if (stderr) console.error(stderr);
- process.exit(1);
- }
-
- console.log(`Update successful for ${platformTriple}:`);
- console.log(stdout);
-});
diff --git a/src-tauri/tauri.linux-aarch64.conf.json b/src-tauri/tauri.linux-aarch64.conf.json
index 75419f4..9ae21a5 100644
--- a/src-tauri/tauri.linux-aarch64.conf.json
+++ b/src-tauri/tauri.linux-aarch64.conf.json
@@ -39,7 +39,6 @@
],
"externalBin": [
"binaries/yt-dlp",
- "binaries/aria2c",
"binaries/deno",
"binaries/neodlp-pot"
],
@@ -48,7 +47,9 @@
},
"linux": {
"deb": {
- "depends": ["ffmpeg"],
+ "depends": ["ffmpeg", "aria2"],
+ "provides": ["yt-dlp", "deno"],
+ "conflicts": ["yt-dlp", "deno"],
"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",
@@ -60,7 +61,9 @@
"rpm": {
"epoch": 0,
"release": "1",
- "depends": ["ffmpeg"],
+ "depends": ["ffmpeg", "aria2"],
+ "provides": ["yt-dlp", "deno"],
+ "conflicts": ["yt-dlp", "deno"],
"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",
diff --git a/src-tauri/tauri.linux-x86_64.conf.json b/src-tauri/tauri.linux-x86_64.conf.json
index 6cb67e3..b17aefd 100644
--- a/src-tauri/tauri.linux-x86_64.conf.json
+++ b/src-tauri/tauri.linux-x86_64.conf.json
@@ -39,7 +39,6 @@
],
"externalBin": [
"binaries/yt-dlp",
- "binaries/aria2c",
"binaries/deno",
"binaries/neodlp-pot"
],
@@ -48,7 +47,9 @@
},
"linux": {
"deb": {
- "depends": ["ffmpeg"],
+ "depends": ["ffmpeg", "aria2"],
+ "provides": ["yt-dlp", "deno"],
+ "conflicts": ["yt-dlp", "deno"],
"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",
@@ -60,7 +61,9 @@
"rpm": {
"epoch": 0,
"release": "1",
- "depends": ["ffmpeg"],
+ "depends": ["ffmpeg", "aria2"],
+ "provides": ["yt-dlp", "deno"],
+ "conflicts": ["yt-dlp", "deno"],
"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",
@@ -72,7 +75,8 @@
"appimage": {
"files": {
"/usr/bin/ffmpeg": "./binaries/ffmpeg-x86_64-unknown-linux-gnu",
- "/usr/bin/ffprobe": "./binaries/ffprobe-x86_64-unknown-linux-gnu"
+ "/usr/bin/ffprobe": "./binaries/ffprobe-x86_64-unknown-linux-gnu",
+ "/usr/bin/aria2c": "./binaries/aria2c-x86_64-unknown-linux-gnu"
}
}
}
diff --git a/src/assets/react.svg b/src/assets/react.svg
deleted file mode 100644
index 6c87de9..0000000
--- a/src/assets/react.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/helpers/use-linux-registerer.ts b/src/helpers/use-linux-registerer.ts
index ea53ca6..db26bdb 100644
--- a/src/helpers/use-linux-registerer.ts
+++ b/src/helpers/use-linux-registerer.ts
@@ -17,7 +17,6 @@ export function useLinuxRegisterer() {
const { saveKvPair } = useKvPairs();
const { updateYtDlp } = useYtDlpUpdater();
const appVersion = useSettingsPageStatesStore(state => state.appVersion);
- const setYtDlpVersion = useSettingsPageStatesStore((state) => state.setYtDlpVersion);
const registerToLinux = async () => {
try {
@@ -109,7 +108,6 @@ export function useLinuxRegisterer() {
if (isFlatpak) {
await updateYtDlp();
- setYtDlpVersion(null);
}
return { success: true, message: 'Registered successfully' }