Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

ci(rebrand): update workflows, scripts, clippy baseline, and dev tools to libreget

IGECT51e2bdf95470
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 78c92a6a..65ee4998 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -1,81 +1,81 @@
-name: Bug report
-description: Report something that isn't working
-labels: ["bug"]
-body:
- - type: markdown
- attributes:
- value: |
- Thanks for reporting a bug. Please fill in the fields below so we can reproduce it.
- For security issues, do not use this form — see SECURITY.md.
-
- - type: input
- id: version
- attributes:
- label: OmniGet version
- description: Shown in Settings > About, or via `omniget --version`.
- placeholder: "0.4.0"
- validations:
- required: true
-
- - type: dropdown
- id: os
- attributes:
- label: Operating system
- options:
- - Windows 11
- - Windows 10
- - macOS (Apple Silicon)
- - macOS (Intel)
- - Linux (AppImage)
- - Linux (Flatpak)
- - Linux (other)
- validations:
- required: true
-
- - type: input
- id: platform
- attributes:
- label: Platform / site that failed
- description: e.g. YouTube, Hotmart, a generic URL, Telegram plugin…
- placeholder: "YouTube"
- validations:
- required: false
-
- - type: textarea
- id: steps
- attributes:
- label: Steps to reproduce
- description: Minimum steps to trigger the bug.
- placeholder: |
- 1. Paste URL X
- 2. Select quality Y
- 3. Click download
- 4. See error Z
- validations:
- required: true
-
- - type: textarea
- id: expected
- attributes:
- label: Expected behavior
- validations:
- required: false
-
- - type: textarea
- id: logs
- attributes:
- label: Logs
- description: Paste relevant output from the terminal or the log file. Remove any tokens/cookies before sharing.
- render: shell
- validations:
- required: false
-
- - type: checkboxes
- id: checks
- attributes:
- label: Checks
- options:
- - label: I searched existing issues and this hasn't been reported yet
- required: true
- - label: I am on the latest release
- required: true
+name: Bug report
+description: Report something that isn't working
+labels: ["bug"]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Thanks for reporting a bug. Please fill in the fields below so we can reproduce it.
+ For security issues, do not use this form — see SECURITY.md.
+
+ - type: input
+ id: version
+ attributes:
+ label: LibreGet version
+ description: Shown in Settings > About, or via `libreget --version`.
+ placeholder: "0.4.0"
+ validations:
+ required: true
+
+ - type: dropdown
+ id: os
+ attributes:
+ label: Operating system
+ options:
+ - Windows 11
+ - Windows 10
+ - macOS (Apple Silicon)
+ - macOS (Intel)
+ - Linux (AppImage)
+ - Linux (Flatpak)
+ - Linux (other)
+ validations:
+ required: true
+
+ - type: input
+ id: platform
+ attributes:
+ label: Platform / site that failed
+ description: e.g. YouTube, Hotmart, a generic URL, Telegram plugin…
+ placeholder: "YouTube"
+ validations:
+ required: false
+
+ - type: textarea
+ id: steps
+ attributes:
+ label: Steps to reproduce
+ description: Minimum steps to trigger the bug.
+ placeholder: |
+ 1. Paste URL X
+ 2. Select quality Y
+ 3. Click download
+ 4. See error Z
+ validations:
+ required: true
+
+ - type: textarea
+ id: expected
+ attributes:
+ label: Expected behavior
+ validations:
+ required: false
+
+ - type: textarea
+ id: logs
+ attributes:
+ label: Logs
+ description: Paste relevant output from the terminal or the log file. Remove any tokens/cookies before sharing.
+ render: shell
+ validations:
+ required: false
+
+ - type: checkboxes
+ id: checks
+ attributes:
+ label: Checks
+ options:
+ - label: I searched existing issues and this hasn't been reported yet
+ required: true
+ - label: I am on the latest release
+ required: true
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index 4def4444..f4bade07 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -1,8 +1,8 @@
-blank_issues_enabled: false
-contact_links:
- - name: Security vulnerability
- url: https://github.com/OpenSelena/omniget/security/policy
- about: Do not report security issues here. See the security policy.
- - name: Questions and discussion
- url: https://github.com/OpenSelena/omniget/discussions
- about: For general questions, ideas, or help — use Discussions.
+blank_issues_enabled: false
+contact_links:
+ - name: Security vulnerability
+ url: https://github.com/OpenSelena/libreget/security/policy
+ about: Do not report security issues here. See the security policy.
+ - name: Questions and discussion
+ url: https://github.com/OpenSelena/libreget/discussions
+ about: For general questions, ideas, or help — use Discussions.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f3df6011..0a3bf5fc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -63,12 +63,12 @@ jobs:
# Tauri Issue #11028 / #14580: On Windows, standalone test binaries for
# crates linking tauri/webview without an embedded application manifest
# fail to load comctl32.dll (0xc0000139 STATUS_ENTRYPOINT_NOT_FOUND).
- # omniget-plugin-courses is verified on Linux & macOS, and Windows GUI
+ # libreget-plugin-courses is verified on Linux & macOS, and Windows GUI
# integration is verified in the smoke job.
- name: Test (Windows)
if: matrix.platform == 'windows-latest'
working-directory: src-tauri
- run: cargo test --workspace --exclude omniget-plugin-courses
+ run: cargo test --workspace --exclude libreget-plugin-courses
rust-debian:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.user.login != 'weblate' }}
@@ -180,7 +180,7 @@ jobs:
- name: Smoke (modo padrao)
shell: bash
run: |
- BIN=src-tauri/target/debug/omniget
+ BIN=src-tauri/target/debug/libreget
[ "${{ matrix.platform }}" = "windows-latest" ] && BIN="$BIN.exe"
if [ "${{ matrix.platform }}" = "ubuntu-latest" ]; then
xvfb-run -a node scripts/smoke-test.mjs "$BIN"
@@ -194,7 +194,7 @@ jobs:
- name: Smoke (modo portatil)
shell: bash
run: |
- BIN=src-tauri/target/debug/omniget
+ BIN=src-tauri/target/debug/libreget
[ "${{ matrix.platform }}" = "windows-latest" ] && BIN="$BIN.exe"
if [ "${{ matrix.platform }}" = "ubuntu-latest" ]; then
xvfb-run -a node scripts/smoke-test.mjs "$BIN" --portable
@@ -214,4 +214,4 @@ jobs:
sudo apt-get install -y appstream
- name: Validate flatpak metainfo
- run: appstreamcli validate flatpak/com.openselena.omniget.metainfo.xml
+ run: appstreamcli validate flatpak/com.openselena.libreget.metainfo.xml
diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml
index 8d08a0e9..9c0629b0 100644
--- a/.github/workflows/homebrew.yml
+++ b/.github/workflows/homebrew.yml
@@ -47,14 +47,14 @@ jobs:
set -euo pipefail
version="${TAG#v}"
base="https://github.com/$REPO/releases/download/$TAG"
- curl -fsSL -o arm.dmg "$base/omniget_${version}_aarch64.dmg"
- curl -fsSL -o intel.dmg "$base/omniget_${version}_x64.dmg"
+ curl -fsSL -o arm.dmg "$base/libreget_${version}_aarch64.dmg"
+ curl -fsSL -o intel.dmg "$base/libreget_${version}_x64.dmg"
arm_sha=$(sha256sum arm.dmg | cut -d' ' -f1)
intel_sha=$(sha256sum intel.dmg | cut -d' ' -f1)
mkdir -p tap/Casks
- cask=tap/Casks/omniget.rb
+ cask=tap/Casks/libreget.rb
{
- echo 'cask "omniget" do'
+ echo 'cask "libreget" do'
echo " version \"$version\""
echo ""
echo " on_arm do"
@@ -73,16 +73,16 @@ jobs:
echo " app \"omniget.app\""
echo ""
echo " zap trash: ["
- echo " \"~/Library/Application Support/com.openselena.omniget\","
- echo " \"~/Library/Caches/com.openselena.omniget\","
+ echo " \"~/Library/Application Support/com.openselena.libreget\","
+ echo " \"~/Library/Caches/com.openselena.libreget\","
echo " ]"
echo "end"
} > "$cask"
cd tap
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- git add Casks/omniget.rb
+ git add Casks/libreget.rb
git diff --cached --quiet && { echo "cask already at $version"; exit 0; }
- git commit -m "omniget $version"
+ git commit -m "libreget $version"
git push
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1379fa44..741ca527 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -98,14 +98,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
- LDAI_UPDATE_INFORMATION: ${{ contains(matrix.platform, 'ubuntu') && 'gh-releases-zsync|OpenSelena|omniget|latest|*AppImage.zsync' || '' }}
+ LDAI_UPDATE_INFORMATION: ${{ contains(matrix.platform, 'ubuntu') && 'gh-releases-zsync|OpenSelena|libreget|latest|*AppImage.zsync' || '' }}
# linuxdeploy bundles an old `strip` that fails on modern .relr.dyn
# relocations; disable stripping so AppImage bundling succeeds.
NO_STRIP: ${{ contains(matrix.platform, 'ubuntu') && '1' || '' }}
NODE_OPTIONS: --max-old-space-size=6144
with:
tagName: v__VERSION__
- releaseName: 'OmniGet v__VERSION__'
+ releaseName: 'LibreGet v__VERSION__'
releaseBody: |
## Downloads
@@ -118,26 +118,26 @@ jobs:
### Debian/Ubuntu users: AppImage compatibility
**Debian 12+ ships without FUSE 2 by default**, which AppImage requires.
- If `./omniget.AppImage` fails with a libfuse error, run:
+ If `./libreget.AppImage` fails with a libfuse error, run:
```bash
sudo apt install libfuse2
```
- ...or use `./omniget.AppImage --appimage-extract-and-run`.
+ ...or use `./libreget.AppImage --appimage-extract-and-run`.
**Easier alternative**: download the `.deb` instead, which works out of the
box on Debian 12+ and Ubuntu 22.04+.
---
- ### macOS users: "OmniGet is damaged and can't be opened"
+ ### macOS users: "LibreGet is damaged and can't be opened"
The app is not notarized with Apple yet, so Gatekeeper quarantines it.
After moving the app to `/Applications`, run:
```bash
- xattr -cr /Applications/omniget.app
+ xattr -cr /Applications/libreget.app
```
Then open it normally. If it still refuses, allow it under
@@ -147,7 +147,7 @@ jobs:
### Code signing policy
- Free code signing provided by [SignPath.io](https://about.signpath.io), certificate by [SignPath Foundation](https://signpath.org). Code changes and signed releases are reviewed and approved by the OpenSelena maintainers. See our [Privacy Policy](https://omniget.nav.bd/docs/#privacy).
+ Free code signing provided by [SignPath.io](https://about.signpath.io), certificate by [SignPath Foundation](https://signpath.org). Code changes and signed releases are reviewed and approved by the OpenSelena maintainers. See our [Privacy Policy](https://libreget.nav.bd/docs/#privacy).
releaseDraft: true
prerelease: false
includeUpdaterJson: false
@@ -190,7 +190,7 @@ jobs:
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: '773e0b25-f263-45c9-8f29-c7a6a1aed6db'
- project-slug: 'omniget'
+ project-slug: 'libreget'
signing-policy-slug: 'release-signing'
github-artifact-id: ${{ steps.upload-unsigned-setup.outputs.artifact-id }}
wait-for-completion: true
@@ -229,7 +229,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: unsigned-windows-portable
- path: src-tauri/target/release/omniget.exe
+ path: src-tauri/target/release/libreget.exe
if-no-files-found: warn
- name: Sign Windows portable binary via SignPath
@@ -239,7 +239,7 @@ jobs:
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: '773e0b25-f263-45c9-8f29-c7a6a1aed6db'
- project-slug: 'omniget'
+ project-slug: 'libreget'
signing-policy-slug: 'release-signing'
github-artifact-id: ${{ steps.upload-unsigned-portable.outputs.artifact-id }}
wait-for-completion: true
@@ -254,8 +254,8 @@ jobs:
$TAG = "${{ github.ref_name }}"
$VERSION = $TAG -replace '^v', ''
$SIGNED_PORTABLE = Get-ChildItem "src-tauri/target/release/portable-signed" -Filter "*.exe" -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1
- $SRC = if ($SIGNED_PORTABLE) { $SIGNED_PORTABLE.FullName } else { "src-tauri/target/release/omniget.exe" }
- $DEST = "omniget_${VERSION}_x64-portable.exe"
+ $SRC = if ($SIGNED_PORTABLE) { $SIGNED_PORTABLE.FullName } else { "src-tauri/target/release/libreget.exe" }
+ $DEST = "libreget_${VERSION}_x64-portable.exe"
if (Test-Path $SRC) {
Write-Host "Uploading portable binary from $SRC to $DEST..."
Copy-Item $SRC $DEST
@@ -272,16 +272,16 @@ jobs:
TAG="${GITHUB_REF#refs/tags/}"
VERSION="${TAG#v}"
if [ "${{ matrix.platform }}" = "macos-latest" ]; then
- cargo build -p omniget-cli --release --target ${{ matrix.cli_target }} --manifest-path src-tauri/Cargo.toml
- BIN="src-tauri/target/${{ matrix.cli_target }}/release/omniget-cli"
+ cargo build -p libreget-cli --release --target ${{ matrix.cli_target }} --manifest-path src-tauri/Cargo.toml
+ BIN="src-tauri/target/${{ matrix.cli_target }}/release/libreget-cli"
else
- cargo build -p omniget-cli --release --manifest-path src-tauri/Cargo.toml
- BIN="src-tauri/target/release/omniget-cli"
+ cargo build -p libreget-cli --release --manifest-path src-tauri/Cargo.toml
+ BIN="src-tauri/target/release/libreget-cli"
fi
test -x "$BIN"
"$BIN" --version
- OUT="omniget-cli-${VERSION}-${{ matrix.cli_target }}.tar.gz"
- tar -czf "$OUT" -C "$(dirname "$BIN")" omniget-cli
+ OUT="libreget-cli-${VERSION}-${{ matrix.cli_target }}.tar.gz"
+ tar -czf "$OUT" -C "$(dirname "$BIN")" libreget-cli
gh release upload "$TAG" "$OUT" --repo "${{ github.repository }}" --clobber
- name: Package and upload CLI (Windows)
@@ -292,11 +292,11 @@ jobs:
$ErrorActionPreference = "Stop"
$TAG = "${{ github.ref_name }}"
$VERSION = $TAG -replace '^v', ''
- cargo build -p omniget-cli --release --manifest-path src-tauri/Cargo.toml
- $BIN = "src-tauri/target/release/omniget-cli.exe"
+ cargo build -p libreget-cli --release --manifest-path src-tauri/Cargo.toml
+ $BIN = "src-tauri/target/release/libreget-cli.exe"
if (-not (Test-Path $BIN)) { throw "Binary not found: $BIN" }
& $BIN --version
- $OUT = "omniget-cli-${VERSION}-${{ matrix.cli_target }}.zip"
+ $OUT = "libreget-cli-${VERSION}-${{ matrix.cli_target }}.zip"
Compress-Archive -Path $BIN -DestinationPath $OUT -Force
gh release upload $TAG $OUT --repo ${{ github.repository }} --clobber
shell: pwsh
@@ -318,7 +318,7 @@ jobs:
run: |
TAG="${GITHUB_REF#refs/tags/}"
VERSION="${TAG#v}"
- OUTPUT="omniget-chrome-extension-v${VERSION}.zip"
+ OUTPUT="libreget-chrome-extension-v${VERSION}.zip"
node browser-extension/chrome/scripts/package.mjs --version "$VERSION" --output "$OUTPUT"
gh release upload "$TAG" "$OUTPUT" --repo "${{ github.repository }}" --clobber
env:
diff --git a/.github/workflows/signpath-test.yml b/.github/workflows/signpath-test.yml
index 11829af0..2001b9ee 100644
--- a/.github/workflows/signpath-test.yml
+++ b/.github/workflows/signpath-test.yml
@@ -45,7 +45,7 @@ jobs:
with:
workspaces: './src-tauri -> target'
- - name: Build OmniGet Windows application
+ - name: Build LibreGet Windows application
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
@@ -55,8 +55,8 @@ jobs:
id: upload-unsigned
uses: actions/upload-artifact@v4
with:
- name: unsigned-omniget-binary
- path: src-tauri/target/release/omniget.exe
+ name: unsigned-libreget-binary
+ path: src-tauri/target/release/libreget.exe
if-no-files-found: error
- name: Submit test-signing request to SignPath
@@ -65,7 +65,7 @@ jobs:
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: '773e0b25-f263-45c9-8f29-c7a6a1aed6db'
- project-slug: 'omniget'
+ project-slug: 'libreget'
signing-policy-slug: 'test-signing'
github-artifact-id: ${{ steps.upload-unsigned.outputs.artifact-id }}
wait-for-completion: true
@@ -92,6 +92,6 @@ jobs:
- name: Upload signed test artifact
uses: actions/upload-artifact@v4
with:
- name: signed-omniget-test-binary
+ name: signed-libreget-test-binary
path: signed-output/**
diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml
index 120b6d63..dc09eeaa 100644
--- a/.github/workflows/winget.yml
+++ b/.github/workflows/winget.yml
@@ -1,42 +1,42 @@
-# Issue #203: the winget manifest drifted seven releases behind because it was
-# submitted by hand. Runs when a draft release is published (not on tag push —
-# drafts have no public download URLs yet) and opens a PR against
-# microsoft/winget-pkgs. Requires the WINGET_TOKEN secret: a classic PAT with
-# public_repo scope, used by wingetcreate to fork and open the PR.
-name: Publish to winget
-
-on:
- release:
- types: [released]
- workflow_dispatch:
- inputs:
- tag:
- description: 'Release tag to publish (e.g. v0.8.9)'
- required: true
-
-permissions:
- contents: read
-
-jobs:
- winget:
- runs-on: windows-latest
- steps:
- - name: Submit manifest update
- shell: pwsh
- env:
- WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
- TAG: ${{ github.event.release.tag_name || inputs.tag }}
- REPO: ${{ github.repository }}
- run: |
- if (-not $env:WINGET_TOKEN) {
- Write-Host "::warning::WINGET_TOKEN secret not set - skipping winget submission"
- exit 0
- }
- $version = $env:TAG.TrimStart('v')
- $url = "https://github.com/$env:REPO/releases/download/$env:TAG/OmniGet_${version}_x64-setup.exe"
- Invoke-WebRequest -Uri 'https://aka.ms/wingetcreate/latest' -OutFile wingetcreate.exe
- .\wingetcreate.exe update OpenSelena.OmniGet `
- --version $version `
- --urls $url `
- --submit `
- --token $env:WINGET_TOKEN
+# Issue #203: the winget manifest drifted seven releases behind because it was
+# submitted by hand. Runs when a draft release is published (not on tag push —
+# drafts have no public download URLs yet) and opens a PR against
+# microsoft/winget-pkgs. Requires the WINGET_TOKEN secret: a classic PAT with
+# public_repo scope, used by wingetcreate to fork and open the PR.
+name: Publish to winget
+
+on:
+ release:
+ types: [released]
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: 'Release tag to publish (e.g. v0.8.9)'
+ required: true
+
+permissions:
+ contents: read
+
+jobs:
+ winget:
+ runs-on: windows-latest
+ steps:
+ - name: Submit manifest update
+ shell: pwsh
+ env:
+ WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
+ TAG: ${{ github.event.release.tag_name || inputs.tag }}
+ REPO: ${{ github.repository }}
+ run: |
+ if (-not $env:WINGET_TOKEN) {
+ Write-Host "::warning::WINGET_TOKEN secret not set - skipping winget submission"
+ exit 0
+ }
+ $version = $env:TAG.TrimStart('v')
+ $url = "https://github.com/$env:REPO/releases/download/$env:TAG/LibreGet_${version}_x64-setup.exe"
+ Invoke-WebRequest -Uri 'https://aka.ms/wingetcreate/latest' -OutFile wingetcreate.exe
+ .\wingetcreate.exe update OpenSelena.LibreGet `
+ --version $version `
+ --urls $url `
+ --submit `
+ --token $env:WINGET_TOKEN
diff --git a/AGENTS.md b/AGENTS.md
index 9edb6d79..418c3730 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,6 +1,6 @@
-# OmniGet Agent Instructions & Release Protocol
+# LibreGet Agent Instructions & Release Protocol
-Welcome to OmniGet. This file serves as the definitive reference and operating manual for all AI agents working in this repository.
+Welcome to LibreGet. This file serves as the definitive reference and operating manual for all AI agents working in this repository.
---
@@ -20,7 +20,7 @@ Welcome to OmniGet. This file serves as the definitive reference and operating m
> [!IMPORTANT]
> **NEVER skip writing the release notes, updating the landing page, or updating the documentation when cutting or preparing a release.**
-> The in-app changelog modal (`src/lib/stores/changelog-store.svelte.ts`) fetches the GitHub release body directly from `https://api.github.com/repos/OpenSelena/omniget/releases/tags/v<VERSION>`. Leaving release notes blank breaks the in-app user experience.
+> The in-app changelog modal (`src/lib/stores/changelog-store.svelte.ts`) fetches the GitHub release body directly from `https://api.github.com/repos/OpenSelena/libreget/releases/tags/v<VERSION>`. Leaving release notes blank breaks the in-app user experience.
### Standard Operating Procedure for Every Release:
@@ -66,7 +66,7 @@ Welcome to OmniGet. This file serves as the definitive reference and operating m
5. **Asset Name & Casing Verification**:
- Check the exact asset filenames uploaded by Tauri (`gh release view vX.Y.Z --json assets`).
- - Notice casing: e.g. `OmniGet_0.11.0_x64-setup.exe` (capitalized `OmniGet`) vs `omniget_0.11.0_x64-portable.exe` (lowercase `omniget`).
+ - Notice casing: e.g. `LibreGet_0.11.0_x64-setup.exe` (capitalized `OmniGet`) vs `libreget_0.11.0_x64-portable.exe` (lowercase `omniget`).
- Ensure `index.html` download buttons use the exact asset filenames.
---
@@ -90,7 +90,7 @@ Before pushing to `dev`:
### Issue tracker
-GitHub Issues at OpenSelena/omniget via the `gh` CLI. See `docs/agents/issue-tracker.md`.
+GitHub Issues at OpenSelena/libreget via the `gh` CLI. See `docs/agents/issue-tracker.md`.
### Triage labels
@@ -102,7 +102,7 @@ Single-context (`GLOSSARY.md` and `docs/adr/`). See `docs/agents/domain.md`.
### Video datasets from the CLI
-`omniget-cli search` + `omniget-cli archive` build a resumable local video archive (search terms, filters, size cap). See [.agents/skills/video-archive/SKILL.md](.agents/skills/video-archive/SKILL.md).
+`libreget-cli search` + `omniget-cli archive` build a resumable local video archive (search terms, filters, size cap). See [.agents/skills/video-archive/SKILL.md](.agents/skills/video-archive/SKILL.md).
---
diff --git a/DESIGN.md b/DESIGN.md
index cb60cbe7..1bf5f899 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -1,7 +1,7 @@
---
version: alpha
-name: OmniGet Universal Studio & OmniGuard Security Suite
-description: Precision local media workbench and privacy security suite for OmniGet, OmniGuard, and Nami.
+name: LibreGet Universal Studio & OmniGuard Security Suite
+description: Precision local media workbench and privacy security suite for LibreGet, OmniGuard, and Nami.
colors:
primary: "#FF7D38"
primary-container: "#F28500"
@@ -91,9 +91,9 @@ components:
padding: 16px
---
-# Design System: OmniGet Universal Studio & OmniGuard Security Suite
+# Design System: LibreGet Universal Studio & OmniGuard Security Suite
-Design specification for OmniGet desktop suite, OmniGuard privacy shield, and Nami social archiver.
+Design specification for LibreGet desktop suite, OmniGuard privacy shield, and Nami social archiver.
## Overview
- **Core Mental Model**: Precision local media workbench. Unifies high-velocity media extraction with offline reading, Hi-Fi listening, and verifiable system security.
diff --git a/flatpak/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch b/flatpak/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch
index 3da14991..5c4cf718 100644
--- a/flatpak/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch
+++ b/flatpak/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch
@@ -1,5 +1,5 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: OmniGet <[email protected]>
+From: LibreGet <[email protected]>
Subject: [PATCH] Fix HAVE_VALGRIND AM_CONDITIONAL not defined when tests
disabled
diff --git a/flatpak/0001-Make-introspection-configurable.patch b/flatpak/0001-Make-introspection-configurable.patch
index 9950b93f..ffa05e16 100644
--- a/flatpak/0001-Make-introspection-configurable.patch
+++ b/flatpak/0001-Make-introspection-configurable.patch
@@ -1,5 +1,5 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: OmniGet <[email protected]>
+From: LibreGet <[email protected]>
Subject: [PATCH] Make GObject introspection configurable
Add ENABLE_INTROSPECTION cmake option so introspection can be disabled
diff --git a/flatpak/flathub-submission/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch b/flatpak/flathub-submission/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch
index 3da14991..5c4cf718 100644
--- a/flatpak/flathub-submission/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch
+++ b/flatpak/flathub-submission/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch
@@ -1,5 +1,5 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: OmniGet <[email protected]>
+From: LibreGet <[email protected]>
Subject: [PATCH] Fix HAVE_VALGRIND AM_CONDITIONAL not defined when tests
disabled
diff --git a/flatpak/flathub-submission/0001-Make-introspection-configurable.patch b/flatpak/flathub-submission/0001-Make-introspection-configurable.patch
index 9950b93f..ffa05e16 100644
--- a/flatpak/flathub-submission/0001-Make-introspection-configurable.patch
+++ b/flatpak/flathub-submission/0001-Make-introspection-configurable.patch
@@ -1,5 +1,5 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: OmniGet <[email protected]>
+From: LibreGet <[email protected]>
Subject: [PATCH] Make GObject introspection configurable
Add ENABLE_INTROSPECTION cmake option so introspection can be disabled
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 782f89ec..5aa6601a 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -6,7 +6,7 @@
# compiler so host and plugin builds agree by construction.
#
# Bumping this version requires rebuilding and re-releasing every plugin in
-# OpenSelena/omniget-plugins. Keep it in sync across all plugin repos.
+# OpenSelena/libreget-plugins. Keep it in sync across all plugin repos.
[toolchain]
channel = "1.97.0"
components = ["rustfmt", "clippy"]
diff --git a/scripts/a11y-audit.mjs b/scripts/a11y-audit.mjs
index 205329dd..dd8a243c 100644
--- a/scripts/a11y-audit.mjs
+++ b/scripts/a11y-audit.mjs
@@ -107,7 +107,7 @@ async function keyboardPass(browser, route, tabs) {
async function main() {
let devProc = null;
if (!(await waitForServer(BASE, 2000))) {
- devProc = spawn("pnpm", ["dev"], { env: { ...process.env, OMNIGET_I18N_STRICT: "0" }, stdio: "ignore" });
+ devProc = spawn("pnpm", ["dev"], { env: { ...process.env, LIBREGET_I18N_STRICT: "0" }, stdio: "ignore" });
if (!(await waitForServer(BASE, 90000))) { console.error("dev server down"); process.exit(1); }
}
const browser = await chromium.launch();
diff --git a/scripts/bump-version.js b/scripts/bump-version.js
index 0399294d..3abc62fa 100644
--- a/scripts/bump-version.js
+++ b/scripts/bump-version.js
@@ -121,7 +121,7 @@ const cargoLockPath = path.join(root, "src-tauri", "Cargo.lock");
if (fs.existsSync(cargoLockPath)) {
writeText(cargoLockPath, (content) => {
return content.replace(
- /(name = "omniget"\nversion = ")([^"]+)(")/,
+ /(name = "libreget"\nversion = ")([^"]+)(")/,
(_, a, _b, c) => `${a}${version}${c}`
);
});
@@ -161,9 +161,9 @@ function updateLandingPageContent(content) {
.replace(/releases\/tag\/v\d+\.\d+\.\d+\/download\/[^\s"'<>\\]+/g, (m) =>
m.replace(/v\d+\.\d+\.\d+(?=\/download)/, `v${version}`).replace(/\d+\.\d+\.\d+/g, version)
)
- .replace(/OmniGet v\d+\.\d+\.\d+\. Free and open source/g, `OmniGet v${version}. Free and open source`)
+ .replace(/LibreGet v\d+\.\d+\.\d+\. Free and open source/g, `LibreGet v${version}. Free and open source`)
.replace(/releases\/tag\/v\d+\.\d+\.\d+/g, `releases/tag/v${version}`)
- .replace(/Get OmniGet v\d+\.\d+\.\d+/g, `Get OmniGet v${version}`);
+ .replace(/Get LibreGet v\d+\.\d+\.\d+/g, `Get LibreGet v${version}`);
}
const indexPath = path.join(root, "index.html");
@@ -216,7 +216,7 @@ function hasBinary(name) {
}
}
-const metainfoAbs = path.join(root, "flatpak", "com.openselena.omniget.metainfo.xml");
+const metainfoAbs = path.join(root, "flatpak", "com.openselena.libreget.metainfo.xml");
if (hasBinary("appstreamcli")) {
try {
execSync(`appstreamcli validate "${metainfoAbs}"`, { stdio: "inherit" });
diff --git a/scripts/clippy-baseline.mjs b/scripts/clippy-baseline.mjs
index a89cf29c..4bf51c3a 100644
--- a/scripts/clippy-baseline.mjs
+++ b/scripts/clippy-baseline.mjs
@@ -44,7 +44,14 @@ function runClippy() {
const child = spawn(
"cargo",
["clippy", "--workspace", "--all-targets", "--message-format=json"],
- { cwd: path.join(root, "src-tauri"), shell: process.platform === "win32" },
+ {
+ cwd: path.join(root, "src-tauri"),
+ shell: process.platform === "win32",
+ env: {
+ ...process.env,
+ PKG_CONFIG_PATH: process.env.PKG_CONFIG_PATH || "/usr/lib64/pkgconfig:/usr/share/pkgconfig",
+ },
+ },
);
let stdout = "";
diff --git a/scripts/contrast-audit.mjs b/scripts/contrast-audit.mjs
index 68899d3d..275c1f25 100644
--- a/scripts/contrast-audit.mjs
+++ b/scripts/contrast-audit.mjs
@@ -1,4 +1,4 @@
-// WCAG contrast audit for OmniGet themes.
+// WCAG contrast audit for LibreGet themes.
// Computes ratio for: text-muted/surface, text-muted/surface-hi, text-dim/surface.
const themes = [
diff --git a/scripts/deploy-plugins-local.mjs b/scripts/deploy-plugins-local.mjs
index 7591bcb1..72fbcd74 100644
--- a/scripts/deploy-plugins-local.mjs
+++ b/scripts/deploy-plugins-local.mjs
@@ -11,31 +11,32 @@ const root = path.resolve(__dirname, "..");
const parent = path.resolve(root, "..");
const PLUGINS = [
- { id: "courses", repo: "omniget-plugin-courses", crate: "omniget_plugin_courses" },
- { id: "telegram", repo: "omniget-plugin-telegram", crate: "omniget_plugin_telegram" },
- { id: "convert", repo: "omniget-plugin-convert", crate: "omniget_plugin_convert" },
+ { id: "courses", repo: "libreget-plugin-courses", crate: "libreget_plugin_courses" },
+ { id: "telegram", repo: "libreget-plugin-telegram", crate: "libreget_plugin_telegram" },
+ { id: "convert", repo: "libreget-plugin-convert", crate: "libreget_plugin_convert" },
];
function appDataPluginsDir() {
- if (process.env.OMNIGET_DATA_DIR) {
- return path.join(process.env.OMNIGET_DATA_DIR, "plugins");
+ const dataDir = process.env.LIBREGET_DATA_DIR || process.env.OMNIGET_DATA_DIR;
+ if (dataDir) {
+ return path.join(dataDir, "plugins");
}
const platform = process.platform;
if (platform === "win32") {
const base = process.env.APPDATA || path.join(os.homedir(), "AppData", "Roaming");
- return path.join(base, "com.openselena.omniget", "plugins");
+ return path.join(base, "com.openselena.libreget", "plugins");
}
if (platform === "darwin") {
return path.join(
os.homedir(),
"Library",
"Application Support",
- "com.openselena.omniget",
+ "com.openselena.libreget",
"plugins",
);
}
const xdg = process.env.XDG_DATA_HOME || path.join(os.homedir(), ".local", "share");
- return path.join(xdg, "com.openselena.omniget", "plugins");
+ return path.join(xdg, "com.openselena.libreget", "plugins");
}
function dllFilename(crate) {
@@ -66,8 +67,8 @@ function buildPlugin(repoDir) {
}
function main() {
- if (process.env.OMNIGET_SKIP_PLUGIN_DEPLOY === "1") {
- console.log("OMNIGET_SKIP_PLUGIN_DEPLOY=1 — skipping plugin deployment.");
+ if (process.env.LIBREGET_SKIP_PLUGIN_DEPLOY === "1" || process.env.OMNIGET_SKIP_PLUGIN_DEPLOY === "1") {
+ console.log("LIBREGET_SKIP_PLUGIN_DEPLOY=1 — skipping plugin deployment.");
return;
}
@@ -126,7 +127,7 @@ function main() {
if (deployedAny) {
const json = JSON.stringify({ plugins: installed }, null, 2);
fs.writeFileSync(path.join(pluginsDir, "installed.json"), json);
- console.log("Done. Restart OmniGet to load plugins.");
+ console.log("Done. Restart LibreGet to load plugins.");
} else {
console.log("No local plugin repos found — nothing to deploy.");
}
diff --git a/scripts/e2e_verify.mjs b/scripts/e2e_verify.mjs
index 161ac85b..709eb36d 100644
--- a/scripts/e2e_verify.mjs
+++ b/scripts/e2e_verify.mjs
@@ -1,7 +1,7 @@
#!/usr/bin/env node
/**
- * OmniGet Documentation Suite E2E Test Runner & Verification Harness
+ * LibreGet Documentation Suite E2E Test Runner & Verification Harness
*
* Implements a 4-tier opaque-box test architecture validating:
* - Tier 1: Feature Coverage (Links, Search Modal, Theme, Copy Buttons, Immutability)
@@ -30,7 +30,7 @@ const CYAN = '\x1b[36m';
const GRAY = '\x1b[90m';
console.log(`${BOLD}${CYAN}========================================================================${RESET}`);
-console.log(`${BOLD}${CYAN} OmniGet Documentation Suite: Comprehensive E2E Verification Harness ${RESET}`);
+console.log(`${BOLD}${CYAN} LibreGet Documentation Suite: Comprehensive E2E Verification Harness ${RESET}`);
console.log(`${BOLD}${CYAN}========================================================================${RESET}`);
console.log(`${GRAY}Mode: Opaque-Box Native Node Harness | Target: 7 Doc Pages + Root Landing Page${RESET}\n`);
diff --git a/scripts/flathub_submission_wizard.sh b/scripts/flathub_submission_wizard.sh
index 2e30627c..275257e1 100644
--- a/scripts/flathub_submission_wizard.sh
+++ b/scripts/flathub_submission_wizard.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# OmniGet Flathub Submission Wizard
+# LibreGet Flathub Submission Wizard
# Walks the maintainer through the official Flathub submission process step-by-step,
# ensuring full compliance with Flathub's submission guidelines and Generative AI policy.
@@ -26,7 +26,7 @@ banner() {
_clear
printf '\n%s%s %s%s\n' "$BOLD" "$BLUE" "$1" "$RESET"
printf '%s %s stages%s\n\n' "$DIM" "$TOTAL_STAGES" "$RESET"
- printf '%s This wizard guides you through submitting OmniGet (com.openselena.omniget)\n' "$DIM"
+ printf '%s This wizard guides you through submitting LibreGet (com.openselena.libreget)\n' "$DIM"
printf ' to Flathub upstream (flathub/flathub). It prepares the fork, copies the\n'
printf ' offline-pinned build manifest, and creates the PR compliant with Flathub policy.%s\n\n' "$RESET"
pause "Press Enter to start"
@@ -68,7 +68,7 @@ run_wizard() {
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
local submission_dir="$repo_root/flatpak/flathub-submission"
- banner "OmniGet Flathub Upstream Submission"
+ banner "LibreGet Flathub Upstream Submission"
# Stage 1: Prerequisites
stage "Prerequisites Verification"
@@ -95,7 +95,7 @@ run_wizard() {
# Stage 2: Linux Demo Video
stage "Demo Screencast Video"
say "Flathub submission policy requires a video showcasing the app running on Linux."
- step "On Fedora GNOME, press `Print Screen` or `Ctrl+Shift+Alt+R` to record a 15-30 second demo of OmniGet."
+ step "On Fedora GNOME, press `Print Screen` or `Ctrl+Shift+Alt+R` to record a 15-30 second demo of LibreGet."
step "Upload the recording (YouTube unlisted, Google Drive, Streamable, or GitHub issue attachment)."
say ""
local video_url=""
@@ -126,7 +126,7 @@ run_wizard() {
cd "$work_dir"
say "Fetching upstream new-pr branch..."
git fetch upstream new-pr:upstream-new-pr 2>/dev/null || git fetch origin new-pr:upstream-new-pr
- local branch_name="add-com.openselena.omniget"
+ local branch_name="add-com.openselena.libreget"
if git rev-parse --verify "$branch_name" >/dev/null 2>&1; then
git checkout "$branch_name"
else
@@ -138,13 +138,13 @@ run_wizard() {
# Stage 5: Copy Files
stage "Staging Flathub Packaging Files"
cd "$work_dir"
- say "Copying verified submission files from OmniGet repository..."
+ say "Copying verified submission files from LibreGet repository..."
cp -v "$submission_dir"/0001-*.patch .
cp -v "$submission_dir"/cargo-sources.json .
cp -v "$submission_dir"/node-sources.json .
cp -v "$submission_dir"/package-lock.json .
- cp -v "$submission_dir"/com.openselena.omniget.yml .
- git add 0001-*.patch cargo-sources.json node-sources.json package-lock.json com.openselena.omniget.yml
+ cp -v "$submission_dir"/com.openselena.libreget.yml .
+ git add 0001-*.patch cargo-sources.json node-sources.json package-lock.json com.openselena.libreget.yml
printf ' %s✓ Manifest, patches, and lockfiles staged.%s\n\n' "$GREEN" "$RESET"
pause
@@ -155,7 +155,7 @@ run_wizard() {
if git diff --cached --quiet; then
note "No changes to commit."
else
- git commit -m "Add com.openselena.omniget"
+ git commit -m "Add com.openselena.libreget"
fi
if confirm "Push $branch_name to your fork?"; then
git push -u origin "$branch_name"
@@ -172,14 +172,14 @@ run_wizard() {
pr_body=$(cat <<EOF
### Please confirm your submission meets all the criteria
-- [x] Please describe the application briefly. < OmniGet is an open-source desktop multimedia downloader and study companion supporting YouTube, Torrent, Skool, Udemy, and local playback on Linux. >
+- [x] Please describe the application briefly. < LibreGet is an open-source desktop multimedia downloader and study companion supporting YouTube, Torrent, Skool, Udemy, and local playback on Linux. >
- [x] Please attach a video showcasing the application on Linux using the Flatpak. < $video_url >
- [x] The Flatpak ID follows all the rules listed in the Application ID requirements https://docs.flathub.org/docs/for-app-authors/requirements#application-id.
- [x] I have read and followed all the Submission requirements https://docs.flathub.org/docs/for-app-authors/requirements and the Submission guide https://docs.flathub.org/docs/for-app-authors/submission and I agree to them.
- [x] The application has a meaningful development history, evidence of real-world use, and a clear commitment to ongoing maintenance, as required by the development history requirements https://docs.flathub.org/docs/for-app-authors/requirements#insufficient-development-history.
- [x] I have disclosed any AI-generated material included in the application or its Flathub packaging, as required by the Generative AI policy https://docs.flathub.org/docs/for-app-authors/requirements#generative-ai-policy. Affected parts and approximate extent: < Offline dependency manifests (cargo-sources.json and node-sources.json) were pinned using community generator tools flatpak-cargo-generator and flatpak-node-generator. Application code is written and maintained by the project authors. >
- [x] I have not used AI tools or agents to generate or automate this submission pull request or its review interactions.
-- [x] I am an author/developer to the project. Link: https://github.com/OpenSelena/omniget
+- [x] I am an author/developer to the project. Link: https://github.com/OpenSelena/libreget
EOF
)
@@ -189,12 +189,12 @@ EOF
--repo flathub/flathub \
--base new-pr \
--head "igect:$branch_name" \
- --title "Add com.openselena.omniget" \
+ --title "Add com.openselena.libreget" \
--body "$pr_body"
printf '\n%s%s✓ Pull Request submitted to flathub/flathub!%s\n' "$BOLD" "$GREEN" "$RESET"
else
say "You can submit the PR later via web or terminal when ready:"
- printf 'gh pr create --repo flathub/flathub --base new-pr --title "Add com.openselena.omniget"\n'
+ printf 'gh pr create --repo flathub/flathub --base new-pr --title "Add com.openselena.libreget"\n'
fi
_clear
diff --git a/scripts/lint-ui.mjs b/scripts/lint-ui.mjs
index 24f04921..b913abcb 100644
--- a/scripts/lint-ui.mjs
+++ b/scripts/lint-ui.mjs
@@ -1,7 +1,7 @@
#!/usr/bin/env node
// @ts-nocheck
/**
- * OmniGet Targeted UI Linter (powered by lintapple + Playwright)
+ * LibreGet Targeted UI Linter (powered by lintapple + Playwright)
*
* Audits rendered UI against explicit design policies:
* - ui-policy.app.json : Svelte 5 desktop routes (1100x720 & 800x560, 28px controls, baseline diffing)
@@ -221,10 +221,10 @@ export function compareTargetBaseline(surface, currentCounts = {}, baselineCount
export function buildTauriMockInitScript(theme = "dark") {
return `
(() => {
- window.__OMNIGET_LINT_THEME__ = ${JSON.stringify(theme)};
+ window.__LIBREGET_LINT_THEME__ = ${JSON.stringify(theme)};
try {
- localStorage.setItem("omniget_last_seen_version", "0.12.0");
- localStorage.setItem("omniget_docs_theme", ${JSON.stringify(theme)});
+ localStorage.setItem("libreget_last_seen_version", "0.12.0");
+ localStorage.setItem("libreget_docs_theme", ${JSON.stringify(theme)});
localStorage.setItem("theme", ${JSON.stringify(theme)});
} catch {}
@@ -232,7 +232,7 @@ export function buildTauriMockInitScript(theme = "dark") {
schema_version: 1,
appearance: { theme: ${JSON.stringify(theme)}, language: "en" },
download: {
- default_output_dir: "C:\\\\Users\\\\user\\\\Downloads\\\\OmniGet",
+ default_output_dir: "C:\\\\Users\\\\user\\\\Downloads\\\\LibreGet",
always_ask_path: false,
video_quality: "1080p",
skip_existing: true,
@@ -355,7 +355,7 @@ export function buildTauriMockInitScript(theme = "dark") {
eta: "00:18",
total_bytes: 157286400,
downloaded_bytes: 101449728,
- output_path: "C:\\\\Users\\\\user\\\\Downloads\\\\OmniGet\\\\lecture-01.mp4"
+ output_path: "C:\\\\Users\\\\user\\\\Downloads\\\\LibreGet\\\\lecture-01.mp4"
}
];
@@ -408,7 +408,7 @@ export function buildTauriMockInitScript(theme = "dark") {
case "plugin:app|version":
return "0.12.0";
case "plugin:app|name":
- return "OmniGet";
+ return "LibreGet";
case "plugin:event|listen":
return callbackId++;
case "plugin:event|unlisten":
@@ -473,7 +473,7 @@ async function ensureViteServer(port = 1420) {
{
cwd: ROOT_DIR,
stdio: ["ignore", "pipe", "pipe"],
- env: { ...process.env, OMNIGET_I18N_STRICT: "0" },
+ env: { ...process.env, LIBREGET_I18N_STRICT: "0" },
}
);
@@ -528,7 +528,7 @@ async function detectExistingDocsServer(candidatePorts = [8080, 4173, 3000, 5500
const res = await fetch(`${openUrl}/index.html`, { signal: AbortSignal.timeout(1000) });
if (res.ok) {
const text = await res.text();
- if (text.includes("OmniGet") && text.includes("docs/")) {
+ if (text.includes("LibreGet") && text.includes("docs/")) {
return openUrl;
}
}
@@ -610,7 +610,7 @@ async function auditTarget(browser, baseUrl, surface, target, themes, policy) {
} else {
await context.addInitScript((t) => {
try {
- localStorage.setItem("omniget_docs_theme", t);
+ localStorage.setItem("libreget_docs_theme", t);
localStorage.setItem("theme", t);
} catch {}
}, theme);
diff --git a/scripts/linux/linuxdeploy-plugin-gtk.sh b/scripts/linux/linuxdeploy-plugin-gtk.sh
index fd00f562..294531dd 100755
--- a/scripts/linux/linuxdeploy-plugin-gtk.sh
+++ b/scripts/linux/linuxdeploy-plugin-gtk.sh
@@ -1,6 +1,6 @@
#! /usr/bin/env bash
-# Vendored copy of linuxdeploy-plugin-gtk, patched for OmniGet.
+# Vendored copy of linuxdeploy-plugin-gtk, patched for LibreGet.
#
# Source: https://github.com/tauri-apps/linuxdeploy-plugin-gtk
# (a fork of https://github.com/linuxdeploy/linuxdeploy-plugin-gtk)
diff --git a/scripts/shots.mjs b/scripts/shots.mjs
index f77eb200..7364f416 100644
--- a/scripts/shots.mjs
+++ b/scripts/shots.mjs
@@ -76,7 +76,7 @@ const SETTINGS = {
schema_version: 1,
appearance: { theme: "dark", language: "en" },
download: {
- default_output_dir: "/Users/demo/Downloads/OmniGet",
+ default_output_dir: "/Users/demo/Downloads/LibreGet",
always_ask_path: false,
video_quality: "1080p",
skip_existing: true,
@@ -184,20 +184,20 @@ const PLUGINS = [
const now = Math.floor(Date.now() / 1000);
const HISTORY = [
- { id: 101, url: "https://www.youtube.com/watch?v=abc123", platform: "youtube", title: "Building a Desktop App with Tauri 2 — Full Walkthrough", file_path: "/Users/demo/Downloads/OmniGet/YouTube/tauri-walkthrough.mp4", file_size_bytes: 734003200, total_bytes: 734003200, success: true, error: null, completed_at: now - 3600, thumbnail_url: null, kind: "video" },
- { id: 102, url: "https://vimeo.com/9911223", platform: "vimeo", title: "Ambient Study Mix Vol. 4", file_path: "/Users/demo/Downloads/OmniGet/Vimeo/ambient-mix-4.m4a", file_size_bytes: 88080384, total_bytes: 88080384, success: true, error: null, completed_at: now - 7200, thumbnail_url: null, kind: "audio" },
+ { id: 101, url: "https://www.youtube.com/watch?v=abc123", platform: "youtube", title: "Building a Desktop App with Tauri 2 — Full Walkthrough", file_path: "/Users/demo/Downloads/LibreGet/YouTube/tauri-walkthrough.mp4", file_size_bytes: 734003200, total_bytes: 734003200, success: true, error: null, completed_at: now - 3600, thumbnail_url: null, kind: "video" },
+ { id: 102, url: "https://vimeo.com/9911223", platform: "vimeo", title: "Ambient Study Mix Vol. 4", file_path: "/Users/demo/Downloads/LibreGet/Vimeo/ambient-mix-4.m4a", file_size_bytes: 88080384, total_bytes: 88080384, success: true, error: null, completed_at: now - 7200, thumbnail_url: null, kind: "audio" },
{ id: 103, url: "https://www.instagram.com/p/Cxyz/", platform: "instagram", title: "Travel reel — Kyoto in autumn", file_path: null, file_size_bytes: null, total_bytes: null, success: false, error: "Login required: this post is from a private account", completed_at: now - 10800, thumbnail_url: null, kind: "video" },
- { id: 104, url: "https://twitter.com/user/status/1", platform: "twitter", title: "Thread screenshots (4 images)", file_path: "/Users/demo/Downloads/OmniGet/Twitter/thread-imgs", file_size_bytes: 8388608, total_bytes: 8388608, success: true, error: null, completed_at: now - 86400, thumbnail_url: null, kind: "image" },
- { id: 105, url: "https://www.reddit.com/r/rust/comments/xyz", platform: "reddit", title: "Why Rust for desktop apps — discussion", file_path: "/Users/demo/Downloads/OmniGet/Reddit/rust-desktop.mp4", file_size_bytes: 157286400, total_bytes: 157286400, success: true, error: null, completed_at: now - 172800, thumbnail_url: null, kind: "video" },
- { id: 106, url: "https://www.tiktok.com/@user/video/72", platform: "tiktok", title: "60-second pasta recipe", file_path: "/Users/demo/Downloads/OmniGet/TikTok/pasta.mp4", file_size_bytes: 26214400, total_bytes: 26214400, success: true, error: null, completed_at: now - 259200, thumbnail_url: null, kind: "video" },
+ { id: 104, url: "https://twitter.com/user/status/1", platform: "twitter", title: "Thread screenshots (4 images)", file_path: "/Users/demo/Downloads/LibreGet/Twitter/thread-imgs", file_size_bytes: 8388608, total_bytes: 8388608, success: true, error: null, completed_at: now - 86400, thumbnail_url: null, kind: "image" },
+ { id: 105, url: "https://www.reddit.com/r/rust/comments/xyz", platform: "reddit", title: "Why Rust for desktop apps — discussion", file_path: "/Users/demo/Downloads/LibreGet/Reddit/rust-desktop.mp4", file_size_bytes: 157286400, total_bytes: 157286400, success: true, error: null, completed_at: now - 172800, thumbnail_url: null, kind: "video" },
+ { id: 106, url: "https://www.tiktok.com/@user/video/72", platform: "tiktok", title: "60-second pasta recipe", file_path: "/Users/demo/Downloads/LibreGet/TikTok/pasta.mp4", file_size_bytes: 26214400, total_bytes: 26214400, success: true, error: null, completed_at: now - 259200, thumbnail_url: null, kind: "video" },
];
const QUEUE = [
- { id: 1, url: "https://www.youtube.com/watch?v=live1", platform: "youtube", title: "Conference Keynote 2026 — Day 1 (4K)", status: { type: "Active" }, percent: 42.5, speed_bytes_per_sec: 11534336, downloaded_bytes: 891289600, total_bytes: 2097152000, file_path: null, file_size_bytes: null, file_count: null, thumbnail_url: null, eta_seconds: 105, kind: "video", author: "Devs Conf", duration_seconds: 5412, phase: "downloading_video", planned_formats: ["299", "140"], stream: { format_id: "299", height: 1080, width: 1920, fps: 60, vcodec: "avc1.64002a", acodec: "none", ext: "mp4", filesize: 2097152000, format_note: "1080p60" }, fragment_index: 12, fragment_count: 25, started_at_ms: Date.now() - 83000, command: { program: "yt-dlp", args: [], display: "yt-dlp -f 'bv*[height<=1080]+ba[ext=m4a]/bv*[height<=1080]+ba/b' --ignore-config -N 8 --extractor-args 'youtube:player_client=default;formats=dashy' --throttled-rate 100K -o '/Users/demo/Downloads/OmniGet/%(title).200s [%(id)s].%(ext)s' https://www.youtube.com/watch?v=live1", attempt: 1, max_attempts: 3, player_client: "default", connections: 8, engine: "native", overridden: false } },
+ { id: 1, url: "https://www.youtube.com/watch?v=live1", platform: "youtube", title: "Conference Keynote 2026 — Day 1 (4K)", status: { type: "Active" }, percent: 42.5, speed_bytes_per_sec: 11534336, downloaded_bytes: 891289600, total_bytes: 2097152000, file_path: null, file_size_bytes: null, file_count: null, thumbnail_url: null, eta_seconds: 105, kind: "video", author: "Devs Conf", duration_seconds: 5412, phase: "downloading_video", planned_formats: ["299", "140"], stream: { format_id: "299", height: 1080, width: 1920, fps: 60, vcodec: "avc1.64002a", acodec: "none", ext: "mp4", filesize: 2097152000, format_note: "1080p60" }, fragment_index: 12, fragment_count: 25, started_at_ms: Date.now() - 83000, command: { program: "yt-dlp", args: [], display: "yt-dlp -f 'bv*[height<=1080]+ba[ext=m4a]/bv*[height<=1080]+ba/b' --ignore-config -N 8 --extractor-args 'youtube:player_client=default;formats=dashy' --throttled-rate 100K -o '/Users/demo/Downloads/LibreGet/%(title).200s [%(id)s].%(ext)s' https://www.youtube.com/watch?v=live1", attempt: 1, max_attempts: 3, player_client: "default", connections: 8, engine: "native", overridden: false } },
{ id: 5, url: "https://vimeo.com/123456", platform: "vimeo", title: "Product walkthrough — spring release", status: { type: "Active" }, percent: 3, speed_bytes_per_sec: 0, downloaded_bytes: 0, total_bytes: null, file_path: null, file_size_bytes: null, file_count: null, thumbnail_url: null, eta_seconds: null, kind: "video", phase: "fetching_info", started_at_ms: Date.now() - 4000 },
{ id: 2, url: "https://www.twitch.tv/videos/222", platform: "twitch", title: "Speedrun VOD — GDQ finals", status: { type: "Queued" }, percent: 0, speed_bytes_per_sec: 0, downloaded_bytes: 0, total_bytes: null, file_path: null, file_size_bytes: null, file_count: null, thumbnail_url: null, eta_seconds: null },
- { id: 3, url: "https://www.bilibili.com/video/BV1xx", platform: "bilibili", title: "Lo-fi mix for late nights", status: { type: "Complete" }, percent: 100, speed_bytes_per_sec: 0, downloaded_bytes: 104857600, total_bytes: 104857600, file_path: "/Users/demo/Downloads/OmniGet/Bilibili/lofi.mp4", file_size_bytes: 104857600, file_count: 1, thumbnail_url: null, eta_seconds: null },
- { id: 4, url: "https://www.youtube.com/watch?v=priv1", platform: "youtube", title: "Members-only masterclass", status: { type: "Error", data: { message: "ERROR: [youtube] priv1: Private video. Sign in if you've been granted access", retryable: false } }, percent: 0, speed_bytes_per_sec: 0, downloaded_bytes: 0, total_bytes: null, file_path: null, file_size_bytes: null, file_count: null, thumbnail_url: null, eta_seconds: null, kind: "video", author: "Masterclass Co.", command: { program: "yt-dlp", args: [], display: "yt-dlp -f 'bv*+ba[ext=m4a]/bv*+ba/b' --ignore-config -N 8 --extractor-args 'youtube:player_client=ios;formats=dashy' --cookies '/Users/demo/Library/Application Support/com.openselena.omniget/cookies/youtube.txt' -o '/Users/demo/Downloads/OmniGet/%(title).200s [%(id)s].%(ext)s' https://www.youtube.com/watch?v=priv1", attempt: 3, max_attempts: 3, player_client: "ios", connections: 8, engine: "native", overridden: false } },
+ { id: 3, url: "https://www.bilibili.com/video/BV1xx", platform: "bilibili", title: "Lo-fi mix for late nights", status: { type: "Complete" }, percent: 100, speed_bytes_per_sec: 0, downloaded_bytes: 104857600, total_bytes: 104857600, file_path: "/Users/demo/Downloads/LibreGet/Bilibili/lofi.mp4", file_size_bytes: 104857600, file_count: 1, thumbnail_url: null, eta_seconds: null },
+ { id: 4, url: "https://www.youtube.com/watch?v=priv1", platform: "youtube", title: "Members-only masterclass", status: { type: "Error", data: { message: "ERROR: [youtube] priv1: Private video. Sign in if you've been granted access", retryable: false } }, percent: 0, speed_bytes_per_sec: 0, downloaded_bytes: 0, total_bytes: null, file_path: null, file_size_bytes: null, file_count: null, thumbnail_url: null, eta_seconds: null, kind: "video", author: "Masterclass Co.", command: { program: "yt-dlp", args: [], display: "yt-dlp -f 'bv*+ba[ext=m4a]/bv*+ba/b' --ignore-config -N 8 --extractor-args 'youtube:player_client=ios;formats=dashy' --cookies '/Users/demo/Library/Application Support/com.openselena.libreget/cookies/youtube.txt' -o '/Users/demo/Downloads/LibreGet/%(title).200s [%(id)s].%(ext)s' https://www.youtube.com/watch?v=priv1", attempt: 3, max_attempts: 3, player_client: "ios", connections: 8, engine: "native", overridden: false } },
];
const REGISTRY = [
diff --git a/scripts/smoke-test.mjs b/scripts/smoke-test.mjs
index 1a1880b6..f54c776e 100644
--- a/scripts/smoke-test.mjs
+++ b/scripts/smoke-test.mjs
@@ -18,7 +18,7 @@ import { mkdtempSync, mkdirSync, writeFileSync, copyFileSync, existsSync, rmSync
import { tmpdir } from "node:os";
import { join, basename, resolve } from "node:path";
-const BANNER = /OmniGet .* starting — pid \d+, (standard|portable) mode/;
+const BANNER = /(LibreGet|OmniGet) .* starting — pid \d+, (standard|portable) mode/;
const WINDOW = "[startup] main window created";
const TIMEOUT_MS = 180_000;
const EXIT_AFTER_MS = 6000;
@@ -36,7 +36,7 @@ if (!existsSync(binArg)) {
process.exit(2);
}
-const workdir = mkdtempSync(join(tmpdir(), "omniget-smoke-"));
+const workdir = mkdtempSync(join(tmpdir(), "libreget-smoke-"));
const fakeProfile = join(workdir, "profile");
mkdirSync(fakeProfile, { recursive: true });
@@ -60,7 +60,7 @@ if (portable) {
const env = {
...process.env,
RUST_LOG: "info",
- OMNIGET_SMOKE_EXIT_MS: String(EXIT_AFTER_MS),
+ LIBREGET_SMOKE_EXIT_MS: String(EXIT_AFTER_MS),
// Perfil limpo para que "a pasta apareceu" seja uma afirmacao sobre esta
// execucao, e nao sobre lixo de uma anterior.
LOCALAPPDATA: join(fakeProfile, "Local"),
@@ -70,7 +70,7 @@ const env = {
};
if (!portable) {
// Sem isto o caso padrao escreveria no perfil real do runner.
- env.OMNIGET_DATA_DIR = join(workdir, "data-padrao");
+ env.LIBREGET_DATA_DIR = join(workdir, "data-padrao");
}
console.log(`[smoke] modo: ${portable ? "portatil" : "padrao"}`);
@@ -120,10 +120,10 @@ if (code !== 0) {
if (portable) {
const vazouParaOPerfil = [
- join(fakeProfile, "Local", "com.openselena.omniget"),
- join(fakeProfile, "Roaming", "com.openselena.omniget"),
- join(fakeProfile, "share", "com.openselena.omniget"),
- join(fakeProfile, "Library", "Application Support", "com.openselena.omniget"),
+ join(fakeProfile, "Local", "com.openselena.libreget"),
+ join(fakeProfile, "Roaming", "com.openselena.libreget"),
+ join(fakeProfile, "share", "com.openselena.libreget"),
+ join(fakeProfile, "Library", "Application Support", "com.openselena.libreget"),
].filter((p) => existsSync(p));
if (vazouParaOPerfil.length > 0) {
diff --git a/scripts/wal-kill9.py b/scripts/wal-kill9.py
index 120b2c01..356e2abf 100644
--- a/scripts/wal-kill9.py
+++ b/scripts/wal-kill9.py
@@ -15,7 +15,7 @@ Imprime o caminho do WAL gerado. Resultado esperado: N registros integros e
exatamente 1 truncado.
"""
import json, os, subprocess, sys, tempfile, signal, time
-d = tempfile.mkdtemp(prefix="omniget-wal-")
+d = tempfile.mkdtemp(prefix="libreget-wal-")
wal = os.path.join(d, "queue.wal")
child = f'''
import json, os, sys, time
diff --git a/src-tauri/clippy-baseline.darwin.json b/src-tauri/clippy-baseline.darwin.json
index 40518c16..75e5e186 100644
--- a/src-tauri/clippy-baseline.darwin.json
+++ b/src-tauri/clippy-baseline.darwin.json
@@ -9,70 +9,70 @@
"grammers_session|clippy::redundant_field_names": 5,
"grammers_session|clippy::unwrap_or_default": 2,
"grammers_session|clippy::useless_conversion": 7,
- "omniget-cli|dead_code": 7,
- "omniget-cli|unused_imports": 1,
- "omniget_core|clippy::assertions_on_constants": 1,
- "omniget_core|clippy::bind_instead_of_map": 1,
- "omniget_core|clippy::collapsible_if": 2,
- "omniget_core|clippy::double_ended_iterator_last": 1,
- "omniget_core|clippy::identity_op": 1,
- "omniget_core|clippy::io_other_error": 2,
- "omniget_core|clippy::items_after_test_module": 1,
- "omniget_core|clippy::manual_checked_ops": 1,
- "omniget_core|clippy::manual_clamp": 1,
- "omniget_core|clippy::manual_div_ceil": 7,
- "omniget_core|clippy::manual_range_patterns": 1,
- "omniget_core|clippy::needless_borrows_for_generic_args": 2,
- "omniget_core|clippy::new_without_default": 1,
- "omniget_core|clippy::redundant_closure": 1,
- "omniget_core|clippy::should_implement_trait": 1,
- "omniget_core|clippy::trim_split_whitespace": 1,
- "omniget_core|clippy::unnecessary_map_or": 3,
- "omniget_core|clippy::unnecessary_sort_by": 5,
- "omniget_core|clippy::unnecessary_unwrap": 1,
- "omniget_core|clippy::unwrap_or_default": 1,
- "omniget_core|clippy::useless_conversion": 1,
- "omniget_core|clippy::vec_init_then_push": 1,
- "omniget_lib|clippy::collapsible_if": 1,
- "omniget_lib|clippy::collapsible_match": 1,
- "omniget_lib|clippy::doc_overindented_list_items": 4,
- "omniget_lib|clippy::double_ended_iterator_last": 2,
- "omniget_lib|clippy::identity_op": 1,
- "omniget_lib|clippy::if_same_then_else": 1,
- "omniget_lib|clippy::io_other_error": 1,
- "omniget_lib|clippy::let_underscore_future": 1,
- "omniget_lib|clippy::manual_div_ceil": 7,
- "omniget_lib|clippy::manual_filter": 1,
- "omniget_lib|clippy::manual_is_multiple_of": 1,
- "omniget_lib|clippy::manual_range_contains": 1,
- "omniget_lib|clippy::manual_range_patterns": 1,
- "omniget_lib|clippy::needless_borrow": 1,
- "omniget_lib|clippy::needless_borrows_for_generic_args": 1,
- "omniget_lib|clippy::ptr_arg": 1,
- "omniget_lib|clippy::redundant_closure": 2,
- "omniget_lib|clippy::redundant_closure_call": 2,
- "omniget_lib|clippy::should_implement_trait": 1,
- "omniget_lib|clippy::too_many_arguments": 3,
- "omniget_lib|clippy::type_complexity": 2,
- "omniget_lib|clippy::unnecessary_sort_by": 4,
- "omniget_lib|clippy::unnecessary_to_owned": 1,
- "omniget_lib|clippy::useless_conversion": 1,
- "omniget_lib|clippy::useless_vec": 3,
- "omniget_lib|clippy::vec_init_then_push": 1,
- "omniget_plugin_convert|clippy::new_without_default": 1,
- "omniget_plugin_courses|clippy::bind_instead_of_map": 1,
- "omniget_plugin_courses|clippy::collapsible_if": 1,
- "omniget_plugin_courses|clippy::collapsible_match": 1,
- "omniget_plugin_courses|clippy::double_ended_iterator_last": 2,
- "omniget_plugin_courses|clippy::if_same_then_else": 2,
- "omniget_plugin_courses|clippy::manual_pattern_char_comparison": 3,
- "omniget_plugin_courses|clippy::needless_borrows_for_generic_args": 8,
- "omniget_plugin_courses|clippy::new_without_default": 1,
- "omniget_plugin_courses|clippy::single_match": 1,
- "omniget_plugin_courses|clippy::unnecessary_sort_by": 4,
- "omniget_plugin_courses|clippy::unused_enumerate_index": 2,
- "omniget_plugin_sdk|clippy::derivable_impls": 1,
- "omniget_plugin_telegram|clippy::new_without_default": 1,
- "omniget_plugin_telegram|clippy::unnecessary_sort_by": 1
+ "libreget-cli|dead_code": 7,
+ "libreget-cli|unused_imports": 1,
+ "libreget_core|clippy::assertions_on_constants": 1,
+ "libreget_core|clippy::bind_instead_of_map": 1,
+ "libreget_core|clippy::collapsible_if": 2,
+ "libreget_core|clippy::double_ended_iterator_last": 1,
+ "libreget_core|clippy::identity_op": 1,
+ "libreget_core|clippy::io_other_error": 2,
+ "libreget_core|clippy::items_after_test_module": 1,
+ "libreget_core|clippy::manual_checked_ops": 1,
+ "libreget_core|clippy::manual_clamp": 1,
+ "libreget_core|clippy::manual_div_ceil": 7,
+ "libreget_core|clippy::manual_range_patterns": 1,
+ "libreget_core|clippy::needless_borrows_for_generic_args": 2,
+ "libreget_core|clippy::new_without_default": 1,
+ "libreget_core|clippy::redundant_closure": 1,
+ "libreget_core|clippy::should_implement_trait": 1,
+ "libreget_core|clippy::trim_split_whitespace": 1,
+ "libreget_core|clippy::unnecessary_map_or": 3,
+ "libreget_core|clippy::unnecessary_sort_by": 5,
+ "libreget_core|clippy::unnecessary_unwrap": 1,
+ "libreget_core|clippy::unwrap_or_default": 1,
+ "libreget_core|clippy::useless_conversion": 1,
+ "libreget_core|clippy::vec_init_then_push": 1,
+ "libreget_lib|clippy::collapsible_if": 1,
+ "libreget_lib|clippy::collapsible_match": 1,
+ "libreget_lib|clippy::doc_overindented_list_items": 4,
+ "libreget_lib|clippy::double_ended_iterator_last": 2,
+ "libreget_lib|clippy::identity_op": 1,
+ "libreget_lib|clippy::if_same_then_else": 1,
+ "libreget_lib|clippy::io_other_error": 1,
+ "libreget_lib|clippy::let_underscore_future": 1,
+ "libreget_lib|clippy::manual_div_ceil": 7,
+ "libreget_lib|clippy::manual_filter": 1,
+ "libreget_lib|clippy::manual_is_multiple_of": 1,
+ "libreget_lib|clippy::manual_range_contains": 1,
+ "libreget_lib|clippy::manual_range_patterns": 1,
+ "libreget_lib|clippy::needless_borrow": 1,
+ "libreget_lib|clippy::needless_borrows_for_generic_args": 1,
+ "libreget_lib|clippy::ptr_arg": 1,
+ "libreget_lib|clippy::redundant_closure": 2,
+ "libreget_lib|clippy::redundant_closure_call": 2,
+ "libreget_lib|clippy::should_implement_trait": 1,
+ "libreget_lib|clippy::too_many_arguments": 3,
+ "libreget_lib|clippy::type_complexity": 2,
+ "libreget_lib|clippy::unnecessary_sort_by": 4,
+ "libreget_lib|clippy::unnecessary_to_owned": 1,
+ "libreget_lib|clippy::useless_conversion": 1,
+ "libreget_lib|clippy::useless_vec": 3,
+ "libreget_lib|clippy::vec_init_then_push": 1,
+ "libreget_plugin_convert|clippy::new_without_default": 1,
+ "libreget_plugin_courses|clippy::bind_instead_of_map": 1,
+ "libreget_plugin_courses|clippy::collapsible_if": 1,
+ "libreget_plugin_courses|clippy::collapsible_match": 1,
+ "libreget_plugin_courses|clippy::double_ended_iterator_last": 2,
+ "libreget_plugin_courses|clippy::if_same_then_else": 2,
+ "libreget_plugin_courses|clippy::manual_pattern_char_comparison": 3,
+ "libreget_plugin_courses|clippy::needless_borrows_for_generic_args": 8,
+ "libreget_plugin_courses|clippy::new_without_default": 1,
+ "libreget_plugin_courses|clippy::single_match": 1,
+ "libreget_plugin_courses|clippy::unnecessary_sort_by": 4,
+ "libreget_plugin_courses|clippy::unused_enumerate_index": 2,
+ "libreget_plugin_sdk|clippy::derivable_impls": 1,
+ "libreget_plugin_telegram|clippy::new_without_default": 1,
+ "libreget_plugin_telegram|clippy::unnecessary_sort_by": 1
}
}
diff --git a/src-tauri/clippy-baseline.linux.json b/src-tauri/clippy-baseline.linux.json
index a9c44828..3e106841 100644
--- a/src-tauri/clippy-baseline.linux.json
+++ b/src-tauri/clippy-baseline.linux.json
@@ -1,6 +1,6 @@
{
"generated_on": "linux",
- "total": 125,
+ "total": 121,
"counts": {
"grammers_session|clippy::collapsible_if": 1,
"grammers_session|clippy::manual_range_contains": 4,
@@ -9,62 +9,59 @@
"grammers_session|clippy::redundant_field_names": 5,
"grammers_session|clippy::unwrap_or_default": 2,
"grammers_session|clippy::useless_conversion": 7,
- "omniget_core|clippy::assertions_on_constants": 1,
- "omniget_core|clippy::bind_instead_of_map": 1,
- "omniget_core|clippy::collapsible_if": 2,
- "omniget_core|clippy::double_ended_iterator_last": 1,
- "omniget_core|clippy::identity_op": 1,
- "omniget_core|clippy::items_after_test_module": 1,
- "omniget_core|clippy::manual_checked_ops": 1,
- "omniget_core|clippy::manual_div_ceil": 7,
- "omniget_core|clippy::manual_range_patterns": 1,
- "omniget_core|clippy::needless_borrows_for_generic_args": 2,
- "omniget_core|clippy::new_without_default": 1,
- "omniget_core|clippy::redundant_closure": 1,
- "omniget_core|clippy::should_implement_trait": 1,
- "omniget_core|clippy::trim_split_whitespace": 1,
- "omniget_core|clippy::unnecessary_map_or": 2,
- "omniget_core|clippy::unnecessary_sort_by": 5,
- "omniget_core|clippy::unnecessary_unwrap": 1,
- "omniget_core|clippy::unwrap_or_default": 1,
- "omniget_core|clippy::useless_conversion": 1,
- "omniget_core|clippy::vec_init_then_push": 1,
- "omniget_lib|clippy::doc_overindented_list_items": 4,
- "omniget_lib|clippy::double_ended_iterator_last": 2,
- "omniget_lib|clippy::identity_op": 1,
- "omniget_lib|clippy::if_same_then_else": 1,
- "omniget_lib|clippy::io_other_error": 1,
- "omniget_lib|clippy::let_underscore_future": 1,
- "omniget_lib|clippy::manual_div_ceil": 7,
- "omniget_lib|clippy::manual_range_contains": 1,
- "omniget_lib|clippy::manual_range_patterns": 1,
- "omniget_lib|clippy::needless_borrows_for_generic_args": 1,
- "omniget_lib|clippy::ptr_arg": 1,
- "omniget_lib|clippy::redundant_closure": 2,
- "omniget_lib|clippy::redundant_closure_call": 2,
- "omniget_lib|clippy::should_implement_trait": 1,
- "omniget_lib|clippy::too_many_arguments": 3,
- "omniget_lib|clippy::unnecessary_sort_by": 2,
- "omniget_lib|clippy::unnecessary_to_owned": 1,
- "omniget_lib|clippy::useless_conversion": 1,
- "omniget_lib|clippy::useless_vec": 3,
- "omniget_lib|clippy::vec_init_then_push": 1,
- "omniget_plugin_convert|clippy::new_without_default": 1,
- "omniget_plugin_courses|clippy::bind_instead_of_map": 1,
- "omniget_plugin_courses|clippy::collapsible_if": 1,
- "omniget_plugin_courses|clippy::collapsible_match": 1,
- "omniget_plugin_courses|clippy::double_ended_iterator_last": 2,
- "omniget_plugin_courses|clippy::if_same_then_else": 2,
- "omniget_plugin_courses|clippy::manual_pattern_char_comparison": 3,
- "omniget_plugin_courses|clippy::needless_borrows_for_generic_args": 8,
- "omniget_plugin_courses|clippy::new_without_default": 1,
- "omniget_plugin_courses|clippy::single_match": 1,
- "omniget_plugin_courses|clippy::unnecessary_sort_by": 4,
- "omniget_plugin_courses|clippy::unused_enumerate_index": 2,
- "omniget_plugin_sdk|clippy::derivable_impls": 1,
- "omniget_plugin_telegram|clippy::new_without_default": 1,
- "omniget_plugin_telegram|clippy::unnecessary_sort_by": 1,
- "omniget-cli|dead_code": 3,
- "omniget-cli|unused_imports": 1
+ "libreget_core|clippy::assertions_on_constants": 1,
+ "libreget_core|clippy::collapsible_if": 2,
+ "libreget_core|clippy::double_ended_iterator_last": 1,
+ "libreget_core|clippy::identity_op": 1,
+ "libreget_core|clippy::items_after_test_module": 1,
+ "libreget_core|clippy::manual_checked_ops": 1,
+ "libreget_core|clippy::manual_div_ceil": 7,
+ "libreget_core|clippy::manual_range_patterns": 1,
+ "libreget_core|clippy::needless_borrows_for_generic_args": 2,
+ "libreget_core|clippy::new_without_default": 1,
+ "libreget_core|clippy::redundant_closure": 1,
+ "libreget_core|clippy::should_implement_trait": 1,
+ "libreget_core|clippy::trim_split_whitespace": 1,
+ "libreget_core|clippy::unnecessary_map_or": 2,
+ "libreget_core|clippy::unnecessary_sort_by": 4,
+ "libreget_core|clippy::unnecessary_unwrap": 1,
+ "libreget_core|clippy::unwrap_or_default": 1,
+ "libreget_core|clippy::useless_conversion": 1,
+ "libreget_core|clippy::vec_init_then_push": 1,
+ "libreget_lib|clippy::doc_overindented_list_items": 4,
+ "libreget_lib|clippy::double_ended_iterator_last": 2,
+ "libreget_lib|clippy::identity_op": 1,
+ "libreget_lib|clippy::if_same_then_else": 1,
+ "libreget_lib|clippy::io_other_error": 1,
+ "libreget_lib|clippy::let_underscore_future": 1,
+ "libreget_lib|clippy::manual_div_ceil": 7,
+ "libreget_lib|clippy::manual_range_contains": 1,
+ "libreget_lib|clippy::manual_range_patterns": 1,
+ "libreget_lib|clippy::needless_borrows_for_generic_args": 1,
+ "libreget_lib|clippy::ptr_arg": 1,
+ "libreget_lib|clippy::redundant_closure": 2,
+ "libreget_lib|clippy::redundant_closure_call": 2,
+ "libreget_lib|clippy::should_implement_trait": 1,
+ "libreget_lib|clippy::too_many_arguments": 3,
+ "libreget_lib|clippy::unnecessary_sort_by": 2,
+ "libreget_lib|clippy::unnecessary_to_owned": 1,
+ "libreget_lib|clippy::useless_conversion": 1,
+ "libreget_lib|clippy::useless_vec": 3,
+ "libreget_lib|clippy::vec_init_then_push": 1,
+ "libreget_plugin_convert|clippy::new_without_default": 1,
+ "libreget_plugin_courses|clippy::bind_instead_of_map": 1,
+ "libreget_plugin_courses|clippy::collapsible_if": 1,
+ "libreget_plugin_courses|clippy::collapsible_match": 1,
+ "libreget_plugin_courses|clippy::double_ended_iterator_last": 2,
+ "libreget_plugin_courses|clippy::if_same_then_else": 2,
+ "libreget_plugin_courses|clippy::manual_pattern_char_comparison": 3,
+ "libreget_plugin_courses|clippy::needless_borrows_for_generic_args": 8,
+ "libreget_plugin_courses|clippy::new_without_default": 1,
+ "libreget_plugin_courses|clippy::single_match": 1,
+ "libreget_plugin_courses|clippy::unnecessary_sort_by": 4,
+ "libreget_plugin_courses|clippy::unused_enumerate_index": 2,
+ "libreget_plugin_sdk|clippy::derivable_impls": 1,
+ "libreget-cli|dead_code": 3,
+ "libreget-cli|unused_imports": 1
}
}
diff --git a/src-tauri/clippy-baseline.win32.json b/src-tauri/clippy-baseline.win32.json
index 4e097589..58e107da 100644
--- a/src-tauri/clippy-baseline.win32.json
+++ b/src-tauri/clippy-baseline.win32.json
@@ -9,70 +9,70 @@
"grammers_session|clippy::redundant_field_names": 5,
"grammers_session|clippy::unwrap_or_default": 2,
"grammers_session|clippy::useless_conversion": 7,
- "omniget-cli|dead_code": 7,
- "omniget-cli|unused_imports": 1,
- "omniget_core|clippy::assertions_on_constants": 1,
- "omniget_core|clippy::bind_instead_of_map": 1,
- "omniget_core|clippy::collapsible_if": 2,
- "omniget_core|clippy::double_ended_iterator_last": 1,
- "omniget_core|clippy::identity_op": 1,
- "omniget_core|clippy::io_other_error": 2,
- "omniget_core|clippy::items_after_test_module": 1,
- "omniget_core|clippy::manual_checked_ops": 1,
- "omniget_core|clippy::manual_clamp": 1,
- "omniget_core|clippy::manual_div_ceil": 7,
- "omniget_core|clippy::manual_range_patterns": 1,
- "omniget_core|clippy::needless_borrows_for_generic_args": 2,
- "omniget_core|clippy::new_without_default": 1,
- "omniget_core|clippy::redundant_closure": 1,
- "omniget_core|clippy::should_implement_trait": 1,
- "omniget_core|clippy::trim_split_whitespace": 1,
- "omniget_core|clippy::unnecessary_map_or": 3,
- "omniget_core|clippy::unnecessary_sort_by": 5,
- "omniget_core|clippy::unnecessary_unwrap": 1,
- "omniget_core|clippy::unwrap_or_default": 1,
- "omniget_core|clippy::useless_conversion": 1,
- "omniget_core|clippy::vec_init_then_push": 1,
- "omniget_lib|clippy::collapsible_if": 1,
- "omniget_lib|clippy::collapsible_match": 1,
- "omniget_lib|clippy::doc_overindented_list_items": 4,
- "omniget_lib|clippy::double_ended_iterator_last": 2,
- "omniget_lib|clippy::identity_op": 1,
- "omniget_lib|clippy::if_same_then_else": 1,
- "omniget_lib|clippy::io_other_error": 1,
- "omniget_lib|clippy::let_underscore_future": 1,
- "omniget_lib|clippy::manual_div_ceil": 7,
- "omniget_lib|clippy::manual_filter": 1,
- "omniget_lib|clippy::manual_is_multiple_of": 1,
- "omniget_lib|clippy::manual_range_contains": 1,
- "omniget_lib|clippy::manual_range_patterns": 1,
- "omniget_lib|clippy::needless_borrow": 1,
- "omniget_lib|clippy::needless_borrows_for_generic_args": 1,
- "omniget_lib|clippy::ptr_arg": 1,
- "omniget_lib|clippy::redundant_closure": 2,
- "omniget_lib|clippy::redundant_closure_call": 2,
- "omniget_lib|clippy::should_implement_trait": 1,
- "omniget_lib|clippy::too_many_arguments": 3,
- "omniget_lib|clippy::type_complexity": 2,
- "omniget_lib|clippy::unnecessary_sort_by": 4,
- "omniget_lib|clippy::unnecessary_to_owned": 1,
- "omniget_lib|clippy::useless_conversion": 1,
- "omniget_lib|clippy::useless_vec": 3,
- "omniget_lib|clippy::vec_init_then_push": 1,
- "omniget_plugin_convert|clippy::new_without_default": 1,
- "omniget_plugin_courses|clippy::bind_instead_of_map": 1,
- "omniget_plugin_courses|clippy::collapsible_if": 1,
- "omniget_plugin_courses|clippy::collapsible_match": 1,
- "omniget_plugin_courses|clippy::double_ended_iterator_last": 2,
- "omniget_plugin_courses|clippy::if_same_then_else": 2,
- "omniget_plugin_courses|clippy::manual_pattern_char_comparison": 3,
- "omniget_plugin_courses|clippy::needless_borrows_for_generic_args": 8,
- "omniget_plugin_courses|clippy::new_without_default": 1,
- "omniget_plugin_courses|clippy::single_match": 1,
- "omniget_plugin_courses|clippy::unnecessary_sort_by": 4,
- "omniget_plugin_courses|clippy::unused_enumerate_index": 2,
- "omniget_plugin_sdk|clippy::derivable_impls": 1,
- "omniget_plugin_telegram|clippy::new_without_default": 1,
- "omniget_plugin_telegram|clippy::unnecessary_sort_by": 1
+ "libreget-cli|dead_code": 7,
+ "libreget-cli|unused_imports": 1,
+ "libreget_core|clippy::assertions_on_constants": 1,
+ "libreget_core|clippy::bind_instead_of_map": 1,
+ "libreget_core|clippy::collapsible_if": 2,
+ "libreget_core|clippy::double_ended_iterator_last": 1,
+ "libreget_core|clippy::identity_op": 1,
+ "libreget_core|clippy::io_other_error": 2,
+ "libreget_core|clippy::items_after_test_module": 1,
+ "libreget_core|clippy::manual_checked_ops": 1,
+ "libreget_core|clippy::manual_clamp": 1,
+ "libreget_core|clippy::manual_div_ceil": 7,
+ "libreget_core|clippy::manual_range_patterns": 1,
+ "libreget_core|clippy::needless_borrows_for_generic_args": 2,
+ "libreget_core|clippy::new_without_default": 1,
+ "libreget_core|clippy::redundant_closure": 1,
+ "libreget_core|clippy::should_implement_trait": 1,
+ "libreget_core|clippy::trim_split_whitespace": 1,
+ "libreget_core|clippy::unnecessary_map_or": 3,
+ "libreget_core|clippy::unnecessary_sort_by": 5,
+ "libreget_core|clippy::unnecessary_unwrap": 1,
+ "libreget_core|clippy::unwrap_or_default": 1,
+ "libreget_core|clippy::useless_conversion": 1,
+ "libreget_core|clippy::vec_init_then_push": 1,
+ "libreget_lib|clippy::collapsible_if": 1,
+ "libreget_lib|clippy::collapsible_match": 1,
+ "libreget_lib|clippy::doc_overindented_list_items": 4,
+ "libreget_lib|clippy::double_ended_iterator_last": 2,
+ "libreget_lib|clippy::identity_op": 1,
+ "libreget_lib|clippy::if_same_then_else": 1,
+ "libreget_lib|clippy::io_other_error": 1,
+ "libreget_lib|clippy::let_underscore_future": 1,
+ "libreget_lib|clippy::manual_div_ceil": 7,
+ "libreget_lib|clippy::manual_filter": 1,
+ "libreget_lib|clippy::manual_is_multiple_of": 1,
+ "libreget_lib|clippy::manual_range_contains": 1,
+ "libreget_lib|clippy::manual_range_patterns": 1,
+ "libreget_lib|clippy::needless_borrow": 1,
+ "libreget_lib|clippy::needless_borrows_for_generic_args": 1,
+ "libreget_lib|clippy::ptr_arg": 1,
+ "libreget_lib|clippy::redundant_closure": 2,
+ "libreget_lib|clippy::redundant_closure_call": 2,
+ "libreget_lib|clippy::should_implement_trait": 1,
+ "libreget_lib|clippy::too_many_arguments": 3,
+ "libreget_lib|clippy::type_complexity": 2,
+ "libreget_lib|clippy::unnecessary_sort_by": 4,
+ "libreget_lib|clippy::unnecessary_to_owned": 1,
+ "libreget_lib|clippy::useless_conversion": 1,
+ "libreget_lib|clippy::useless_vec": 3,
+ "libreget_lib|clippy::vec_init_then_push": 1,
+ "libreget_plugin_convert|clippy::new_without_default": 1,
+ "libreget_plugin_courses|clippy::bind_instead_of_map": 1,
+ "libreget_plugin_courses|clippy::collapsible_if": 1,
+ "libreget_plugin_courses|clippy::collapsible_match": 1,
+ "libreget_plugin_courses|clippy::double_ended_iterator_last": 2,
+ "libreget_plugin_courses|clippy::if_same_then_else": 2,
+ "libreget_plugin_courses|clippy::manual_pattern_char_comparison": 3,
+ "libreget_plugin_courses|clippy::needless_borrows_for_generic_args": 8,
+ "libreget_plugin_courses|clippy::new_without_default": 1,
+ "libreget_plugin_courses|clippy::single_match": 1,
+ "libreget_plugin_courses|clippy::unnecessary_sort_by": 4,
+ "libreget_plugin_courses|clippy::unused_enumerate_index": 2,
+ "libreget_plugin_sdk|clippy::derivable_impls": 1,
+ "libreget_plugin_telegram|clippy::new_without_default": 1,
+ "libreget_plugin_telegram|clippy::unnecessary_sort_by": 1
}
}
diff --git a/src-tauri/plugins/courses/src/platforms/estrategia_concursos/api.rs b/src-tauri/plugins/courses/src/platforms/estrategia_concursos/api.rs
index 72ff92fc..6a5864ea 100644
--- a/src-tauri/plugins/courses/src/platforms/estrategia_concursos/api.rs
+++ b/src-tauri/plugins/courses/src/platforms/estrategia_concursos/api.rs
@@ -97,9 +97,15 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {
fn session_file_path() -> anyhow::Result<PathBuf> {
let data_dir = dirs::data_dir().ok_or_else(|| anyhow!("Could not find app data directory"))?;
- Ok(data_dir
- .join("omniget")
- .join("estrategia_concursos_session.json"))
+ let target = data_dir.join("libreget").join("estrategia_concursos_session.json");
+ if target.exists() {
+ return Ok(target);
+ }
+ let legacy = data_dir.join("omniget").join("estrategia_concursos_session.json");
+ if legacy.exists() {
+ return Ok(legacy);
+ }
+ Ok(target)
}
pub async fn validate_token(session: &EstrategiaConcursosSession) -> anyhow::Result<bool> {
diff --git a/src/lib/i18n/keys.ts b/src/lib/i18n/keys.ts
index 037ae4ab..a988db54 100644
--- a/src/lib/i18n/keys.ts
+++ b/src/lib/i18n/keys.ts
@@ -1476,10 +1476,10 @@ export type TranslationKeys =
| 'settings.typography.mono_label'
| 'settings.typography.preset_compact_desc'
| 'settings.typography.preset_compact_name'
- | 'settings.typography.preset_notion_like_desc'
- | 'settings.typography.preset_notion_like_name'
| 'settings.typography.preset_libreget_default_desc'
| 'settings.typography.preset_libreget_default_name'
+ | 'settings.typography.preset_notion_like_desc'
+ | 'settings.typography.preset_notion_like_name'
| 'settings.typography.preset_omniget_default_desc'
| 'settings.typography.preset_omniget_default_name'
| 'settings.typography.preset_reading_desc'
diff --git a/vite.config.js b/vite.config.js
index d677277a..5dc8909a 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -31,7 +31,7 @@ function getVersion() {
function i18nKeysPlugin({ strict } = { strict: false }) {
return {
- name: "omniget-i18n-keys",
+ name: "libreget-i18n-keys",
buildStart() {
const script = path.join(configDir, "scripts", "generate-i18n-keys.js");
if (!existsSync(script)) {
@@ -45,7 +45,7 @@ function i18nKeysPlugin({ strict } = { strict: false }) {
if (result.status !== 0) {
throw new Error(
`generate-i18n-keys.js exited with code ${result.status}. ` +
- `Fix locale keys or set OMNIGET_I18N_STRICT=0 to bypass.`,
+ `Fix locale keys or set LIBREGET_I18N_STRICT=0 to bypass.`,
);
}
},
@@ -55,9 +55,10 @@ function i18nKeysPlugin({ strict } = { strict: false }) {
export default defineConfig(({ command }) => {
const gitInfo = getGitInfo();
const isBuild = command === "build";
+ const strictEnv = process.env.LIBREGET_I18N_STRICT ?? process.env.OMNIGET_I18N_STRICT;
const strictI18n =
- process.env.OMNIGET_I18N_STRICT === "1" ||
- (isBuild && process.env.OMNIGET_I18N_STRICT !== "0");
+ strictEnv === "1" ||
+ (isBuild && strictEnv !== "0");
return {
plugins: [