From 27f7980cdfea4cec9bb151b15ce71f6a22887002 Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Fri, 31 Oct 2025 20:41:55 +0530 Subject: [PATCH] ci: stop using git-lfs --- .github/workflows/release.yml | 15 +++------------ README.md | 9 +++++---- scripts/download-bins.js | 7 +++---- src-tauri/tauri.linux-aarch64.conf.json | 4 ++-- src-tauri/tauri.linux-x86_64.conf.json | 4 ++-- src-tauri/tauri.macos-aarch64.conf.json | 4 ++-- src-tauri/tauri.macos-x86_64.conf.json | 4 ++-- 7 files changed, 19 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f93f1d..bbb1909 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,18 +27,6 @@ jobs: - name: 🚚 Checkout repository uses: actions/checkout@v5 - - name: 🔐 Configure Git LFS - shell: bash - run: | - git config --global credential.helper store - echo "https://${{ secrets.LFS_USERNAME }}:${{ secrets.LFS_PASSWORD }}@lfs.neosubhamoy.com" > ~/.git-credentials - - - name: 📥 Pull LFS objects - shell: bash - run: | - git lfs install - git lfs pull - - name: 🛠️ Install dependencies if: matrix.platform == 'ubuntu-22.04' || matrix.platform == 'ubuntu-22.04-arm' run: | @@ -64,6 +52,9 @@ jobs: - name: 🛠️ Install frontend dependencies run: npm install + - name: 📥 Download binaries + run: npm run download + - name: 📄 Read and Process CHANGELOG (Unix) if: matrix.platform != 'windows-latest' id: changelog_unix diff --git a/README.md b/README.md index da2ea18..a621b36 100644 --- a/README.md +++ b/README.md @@ -139,13 +139,14 @@ NeoDLP is and will be always FREE to Use and Open-Sourced for Everyone. On the o Want to be part of this? Feel free to contribute...!! Pull Requests are always welcome...!! (^_^) Follow these simple steps to start building: -* Make sure to install [Rust](https://www.rust-lang.org/tools/install), [Node.js](https://nodejs.org/en), [Git](https://git-scm.com/downloads) and [Git-LFS](https://git-lfs.com/) before proceeding. +* Make sure to install [Rust](https://www.rust-lang.org/tools/install), [Node.js](https://nodejs.org/en), and [Git](https://git-scm.com/downloads) before proceeding. * Install [Tauri Prerequisites](https://v2.tauri.app/start/prerequisites/) for your OS / platform 1. Fork this repo in your github account. -2. Git clone the forked repo in your local machine. (**NOTE:** I've recently switched from GitHub LFS Server to my own self-hosted LFS Server! Cause GitHub LFS Storage is too expencive for me and NeoDLP requires a lots of LFS bandwidth. So, If you currently clone the repo it will clone the codebase but not the LFS Objects, If you want to clone the LFS Objects unfortunately you have to ask me for auth credentials - which will be only provided to you in certain conditions) +2. Git clone the forked repo in your local machine. 3. Create a git branch (related to the feature you are working on) (Optional - Recommended) 4. Install Node.js dependencies: `npm install` -5. Run development / build process +5. Download binaries (for current platform): `npm run download` +6. Run development / build process > [!WARNING] > Make sure to run the `build` command once before running the `dev` command for the first time to avoid compile time errors ```code @@ -176,7 +177,7 @@ Noticed any Bug? or Want to give me some suggetion? Always feel free to open a [ ## 💫 Credits - NeoDLP's 'Format Selection' options are inspired from the [Seal](https://github.com/JunkFood02/Seal) app by [@JunkFood02](https://github.com/JunkFood02) -- Aria2 Windows x86_64 and Linux x86_64 static binaries are built by [@asdo92](https://github.com/asdo92/aria2-static-builds) +- Aria2 Linux x86_64 static binaries are built by [@asdo92](https://github.com/asdo92/aria2-static-builds) ## 📝 License diff --git a/scripts/download-bins.js b/scripts/download-bins.js index 7bc2cb7..25206ce 100644 --- a/scripts/download-bins.js +++ b/scripts/download-bins.js @@ -170,7 +170,7 @@ const binaries = { { name: 'ffprobe-universal-apple-darwin', platform: 'darwin', - url: `https://evermeet.cx/ffmpeg/getrelease/ffprobe/zip`, + url: `https://evermeet.cx/ffmpeg/get/ffprobe/zip`, src: path.join(downloadDir, 'ffprobe-universal-apple-darwin.zip'), dest: null, archive: { @@ -356,6 +356,7 @@ const binaries = { ] } + function downloadAndProcess(bin) { console.log(`=> Processing: ${bin.name}`); console.log(`Downloading: ${bin.url}`); @@ -406,8 +407,6 @@ function downloadAndProcess(bin) { } } }); - - console.log(`\n`); } @@ -424,7 +423,7 @@ if (targetBin && !binaries.hasOwnProperty(targetBin) && targetBin !== 'all') { const effectivePlatform = targetPlatform || platform; const effectiveBin = targetBin || 'all'; -console.log(`RUNNING: ⚙️ Binary Download (platform: ${effectivePlatform} | binary: ${effectiveBin})`); +console.log(`RUNNING: 📦 Binary Downloader (platform: ${effectivePlatform} | binary: ${effectiveBin})`); Object.keys(binaries).forEach((binKey) => { if (effectiveBin !== 'all' && binKey !== effectiveBin) { diff --git a/src-tauri/tauri.linux-aarch64.conf.json b/src-tauri/tauri.linux-aarch64.conf.json index 20fc669..930bc6b 100644 --- a/src-tauri/tauri.linux-aarch64.conf.json +++ b/src-tauri/tauri.linux-aarch64.conf.json @@ -1,8 +1,8 @@ { "identifier": "com.neosubhamoy.neodlp", "build": { - "beforeDevCommand": "cargo build --target=aarch64-unknown-linux-gnu --manifest-path=./src-tauri/msghost/Cargo.toml && node scripts/chmod.js && npm run dev", - "beforeBuildCommand": "cargo build --release --target=aarch64-unknown-linux-gnu --manifest-path=./src-tauri/msghost/Cargo.toml && node scripts/chmod.js && npm run build", + "beforeDevCommand": "cargo build --target=aarch64-unknown-linux-gnu --manifest-path=./src-tauri/msghost/Cargo.toml && npm run dev", + "beforeBuildCommand": "cargo build --release --target=aarch64-unknown-linux-gnu --manifest-path=./src-tauri/msghost/Cargo.toml && npm run build", "devUrl": "http://localhost:1420", "frontendDist": "../dist" }, diff --git a/src-tauri/tauri.linux-x86_64.conf.json b/src-tauri/tauri.linux-x86_64.conf.json index 0268c22..4d4b74e 100644 --- a/src-tauri/tauri.linux-x86_64.conf.json +++ b/src-tauri/tauri.linux-x86_64.conf.json @@ -1,8 +1,8 @@ { "identifier": "com.neosubhamoy.neodlp", "build": { - "beforeDevCommand": "cargo build --target=x86_64-unknown-linux-gnu --manifest-path=./src-tauri/msghost/Cargo.toml && node scripts/chmod.js && npm run dev", - "beforeBuildCommand": "cargo build --release --target=x86_64-unknown-linux-gnu --manifest-path=./src-tauri/msghost/Cargo.toml && node scripts/chmod.js && npm run build", + "beforeDevCommand": "cargo build --target=x86_64-unknown-linux-gnu --manifest-path=./src-tauri/msghost/Cargo.toml && npm run dev", + "beforeBuildCommand": "cargo build --release --target=x86_64-unknown-linux-gnu --manifest-path=./src-tauri/msghost/Cargo.toml && npm run build", "devUrl": "http://localhost:1420", "frontendDist": "../dist" }, diff --git a/src-tauri/tauri.macos-aarch64.conf.json b/src-tauri/tauri.macos-aarch64.conf.json index 7948a1d..b3f7964 100644 --- a/src-tauri/tauri.macos-aarch64.conf.json +++ b/src-tauri/tauri.macos-aarch64.conf.json @@ -1,8 +1,8 @@ { "identifier": "com.neosubhamoy.neodlp", "build": { - "beforeDevCommand": "cargo build --target=aarch64-apple-darwin --manifest-path=./src-tauri/msghost/Cargo.toml && node scripts/chmod.js && npm run dev", - "beforeBuildCommand": "cargo build --release --target=aarch64-apple-darwin --manifest-path=./src-tauri/msghost/Cargo.toml && node scripts/chmod.js && npm run build", + "beforeDevCommand": "cargo build --target=aarch64-apple-darwin --manifest-path=./src-tauri/msghost/Cargo.toml && npm run dev", + "beforeBuildCommand": "cargo build --release --target=aarch64-apple-darwin --manifest-path=./src-tauri/msghost/Cargo.toml && npm run build", "devUrl": "http://localhost:1420", "frontendDist": "../dist" }, diff --git a/src-tauri/tauri.macos-x86_64.conf.json b/src-tauri/tauri.macos-x86_64.conf.json index b32dcf1..63de13d 100644 --- a/src-tauri/tauri.macos-x86_64.conf.json +++ b/src-tauri/tauri.macos-x86_64.conf.json @@ -1,8 +1,8 @@ { "identifier": "com.neosubhamoy.neodlp", "build": { - "beforeDevCommand": "cargo build --target=x86_64-apple-darwin --manifest-path=./src-tauri/msghost/Cargo.toml && node scripts/chmod.js && npm run dev", - "beforeBuildCommand": "cargo build --release --target=x86_64-apple-darwin --manifest-path=./src-tauri/msghost/Cargo.toml && node scripts/chmod.js && npm run build", + "beforeDevCommand": "cargo build --target=x86_64-apple-darwin --manifest-path=./src-tauri/msghost/Cargo.toml && npm run dev", + "beforeBuildCommand": "cargo build --release --target=x86_64-apple-darwin --manifest-path=./src-tauri/msghost/Cargo.toml && npm run build", "devUrl": "http://localhost:1420", "frontendDist": "../dist" },