ci: move youtube-generator to Gitea — workflows, links, docs #2
No files matched your search
@@ -0,0 +1,36 @@
|
||||
name: Announce Release to Discord
|
||||
|
||||
# Posts a published release to Discord through the ops repo's
|
||||
# announce-release.yml (which reads the release from the Gitea API).
|
||||
#
|
||||
# Publishing the draft that release.yml opens fires NO `release: published`
|
||||
# workflow: the draft belongs to the job token, and Gitea credits the publish
|
||||
# to its Actions user, whose events start nothing. So after publishing, run
|
||||
# this workflow by hand (Actions → Announce Release to Discord → Run workflow)
|
||||
# with the tag. The `release` trigger stays for a release a person creates.
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: "Existing release tag to announce"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
announce:
|
||||
permissions:
|
||||
contents: read
|
||||
uses: poli0981/.github/.gitea/workflows/announce-release.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
|
||||
with:
|
||||
tag_override: ${{ inputs.tag || '' }}
|
||||
ops_ref: c133a00dc7a0bd7bd68253d415758b408d615fa4
|
||||
# Only what the shared workflow declares — not `inherit`, which would hand
|
||||
# every repository secret (the Android signing keys included) to it.
|
||||
secrets:
|
||||
DISCORD_RELEASES_WEBHOOK: ${{ secrets.DISCORD_RELEASES_WEBHOOK }}
|
||||
DISCORD_REPO_WEBHOOK: ${{ secrets.DISCORD_REPO_WEBHOOK }}
|
||||
DISCORD_PING_ROLE_ID: ${{ secrets.DISCORD_PING_ROLE_ID }}
|
||||
@@ -1,34 +1,35 @@
|
||||
name: CI
|
||||
|
||||
# Gitea Actions (runbook: poli0981/.github docs/GITEA-MIGRATION.md). `check`
|
||||
# runs every gate on pull requests and on `main`; on a push to `main`, `deploy`
|
||||
# then publishes the web app to Cloudflare Workers with wrangler — the only
|
||||
# way the site is deployed (migration decision D3; Workers Builds pulled from
|
||||
# GitHub and is disconnected).
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
# Least privilege. The jobs only read the repo — they publish nothing on
|
||||
# GitHub and comment nowhere (SonarCloud's own GitHub app reports on PRs, with
|
||||
# its own permissions). Declaring it explicitly also silences CodeQL's
|
||||
# `actions/missing-workflow-permissions`, which otherwise flags the implicit
|
||||
# (and much wider) default token scope.
|
||||
# Least privilege: the jobs only read the repo.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# A force-push or a quick follow-up commit makes the older run worthless. Cancel
|
||||
# it instead of paying for both — except on `main`, where every commit's result
|
||||
# is a historical record the release process reads back.
|
||||
# it instead of paying for both — except on `main`, where every run deploys.
|
||||
concurrency:
|
||||
group: ci-${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
# `check` is the required status on `main` (ruleset "main-protection") — keep
|
||||
# `check` is the required status on `main` (Gitea branch protection) — keep
|
||||
# the job id stable.
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest # Gitea: Docker, docker.gitea.com/runner-images
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
# Actions are pinned by commit SHA (a tag can be moved; a SHA cannot).
|
||||
# Dependabot keeps the SHA and the version comment up to date.
|
||||
# Renovate keeps the SHA and the version comment up to date.
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
@@ -59,17 +60,9 @@ jobs:
|
||||
run: npm run lint
|
||||
- name: Validate locales
|
||||
run: npm run validate:locales
|
||||
# Coverage thresholds for src/engine and worker live in vitest.config.ts.
|
||||
# Coverage thresholds for the logic layers live in vitest.config.ts.
|
||||
- name: Test (with coverage thresholds)
|
||||
run: npm run test:coverage
|
||||
# The LCOV report the `sonarcloud` job hands to SonarCloud.
|
||||
- name: Keep the coverage report for SonarCloud
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: coverage
|
||||
path: coverage/lcov.info
|
||||
if-no-files-found: error
|
||||
retention-days: 1
|
||||
|
||||
# --- consistency ------------------------------------------------------
|
||||
- name: Check formatting
|
||||
@@ -97,9 +90,9 @@ jobs:
|
||||
|
||||
# --- security ---------------------------------------------------------
|
||||
# Advisory-only: a fresh high-severity advisory in a transitive dep must
|
||||
# not turn every unrelated PR red before Dependabot has had a chance to
|
||||
# open its fix PR. The Dependabot alerts tab is the source of truth, and
|
||||
# dependency-review (security.yml) blocks PRs that *introduce* one.
|
||||
# not turn every unrelated PR red before Renovate opens its fix. The
|
||||
# osv-scanner job (security.yml) and Renovate's OSV pull requests are
|
||||
# the source of truth.
|
||||
- name: Audit dependencies
|
||||
run: npm audit --audit-level=high
|
||||
continue-on-error: true
|
||||
@@ -109,53 +102,52 @@ jobs:
|
||||
run: npm run build
|
||||
- name: Check bundle budget
|
||||
run: npm run check:bundle
|
||||
# Validates wrangler.jsonc and bundles the Worker exactly as Workers
|
||||
# Builds will — without deploying anything.
|
||||
# Validates wrangler.jsonc and bundles the Worker exactly as `deploy`
|
||||
# will — without deploying anything.
|
||||
- name: Dry-run the Cloudflare deploy
|
||||
run: npm run cf:check
|
||||
|
||||
# SonarCloud, CI-based: issues, duplication and the coverage from `check`,
|
||||
# judged by the quality gate (settings in sonar-project.properties).
|
||||
# Automatic Analysis is off in the project's settings, so this is the only
|
||||
# analysis. A job of its own so that SONAR_TOKEN never shares a job with
|
||||
# npm packages: it only checks out, takes the coverage report and runs the
|
||||
# scanner.
|
||||
#
|
||||
# PRs from forks and from Dependabot get no repository secrets (Dependabot
|
||||
# PRs get the Dependabot secrets, which hold no SONAR_TOKEN), so they skip
|
||||
# it and main is analysed once they merge. The PR author, not
|
||||
# `github.actor`, decides — the actor can be spoofed (zizmor: bot-conditions).
|
||||
sonarcloud:
|
||||
# Production deploy of https://ytgenerator.stream after a green `check` on
|
||||
# `main`. The Cloudflare token and account id are user-level Actions secrets
|
||||
# shared by the web repos; the Worker's own secret (TURNSTILE_SECRET) lives in
|
||||
# Cloudflare and survives every deploy. No dependency cache: what ships is
|
||||
# built from a clean install.
|
||||
deploy:
|
||||
needs: check
|
||||
if: >-
|
||||
github.event_name == 'push' ||
|
||||
(github.event.pull_request.head.repo.full_name == github.repository &&
|
||||
github.event.pull_request.user.login != 'dependabot[bot]')
|
||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
concurrency:
|
||||
group: deploy-production
|
||||
cancel-in-progress: false
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
# Full history: SonarCloud tells new code from old by git blame.
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
name: coverage
|
||||
path: coverage
|
||||
# New code is "since the previous version": each release starts a new
|
||||
# period, and SonarCloud learns the version from here.
|
||||
- name: Read the app version
|
||||
id: version
|
||||
run: |
|
||||
version="$(jq -r .version package.json)"
|
||||
if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
echo "::error::package.json version \"$version\" is not X.Y.Z"
|
||||
exit 1
|
||||
fi
|
||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||
- name: SonarCloud scan
|
||||
uses: SonarSource/sonarqube-scan-action@e805d875275f728fac1885b413934be6d7c63f65 # v8.4.1
|
||||
node-version-file: .node-version
|
||||
package-manager-cache: false
|
||||
- run: npm ci --ignore-scripts
|
||||
# wrangler.jsonc's build.command runs `npm run build` first.
|
||||
- name: Deploy to Cloudflare Workers
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
with:
|
||||
args: -Dsonar.projectVersion=${{ steps.version.outputs.version }}
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
WRANGLER_SEND_METRICS: "false"
|
||||
run: npx wrangler deploy --message "main ${GITHUB_SHA:0:8}"
|
||||
# Everything but the public files sits behind the Turnstile gate, so the
|
||||
# check asks for the new build's entry chunk: content-hashed, public, and
|
||||
# only served once this deploy is live.
|
||||
- name: The new build is live
|
||||
run: |
|
||||
set -euo pipefail
|
||||
entry=$(grep -o 'src="/assets/[^"]*\.js"' dist/index.html | head -1 | cut -d'"' -f2)
|
||||
[ -n "$entry" ] || { echo "::error::no entry chunk in dist/index.html"; exit 1; }
|
||||
for i in $(seq 1 30); do
|
||||
code=$(curl -s -o /dev/null -w '%{http_code}' "https://ytgenerator.stream${entry}" || true)
|
||||
if [ "$code" = 200 ]; then echo "live: ${entry} (attempt $i)"; exit 0; fi
|
||||
sleep 5
|
||||
done
|
||||
echo "::error::https://ytgenerator.stream${entry} did not answer 200 (last: ${code})"
|
||||
exit 1
|
||||
@@ -0,0 +1,63 @@
|
||||
name: Compliance
|
||||
|
||||
# Repository hygiene that is not code: licensing metadata and pull-request
|
||||
# titles. `reuse` runs everywhere; `pr-title` only on pull requests.
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
# `edited` so that fixing a PR title re-runs the title check.
|
||||
types: [opened, edited, synchronize, reopened]
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: compliance-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
# REUSE (https://reuse.software): every file has a copyright and a license,
|
||||
# via REUSE.toml. The tool comes from the hash-locked .github/requirements-ci.txt.
|
||||
reuse:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: Install reuse
|
||||
run: |
|
||||
python -m pip install --quiet --require-hashes --only-binary :all: -r .github/requirements-ci.txt
|
||||
- name: reuse lint
|
||||
run: reuse lint
|
||||
|
||||
# Conventional-commit PR titles, because merges keep the title as the commit
|
||||
# subject: `type(scope): message`, the message starting lower-case like the
|
||||
# rest of the history. Read from the event payload through `env:` — never
|
||||
# interpolated into the script, and no API call (Gitea has no GitHub API).
|
||||
pr-title:
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: Check the pull request title
|
||||
env:
|
||||
TITLE: ${{ github.event.pull_request.title }}
|
||||
run: |
|
||||
types='feat|fix|refactor|perf|docs|test|ci|build|chore|revert'
|
||||
if [[ "$TITLE" =~ ^($types)(\([a-z0-9./-]+\))?!?:\ (.+)$ ]]; then
|
||||
subject="${BASH_REMATCH[3]}"
|
||||
if [[ "$subject" =~ ^[A-Z] ]]; then
|
||||
echo "::error::The subject \"$subject\" should start with a lower-case letter, like the rest of the history (e.g. \"feat(editor): add next-part button\")."
|
||||
exit 1
|
||||
fi
|
||||
echo "ok: $TITLE"
|
||||
else
|
||||
echo "::error::\"$TITLE\" is not \`type(scope): message\` with type one of: ${types//|/, }."
|
||||
exit 1
|
||||
fi
|
||||
@@ -0,0 +1,24 @@
|
||||
name: Notify CI Failures
|
||||
|
||||
# A failed or cancelled run of the workflows below posts to Discord through
|
||||
# the ops repo's notify-ci-failure.yml (the script is loaded at `ops_ref`, the
|
||||
# same commit as `uses:`). Neither this file nor the shared one checks out the
|
||||
# triggering run's code: they read run metadata only, and pass every
|
||||
# untrusted field to the notifier through `env:`.
|
||||
on:
|
||||
workflow_run: # zizmor: ignore[dangerous-triggers]
|
||||
workflows: ["CI", "Security", "Compliance", "Rust", "Qodana"]
|
||||
types: [completed]
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
uses: poli0981/.github/.gitea/workflows/notify-ci-failure.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
|
||||
with:
|
||||
ops_ref: c133a00dc7a0bd7bd68253d415758b408d615fa4
|
||||
secrets:
|
||||
DISCORD_CI_WEBHOOK: ${{ secrets.DISCORD_CI_WEBHOOK }}
|
||||
@@ -0,0 +1,26 @@
|
||||
name: Notify Release Pipeline
|
||||
|
||||
# Every run of the release pipeline (release.yml, dry runs included, and the
|
||||
# Discord announcement) reported to Discord through the ops repo's
|
||||
# notify-release-pipeline.yml. Match the exact `name:` of both producers:
|
||||
# renaming either silently breaks this filter.
|
||||
on:
|
||||
workflow_run: # zizmor: ignore[dangerous-triggers]
|
||||
workflows:
|
||||
- "Release"
|
||||
- "Announce Release to Discord"
|
||||
types: [completed]
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
uses: poli0981/.github/.gitea/workflows/notify-release-pipeline.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
|
||||
with:
|
||||
ops_ref: c133a00dc7a0bd7bd68253d415758b408d615fa4
|
||||
# Only the webhook the shared workflow declares — not `inherit`.
|
||||
secrets:
|
||||
DISCORD_RELEASE_PIPELINE_WEBHOOK: ${{ secrets.DISCORD_RELEASE_PIPELINE_WEBHOOK }}
|
||||
@@ -0,0 +1,97 @@
|
||||
name: Qodana
|
||||
# JetBrains Qodana static analysis through the ops repo's reusable-qodana.yml
|
||||
# (the Qodana CLI; JetBrains/qodana-action needs GitHub's API), one linter per
|
||||
# Qodana Cloud project:
|
||||
#
|
||||
# typescript - qodana-js (native mode) the repository project yt-ts-js, secret QODANA_TOKEN_TS_JS, qodana.yaml
|
||||
# rust - qodana-rust (Docker, Early Access) src-tauri/ project yt-rust, secret QODANA_TOKEN_RUST, src-tauri/qodana.yaml
|
||||
#
|
||||
# Every run analyses the whole project, so a pull request and `main` report
|
||||
# the same way, and each qodana.yaml holds a quality gate of zero problems.
|
||||
# Results: Qodana Cloud and the qodana-report-* artifacts (SARIF and logs; no
|
||||
# code-scanning UI on Gitea). Not a required check.
|
||||
#
|
||||
# Both linters need an Ultimate licence; the account runs the Qodana Ultimate
|
||||
# trial. When the licence lapses, both jobs fail at the licence check: renew
|
||||
# it, or delete this file and the two qodana.yaml files.
|
||||
#
|
||||
# qodana-rust ships only as a Docker image: it runs on the maintainer's PC
|
||||
# (`windows-latest`, host mode) in Docker Desktop, as root so that the
|
||||
# bootstrap in src-tauri/qodana.yaml can install the libraries Tauri links
|
||||
# against. A run without a token (Renovate's) skips that analysis instead of
|
||||
# failing; the reusable also skips runs started by renovate-bot.
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: qodana-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
tokens:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
permissions: {}
|
||||
outputs:
|
||||
typescript: ${{ steps.check.outputs.typescript }}
|
||||
rust: ${{ steps.check.outputs.rust }}
|
||||
steps:
|
||||
- name: Check for the Qodana tokens
|
||||
id: check
|
||||
env:
|
||||
TOKEN_TS_JS: ${{ secrets.QODANA_TOKEN_TS_JS }}
|
||||
TOKEN_RUST: ${{ secrets.QODANA_TOKEN_RUST }}
|
||||
run: |
|
||||
for pair in "typescript:$TOKEN_TS_JS" "rust:$TOKEN_RUST"; do
|
||||
name="${pair%%:*}"
|
||||
if [ -n "${pair#*:}" ]; then
|
||||
echo "$name=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "::notice::No Qodana token for $name in this run: that analysis is skipped."
|
||||
fi
|
||||
done
|
||||
|
||||
typescript:
|
||||
needs: tokens
|
||||
if: ${{ needs.tokens.outputs.typescript == 'true' }}
|
||||
permissions:
|
||||
contents: read
|
||||
uses: poli0981/.github/.gitea/workflows/reusable-qodana.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
|
||||
with:
|
||||
runs-on: ubuntu-latest
|
||||
linter: qodana-js
|
||||
package-manager: npm
|
||||
node-version-file: .node-version
|
||||
artifact-name: qodana-report-typescript
|
||||
secrets:
|
||||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_TS_JS }}
|
||||
|
||||
rust:
|
||||
needs: tokens
|
||||
if: ${{ needs.tokens.outputs.rust == 'true' }}
|
||||
permissions:
|
||||
contents: read
|
||||
uses: poli0981/.github/.gitea/workflows/reusable-qodana.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
|
||||
with:
|
||||
runs-on: windows-latest
|
||||
within-docker: true
|
||||
linter: qodana-rust
|
||||
project-dir: src-tauri
|
||||
repository-root: .
|
||||
# The crates go to Qodana's cached directory.
|
||||
extra-args: -u root -e CARGO_HOME=/data/cache/cargo
|
||||
# tauri::generate_context!() refuses to expand without the frontend
|
||||
# directory (frontendDist, ../dist): an empty page stands in for the web
|
||||
# build, which the analysis does not need. The icons are committed.
|
||||
prepare-command: >-
|
||||
New-Item -ItemType Directory -Force dist | Out-Null;
|
||||
Set-Content -Path dist/index.html -Value '<!doctype html><title>stand-in</title>'
|
||||
artifact-name: qodana-report-rust
|
||||
secrets:
|
||||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_RUST }}
|
||||
@@ -0,0 +1,408 @@
|
||||
# A `vX.Y.Z` tag builds the desktop and Android apps and publishes them to
|
||||
# Cloudflare R2 (ops runbook §3.3, migration guide youtube-generator.md):
|
||||
#
|
||||
# https://releases.poli0981.dev/youtube-generator/<version>/<file>
|
||||
# https://releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk (uploaded last)
|
||||
#
|
||||
# then opens a DRAFT Gitea release with the notes and the links (the forge's
|
||||
# disk is not for binaries, runbook §1). Publish the draft in the Gitea UI,
|
||||
# then run announce-release.yml with the tag for Discord: publishing a draft
|
||||
# the job token created fires no workflow (Gitea credits the event to its
|
||||
# Actions user). The apps have no updater: people download a new version by
|
||||
# hand (docs/PACKAGING.md).
|
||||
#
|
||||
# - verify: the gates a release must pass, and the tag must name the version
|
||||
# in the six manifests.
|
||||
# - Windows builds on the maintainer's PC (host mode, `windows-latest`): MSI
|
||||
# and NSIS. Linux in the runner's Docker image `ubuntu-22.04` (its glibc is
|
||||
# the floor of the .deb/.rpm/.AppImage). Android (universal APK, the four
|
||||
# ABIs) in Docker with the SDK and a pinned NDK installed in the job. No
|
||||
# macOS: there is no macOS runner (migration decision D9); a Mac install
|
||||
# keeps the version it has (1.6.0 was the last).
|
||||
# - The APK is signed by Gradle (src-tauri/gen/android/app/build.gradle.kts
|
||||
# reads keystore.properties). The keystore secrets exist only in that job,
|
||||
# which runs only for a tag or a manual dispatch (runbook §2 rule 10).
|
||||
# - No dependency caches in release builds: a poisoned cache could end up
|
||||
# inside a shipped installer. Releases are rare; take the extra minutes.
|
||||
# - Manual run without a tag ("Run workflow" on a branch): everything builds
|
||||
# and the files are kept as the `r2-release` artifact for 7 days, but
|
||||
# nothing is uploaded or released (publish-r2.yml refuses a branch ref). An
|
||||
# uploaded file is never replaced (rclone --immutable): to ship a fix, bump
|
||||
# the version.
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: ["v*"]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: release-${{ github.ref }}
|
||||
cancel-in-progress: false
|
||||
|
||||
env:
|
||||
# Pin the NDK so CI matches local (a floating NDK is a classic "works
|
||||
# locally, breaks in CI"). To match locally, point NDK_HOME at the same
|
||||
# version (otherwise Tauri picks the highest installed NDK).
|
||||
NDK_VERSION: "27.3.13750724"
|
||||
|
||||
jobs:
|
||||
# Nothing gets built for a tag whose code does not pass the gate or whose
|
||||
# six version fields disagree with the tag itself.
|
||||
verify:
|
||||
name: Verify
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
package-manager-cache: false
|
||||
- run: npm ci --ignore-scripts
|
||||
- run: npm run typecheck
|
||||
- run: npm run test:run
|
||||
- run: npm run check:version
|
||||
- run: npm run check:tauri
|
||||
- name: Tag matches the manifests
|
||||
env:
|
||||
TAG: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
|
||||
run: |
|
||||
version="v$(node -p "require('./package.json').version")"
|
||||
if [ -n "$TAG" ] && [ "$version" != "$TAG" ]; then
|
||||
echo "::error::Tag $TAG does not match package.json ($version)"
|
||||
exit 1
|
||||
fi
|
||||
echo "version $version, tag ${TAG:-none (dry run)}"
|
||||
|
||||
windows:
|
||||
name: Build (Windows)
|
||||
needs: verify
|
||||
runs-on: windows-latest # host mode on the maintainer's PC
|
||||
timeout-minutes: 90
|
||||
permissions:
|
||||
contents: read
|
||||
defaults:
|
||||
run:
|
||||
shell: pwsh
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
package-manager-cache: false
|
||||
# rust-toolchain is pinned to a MASTER commit and given its toolchain:
|
||||
# its `stable` branch is regenerated on top of master, so a commit of
|
||||
# that branch can disappear.
|
||||
- uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
|
||||
with:
|
||||
toolchain: stable
|
||||
- run: npm ci --ignore-scripts
|
||||
# tauri.conf.json: bundle.targets "all" (MSI + NSIS here).
|
||||
- name: Build the installers
|
||||
run: |
|
||||
npm run tauri -- build
|
||||
if ($LASTEXITCODE) { exit $LASTEXITCODE }
|
||||
# One fixed name per kind, so the links never need encoding.
|
||||
- name: Stage the installers
|
||||
run: |
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$version = node -p "require('./src-tauri/tauri.conf.json').version"
|
||||
$out = Join-Path 'staged' $version
|
||||
New-Item -ItemType Directory -Force $out | Out-Null
|
||||
$bundle = 'src-tauri/target/release/bundle'
|
||||
$kinds = @(
|
||||
@{ Dir = 'msi'; Filter = "*_${version}_*.msi"; Name = "YTDescGen_${version}_x64_en-US.msi" },
|
||||
@{ Dir = 'nsis'; Filter = "*_${version}_*-setup.exe"; Name = "YTDescGen_${version}_x64-setup.exe" }
|
||||
)
|
||||
foreach ($k in $kinds) {
|
||||
$found = @(Get-ChildItem (Join-Path $bundle $k.Dir) -File -Filter $k.Filter)
|
||||
if ($found.Count -ne 1) { Write-Host "::error::expected one $($k.Dir) bundle of $version, found: $($found.Name -join ', ')"; exit 1 }
|
||||
Copy-Item $found[0].FullName (Join-Path $out $k.Name)
|
||||
}
|
||||
Get-ChildItem $out | ForEach-Object { "{0,12} {1}" -f $_.Length, $_.Name }
|
||||
- name: Upload the installers
|
||||
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
|
||||
with:
|
||||
name: desktop-windows
|
||||
path: staged/
|
||||
if-no-files-found: error
|
||||
retention-days: 7
|
||||
|
||||
linux:
|
||||
name: Build (Linux)
|
||||
needs: verify
|
||||
runs-on: ubuntu-22.04
|
||||
timeout-minutes: 90
|
||||
permissions:
|
||||
contents: read
|
||||
env:
|
||||
# linuxdeploy is itself an AppImage, and a container has no FUSE.
|
||||
APPIMAGE_EXTRACT_AND_RUN: "1"
|
||||
# linuxdeploy's strip pass fails intermittently on newer ELF sections.
|
||||
NO_STRIP: "true"
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
# The job container runs as root; sudo only where there is one.
|
||||
- name: Install Linux build dependencies
|
||||
run: |
|
||||
SUDO=""; if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" != 0 ]; then SUDO=sudo; fi
|
||||
$SUDO apt-get update
|
||||
$SUDO apt-get install -y --no-install-recommends \
|
||||
libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf \
|
||||
libssl-dev build-essential curl wget file xdg-utils rpm
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
package-manager-cache: false
|
||||
- uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
|
||||
with:
|
||||
toolchain: stable
|
||||
- run: npm ci --ignore-scripts
|
||||
- name: Build the packages
|
||||
run: npm run tauri -- build
|
||||
# One fixed name per kind, so the links never need encoding.
|
||||
- name: Stage the packages
|
||||
run: |
|
||||
set -euo pipefail
|
||||
version=$(node -p "require('./src-tauri/tauri.conf.json').version")
|
||||
out="staged/$version"
|
||||
mkdir -p "$out"
|
||||
bundle=src-tauri/target/release/bundle
|
||||
stage() { # <glob> <name>
|
||||
local found=()
|
||||
for f in $1; do [ -f "$f" ] && found+=("$f"); done
|
||||
[ "${#found[@]}" -eq 1 ] || { echo "::error::expected one bundle for $1, found ${#found[@]}"; ls -la "$bundle"/*; exit 1; }
|
||||
cp "${found[0]}" "$out/$2"
|
||||
}
|
||||
stage "$bundle/appimage/*.AppImage" "YTDescGen_${version}_amd64.AppImage"
|
||||
stage "$bundle/deb/*.deb" "YTDescGen_${version}_amd64.deb"
|
||||
stage "$bundle/rpm/*.rpm" "YTDescGen_${version}_x86_64.rpm"
|
||||
ls -la "$out"
|
||||
- name: Upload the packages
|
||||
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
|
||||
with:
|
||||
name: desktop-linux
|
||||
path: staged/
|
||||
if-no-files-found: error
|
||||
retention-days: 7
|
||||
|
||||
android:
|
||||
name: Build (Android)
|
||||
needs: verify
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "17"
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
package-manager-cache: false
|
||||
- uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
|
||||
with:
|
||||
toolchain: stable
|
||||
targets: aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android
|
||||
# The runner image has no Android SDK (migration decision D10): the
|
||||
# command-line tools come from setup-android (only platform-tools), the
|
||||
# rest from sdkmanager. compileSdk/targetSdk 36 (gen/android).
|
||||
- uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
|
||||
with:
|
||||
packages: platform-tools
|
||||
log-accepted-android-sdk-licenses: false
|
||||
- name: Install NDK + build-tools + platform
|
||||
run: |
|
||||
sdkmanager "ndk;${NDK_VERSION}" "build-tools;36.1.0" "platforms;android-36" > /dev/null
|
||||
echo "NDK_HOME=$ANDROID_HOME/ndk/${NDK_VERSION}" >> "$GITHUB_ENV"
|
||||
- run: npm ci --ignore-scripts
|
||||
# The committed Gradle project (src-tauri/gen/android) builds the Rust
|
||||
# side by running `cargo tauri android android-studio-script`
|
||||
# (buildSrc/.../BuildTask.kt), so the cargo flavour of the Tauri CLI
|
||||
# must be on PATH — the same version as the npm one in package.json.
|
||||
- name: Install the Tauri CLI (cargo)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
version=$(node -p "require('./package.json').devDependencies['@tauri-apps/cli']")
|
||||
cargo install tauri-cli --version "=${version}" --locked
|
||||
cargo tauri --version
|
||||
# Its release signing config reads keystore.properties, written here
|
||||
# and removed with the keystore after the build.
|
||||
- name: Write the keystore
|
||||
env:
|
||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
|
||||
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||
ANDROID_STORE_PASSWORD: ${{ secrets.ANDROID_STORE_PASSWORD }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ -z "$ANDROID_KEYSTORE_BASE64" ]; then echo "::error::ANDROID_KEYSTORE_BASE64 is not set"; exit 1; fi
|
||||
echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > "$RUNNER_TEMP/release.jks"
|
||||
{
|
||||
echo "storeFile=$RUNNER_TEMP/release.jks"
|
||||
echo "storePassword=$ANDROID_STORE_PASSWORD"
|
||||
echo "keyAlias=$ANDROID_KEY_ALIAS"
|
||||
echo "keyPassword=$ANDROID_KEY_PASSWORD"
|
||||
} > src-tauri/gen/android/keystore.properties
|
||||
- name: Build the signed APK (universal)
|
||||
run: cargo tauri android build --apk
|
||||
- name: Stage the APK
|
||||
run: |
|
||||
set -euo pipefail
|
||||
rm -f "$RUNNER_TEMP/release.jks" src-tauri/gen/android/keystore.properties
|
||||
BT=$(find "$ANDROID_HOME/build-tools" -mindepth 1 -maxdepth 1 -type d | sort -V | tail -1)
|
||||
version=$(node -p "require('./src-tauri/tauri.conf.json').version")
|
||||
apk=src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
|
||||
[ -f "$apk" ] || { echo "::error::no $apk"; find src-tauri/gen/android/app/build/outputs -name '*.apk'; exit 1; }
|
||||
"$BT/apksigner" verify --print-certs "$apk" | grep -i 'SHA-256' || true
|
||||
"$BT/apksigner" verify "$apk"
|
||||
mkdir -p "staged/$version"
|
||||
cp "$apk" "staged/$version/YTDescGen_${version}_universal.apk"
|
||||
ls -la "staged/$version"
|
||||
- name: Remove the keystore
|
||||
if: ${{ always() }}
|
||||
run: rm -f "$RUNNER_TEMP/release.jks" src-tauri/gen/android/keystore.properties
|
||||
- name: Upload the APK
|
||||
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
|
||||
with:
|
||||
name: android
|
||||
path: staged/
|
||||
if-no-files-found: error
|
||||
retention-days: 7
|
||||
|
||||
assemble:
|
||||
name: Assemble (checksums, notes)
|
||||
needs: [windows, linux, android]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Download the Windows installers
|
||||
uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
|
||||
with:
|
||||
name: desktop-windows
|
||||
path: r2-release/versioned
|
||||
- name: Download the Linux packages
|
||||
uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
|
||||
with:
|
||||
name: desktop-linux
|
||||
path: r2-release/versioned
|
||||
- name: Download the APK
|
||||
uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
|
||||
with:
|
||||
name: android
|
||||
path: r2-release/versioned
|
||||
# On a tag, the tag must name the version the apps were built with.
|
||||
- name: Checksums, alias and notes
|
||||
env:
|
||||
TAG: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
|
||||
SERVER: ${{ github.server_url }}
|
||||
REPO: ${{ github.repository }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
version=$(node -p "require('./src-tauri/tauri.conf.json').version")
|
||||
if [ -n "$TAG" ] && [ "$TAG" != "v$version" ]; then
|
||||
echo "::error::tag $TAG does not match the app version $version (tauri.conf.json)"; exit 1
|
||||
fi
|
||||
dir="r2-release/versioned/$version"
|
||||
[ "$(find "$dir" -type f | wc -l)" -eq 6 ] || { echo "::error::expected 6 files in $dir"; ls -la "$dir"; exit 1; }
|
||||
(cd "$dir" && sha256sum -- * | sort -k2 > SHA256SUMS)
|
||||
cat "$dir/SHA256SUMS"
|
||||
cp "$dir/YTDescGen_${version}_universal.apk" r2-release/youtube-generator-latest.apk
|
||||
|
||||
base="https://releases.poli0981.dev/youtube-generator/$version"
|
||||
{
|
||||
echo "YTDescGen $version for Windows, Linux and Android — the same app as https://ytgenerator.stream."
|
||||
echo
|
||||
echo "What changed: [CHANGELOG]($SERVER/$REPO/src/branch/main/CHANGELOG.md)."
|
||||
echo
|
||||
echo "**Download** — Windows 10/11 x64 (\`-setup.exe\` or \`.msi\`), Linux x86_64 (\`.AppImage\`, \`.deb\`, \`.rpm\`), Android 11+ (universal \`.apk\`). No macOS build since 1.6.0 (there is no macOS build machine since the move from GitHub)."
|
||||
echo
|
||||
while read -r _ name; do
|
||||
echo "- [$name]($base/$name)"
|
||||
done < "$dir/SHA256SUMS"
|
||||
echo "- [SHA256SUMS]($base/SHA256SUMS)"
|
||||
echo
|
||||
echo "The newest APK is always at https://releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk."
|
||||
echo
|
||||
echo "SHA-256:"
|
||||
echo
|
||||
echo '```'
|
||||
cat "$dir/SHA256SUMS"
|
||||
echo '```'
|
||||
} > notes.md
|
||||
cat notes.md
|
||||
- name: Upload the release files
|
||||
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
|
||||
with:
|
||||
name: r2-release
|
||||
path: r2-release/
|
||||
if-no-files-found: error
|
||||
retention-days: 7
|
||||
- name: Upload the notes
|
||||
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
|
||||
with:
|
||||
name: release-notes
|
||||
path: notes.md
|
||||
retention-days: 7
|
||||
|
||||
publish:
|
||||
name: Publish to R2
|
||||
needs: assemble
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
permissions:
|
||||
contents: read
|
||||
uses: poli0981/.github/.gitea/workflows/publish-r2.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
|
||||
with:
|
||||
app: youtube-generator
|
||||
artifact: r2-release
|
||||
versioned-dir: versioned
|
||||
feed-files: |
|
||||
youtube-generator-latest.apk
|
||||
runs-on: ubuntu-latest
|
||||
secrets:
|
||||
R2_RELEASES_ACCESS_KEY_ID: ${{ secrets.R2_RELEASES_ACCESS_KEY_ID }}
|
||||
R2_RELEASES_SECRET_ACCESS_KEY: ${{ secrets.R2_RELEASES_SECRET_ACCESS_KEY }}
|
||||
|
||||
release:
|
||||
name: Gitea release (draft, notes + links)
|
||||
needs: publish
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
contents: write # VERIFY which of contents / releases Gitea enforces
|
||||
releases: write # (runbook §3.2 item 5)
|
||||
steps:
|
||||
- name: Download the notes
|
||||
uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
|
||||
with:
|
||||
name: release-notes
|
||||
path: .
|
||||
- name: Create the draft release
|
||||
uses: https://gitea.com/actions/gitea-release-action@5a83c90484ef4355121df5eb60558c8ce66e81ac # v1.3.7
|
||||
with:
|
||||
tag_name: ${{ github.ref_name }}
|
||||
name: YTDescGen ${{ github.ref_name }}
|
||||
body_path: notes.md
|
||||
draft: true
|
||||
@@ -1,20 +1,25 @@
|
||||
name: Rust
|
||||
|
||||
# The Tauri shell changes rarely, so this only runs when it does (or weekly,
|
||||
# to catch new RustSec advisories). Not a required check for that reason.
|
||||
# so a new stable toolchain's lints show up without a code change). Not a
|
||||
# required check for that reason. cargo-deny (advisories, licences, sources)
|
||||
# runs in security.yml through the ops repo.
|
||||
#
|
||||
# Weekly: Monday 15:53 UTC = 22:53 Vietnam (slot in the ops repo's cron
|
||||
# registry; the runner only runs 13:00–16:00 UTC).
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "src-tauri/**"
|
||||
- ".github/workflows/rust.yml"
|
||||
- ".gitea/workflows/rust.yml"
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "src-tauri/**"
|
||||
- ".github/workflows/rust.yml"
|
||||
- ".gitea/workflows/rust.yml"
|
||||
schedule:
|
||||
- cron: "41 4 * * 1"
|
||||
- cron: "53 15 * * 1"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
@@ -26,32 +31,36 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
lint-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest # Gitea: Docker, docker.gitea.com/runner-images
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
# The libraries Tauri links against on Linux. The job container runs as
|
||||
# root; sudo only where there is one.
|
||||
- name: Install Linux dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \
|
||||
SUDO=""; if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" != 0 ]; then SUDO=sudo; fi
|
||||
$SUDO apt-get update
|
||||
$SUDO apt-get install -y --no-install-recommends \
|
||||
build-essential pkg-config libssl-dev libwebkit2gtk-4.1-dev libgtk-3-dev \
|
||||
libayatana-appindicator3-dev librsvg2-dev patchelf
|
||||
# Pinned to a commit on master, with the toolchain passed explicitly: the
|
||||
# action's `stable` branch is regenerated from master, which orphans any
|
||||
# SHA pinned there (zizmor: impostor-commit). Master keeps its history.
|
||||
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
|
||||
# rust-toolchain is pinned to a MASTER commit and given its toolchain:
|
||||
# its `stable` branch is regenerated on top of master, so a commit of
|
||||
# that branch can disappear (zizmor then reports an impostor commit).
|
||||
- uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
|
||||
with:
|
||||
toolchain: stable
|
||||
components: rustfmt, clippy
|
||||
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
||||
with:
|
||||
workspaces: src-tauri
|
||||
# tauri::generate_context!() embeds the frontend at compile time, so
|
||||
# clippy and the tests need a built dist/.
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: npm
|
||||
# tauri::generate_context!() needs the web build (frontendDist).
|
||||
- run: npm ci --ignore-scripts
|
||||
- run: npm run build
|
||||
- name: rustfmt
|
||||
@@ -63,16 +72,3 @@ jobs:
|
||||
- name: test
|
||||
working-directory: src-tauri
|
||||
run: cargo test --locked
|
||||
|
||||
# RustSec advisories, license allowlist, duplicate/banned crates and
|
||||
# registry sources for the whole crate tree (src-tauri/deny.toml).
|
||||
cargo-deny:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
|
||||
with:
|
||||
manifest-path: src-tauri/Cargo.toml
|
||||
command: check advisories licenses sources
|
||||
@@ -0,0 +1,89 @@
|
||||
name: Security
|
||||
|
||||
# Gitea has no CodeQL, no dependency review and no code-scanning UI (runbook
|
||||
# §1, migration decision D7). This workflow covers:
|
||||
#
|
||||
# workflow-lint actionlint + shellcheck and zizmor on .gitea/workflows/*.yml
|
||||
# scan the ops repo's security.yml: gitleaks (full history),
|
||||
# Opengrep (SAST), osv-scanner (package-lock.json, Cargo.lock;
|
||||
# exceptions in src-tauri/osv-scanner.toml) and cargo-deny
|
||||
# (src-tauri/deny.toml)
|
||||
#
|
||||
# Weekly as well, so a new advisory against an unchanged lockfile turns it red:
|
||||
# Wednesday 13:37 UTC = 20:37 Vietnam (slot in the ops repo's cron registry;
|
||||
# the runner is the maintainer's PC and only runs 13:00–16:00 UTC).
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main]
|
||||
schedule:
|
||||
- cron: "37 13 * * 3"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: security-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
# Both linters without Docker: actionlint and shellcheck as release binaries
|
||||
# at pinned versions, SHA-256 verified (the ops repo's ops-lint.yml pins);
|
||||
# zizmor from the hash-locked .github/requirements-ci.txt. Renovate does not
|
||||
# update the binaries: bump version and checksum together, by hand.
|
||||
workflow-lint:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
ACTIONLINT_VERSION: 1.7.12
|
||||
ACTIONLINT_SHA256: 8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8 # actionlint_1.7.12_linux_amd64.tar.gz (release checksums file)
|
||||
SHELLCHECK_VERSION: v0.11.0
|
||||
SHELLCHECK_SHA256: 8c3be12b05d5c177a04c29e3c78ce89ac86f1595681cab149b65b97c4e227198 # shellcheck-v0.11.0.linux.x86_64.tar.xz
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: Install zizmor
|
||||
run: |
|
||||
python -m pip install --quiet --require-hashes --only-binary :all: -r .github/requirements-ci.txt
|
||||
# The files by name: zizmor only looks for .github/workflows by itself.
|
||||
# Offline: its online audits ask GitHub's API about the actions, with a
|
||||
# token this runner does not have. Any finding at medium or above fails.
|
||||
- name: zizmor (workflow security audit)
|
||||
run: zizmor --offline --min-severity medium --config .github/zizmor.yml .gitea/workflows/*.yml
|
||||
- name: Install actionlint ${{ env.ACTIONLINT_VERSION }} + shellcheck ${{ env.SHELLCHECK_VERSION }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
tmp="${RUNNER_TEMP:-/tmp}"
|
||||
bin="$tmp/lint-bin"
|
||||
mkdir -p "$bin"
|
||||
curl -fsSL --retry 3 -o "$tmp/actionlint.tar.gz" \
|
||||
"https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
|
||||
echo "${ACTIONLINT_SHA256} $tmp/actionlint.tar.gz" | sha256sum -c -
|
||||
tar -xzf "$tmp/actionlint.tar.gz" -C "$bin" actionlint
|
||||
curl -fsSL --retry 3 -o "$tmp/shellcheck.tar.xz" \
|
||||
"https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz"
|
||||
echo "${SHELLCHECK_SHA256} $tmp/shellcheck.tar.xz" | sha256sum -c -
|
||||
tar -xJf "$tmp/shellcheck.tar.xz" -C "$bin" --strip-components=1 "shellcheck-${SHELLCHECK_VERSION}/shellcheck"
|
||||
echo "$bin" >> "$GITHUB_PATH"
|
||||
# .github/actionlint.yaml ignores only the Gitea features actionlint does
|
||||
# not know; everything else stays an error.
|
||||
- name: actionlint (workflow syntax and expressions)
|
||||
run: |
|
||||
actionlint -version
|
||||
actionlint -color -config-file .github/actionlint.yaml \
|
||||
-shellcheck "$(command -v shellcheck)" .gitea/workflows/*.yml
|
||||
|
||||
scan:
|
||||
permissions:
|
||||
contents: read
|
||||
uses: poli0981/.github/.gitea/workflows/security.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
|
||||
with:
|
||||
node: true
|
||||
rust: true
|
||||
cargo-manifest-path: src-tauri/Cargo.toml
|
||||
@@ -1,6 +0,0 @@
|
||||
github: poli0981
|
||||
ko_fi: skullmute
|
||||
buy_me_a_coffee: skullmute
|
||||
patreon: skullmute
|
||||
custom:
|
||||
- paypal.me/DungDang212
|
||||
@@ -8,7 +8,7 @@ body:
|
||||
value: |
|
||||
Thanks for telling us. You don't need to know what causes the problem — describe what you tried and what happened.
|
||||
Prefer not to post in public? Email **contact@poli0981.dev** with `[Accessibility]` at the start of the subject.
|
||||
How reports are handled: [ACCESSIBILITY.md](https://github.com/poli0981/youtube-generator/blob/main/ACCESSIBILITY.md#reporting-a-barrier).
|
||||
How reports are handled: [ACCESSIBILITY.md](https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/ACCESSIBILITY.md#reporting-a-barrier).
|
||||
- type: textarea
|
||||
id: barrier
|
||||
attributes:
|
||||
@@ -88,7 +88,7 @@ body:
|
||||
options:
|
||||
- Web (ytgenerator.stream)
|
||||
- Desktop — Windows (Tauri)
|
||||
- Desktop — macOS (Tauri)
|
||||
- Desktop — macOS (Tauri, 1.6.0 or older)
|
||||
- Desktop — Linux (Tauri)
|
||||
- Android (APK)
|
||||
- Local dev (npm run dev)
|
||||
|
||||
@@ -23,7 +23,7 @@ body:
|
||||
options:
|
||||
- Web (ytgenerator.stream)
|
||||
- Desktop — Windows (Tauri)
|
||||
- Desktop — macOS (Tauri)
|
||||
- Desktop — macOS (Tauri, 1.6.0 or older)
|
||||
- Desktop — Linux (Tauri)
|
||||
- Android (APK)
|
||||
- Local dev (npm run dev)
|
||||
|
||||
@@ -1,20 +1,14 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Feature ideas (maintenance mode)
|
||||
url: https://github.com/poli0981/youtube-generator/discussions/categories/ideas
|
||||
about: YTDescGen is in maintenance mode and takes no new features. Share ideas in Discussions, with no commitment. To add or remove an option in one of the app's lists, use the Option request form.
|
||||
- name: Issues and merge requests (GitLab mirror)
|
||||
url: https://gitlab.com/poli0981/youtube-generator/-/issues
|
||||
about: The Gitea repository takes no sign-ups. Bug reports, option requests, translation fixes and accessibility barriers go to the GitLab mirror, which has the same templates. YTDescGen is in maintenance mode and takes no new features.
|
||||
- name: Report a security vulnerability
|
||||
url: https://github.com/poli0981/youtube-generator/security/advisories/new
|
||||
about: Privately, please — never in a public issue. See SECURITY.md.
|
||||
- name: User guide (wiki)
|
||||
url: https://github.com/poli0981/youtube-generator/wiki
|
||||
about: How-tos, backup & restore, troubleshooting and the FAQ.
|
||||
url: https://ytgenerator.stream/.well-known/security.txt
|
||||
about: Privately, by e-mail to security@poli0981.dev — never in a public issue. See SECURITY.md.
|
||||
- name: Discord
|
||||
url: https://discord.gg/kDM9GMu5vm
|
||||
about: For casual questions, gameplay chat, or quick help. Use an issue form for anything actionable.
|
||||
about: For casual questions, gameplay chat, or quick help. Use an issue for anything actionable.
|
||||
- name: All channels and contacts
|
||||
url: https://poli0981.dev/links/
|
||||
about: Email addresses by purpose and every other way to reach the maintainer.
|
||||
- name: GitHub Discussions
|
||||
url: https://github.com/poli0981/youtube-generator/discussions
|
||||
about: Ideas, Q&A, and release announcements live here.
|
||||
@@ -6,7 +6,7 @@ body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
YTDescGen is in **maintenance mode** ([CONTRIBUTING.md → Maintenance mode](https://github.com/poli0981/youtube-generator/blob/main/CONTRIBUTING.md#maintenance-mode)): it takes no new features, but an option people really need can still join — or leave — one of the lists the app already has. For anything else, share the idea in [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas).
|
||||
YTDescGen is in **maintenance mode** ([CONTRIBUTING.md → Maintenance mode](https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/CONTRIBUTING.md#maintenance-mode)): it takes no new features, but an option people really need can still join — or leave — one of the lists the app already has. For anything else, open a plain issue.
|
||||
- type: dropdown
|
||||
id: action
|
||||
attributes:
|
||||
|
||||
@@ -6,7 +6,7 @@ body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
YTDescGen ships eight languages. Vietnamese is native-reviewed; Japanese, Spanish, Korean, Chinese, Portuguese (Brazil) and Indonesian are AI-translated (see [DISCLAIMER.md](https://github.com/poli0981/youtube-generator/blob/main/DISCLAIMER.md)), so corrections from native speakers are very welcome.
|
||||
YTDescGen ships eight languages. Vietnamese is native-reviewed; Japanese, Spanish, Korean, Chinese, Portuguese (Brazil) and Indonesian are AI-translated (see [DISCLAIMER.md](https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/DISCLAIMER.md)), so corrections from native speakers are very welcome.
|
||||
- type: dropdown
|
||||
id: language
|
||||
attributes:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
YTDescGen is in maintenance mode (CONTRIBUTING.md → "Maintenance mode"):
|
||||
new features are out of scope, and `feat:` pull requests from outside
|
||||
contributors are closed automatically unless their scope is `options`
|
||||
contributors are closed unless their scope is `options`
|
||||
(an agreed option request), `a11y` or `i18n`.
|
||||
-->
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# actionlint settings (security.yml, job `workflow-lint`, and a local
|
||||
# `actionlint` run from the repo root), as in the ops repo poli0981/.github.
|
||||
# Only Gitea features that actionlint does not know are ignored here;
|
||||
# everything else stays an error.
|
||||
paths:
|
||||
.gitea/workflows/*.yml:
|
||||
ignore:
|
||||
# Gitea's own token scope for releases (ops runbook §3.2 item 5)
|
||||
- 'unknown permission scope "releases"'
|
||||
# Gitea resolves full-URL actions; bare owner/repo goes to github.com (ops runbook §1)
|
||||
- 'specifying action "https://gitea\.com/[^"]+" in invalid format'
|
||||
@@ -1,139 +0,0 @@
|
||||
# Dependabot configuration.
|
||||
#
|
||||
# Three ecosystems: npm (the app), cargo (the Tauri shell), and github-actions
|
||||
# (the workflows). Security updates are on repo-wide by default; the entries
|
||||
# below add scheduled VERSION updates so the tree does not silently rot between
|
||||
# advisories, and carry the ignore rules that keep unfixable alerts quiet.
|
||||
#
|
||||
# `cooldown` holds version updates back for a week after a release is
|
||||
# published. Most npm supply-chain compromises are caught and yanked within
|
||||
# that window; security updates ignore the cooldown and still arrive at once.
|
||||
#
|
||||
# Why the cargo ignore: `glib` is a transitive dependency of tauri's Linux
|
||||
# stack, and its security fix requires a semver-major bump the tree does not
|
||||
# allow, so every Dependabot security-update job for it fails with
|
||||
# `security_update_not_possible`:
|
||||
#
|
||||
# glib 0.18.5 (fix: 0.20.0) pinned by
|
||||
# tauri's gtk-rs 0.18 Linux stack (gtk/gdk/gio 0.18 require glib 0.18)
|
||||
#
|
||||
# Remove the ignore once tauri moves to gtk-rs >= 0.20. (`rand` 0.7.3, the
|
||||
# other long-standing one, left the tree in v1.0.0 when tauri 2.12 dropped
|
||||
# kuchikiki.)
|
||||
#
|
||||
# The npm side holds one package back on purpose: `i18next` stays on 26.6.x
|
||||
# (`~26.6.0` in package.json). 26.7, the last 26.x minor, adds the debug-mode
|
||||
# warnings that prepare the move to v27 — about 1.9 KB gzip in the i18n chunk,
|
||||
# which takes the initial load from 279.0 KB to 280.9 KB, over the 280 KB
|
||||
# budget (`npm run check:bundle`), for code the app never runs. Remove the
|
||||
# ignore and the tilde with the planned i18next 27 migration.
|
||||
#
|
||||
# (`undici`, overridden in package.json for alert #49 until v1.5.1, needs no
|
||||
# override any more: miniflare >= 5.20261101 depends on undici 7.30.1 itself.)
|
||||
#
|
||||
# Tauri moves in lockstep: the tauri CLI refuses to build when the
|
||||
# @tauri-apps/* npm packages and the tauri crates differ in major.minor. When
|
||||
# the `tauri` npm group arrives, run `cargo update -p tauri` (and the plugin
|
||||
# crates) in src-tauri/ on the same branch — `npm run check:tauri` in CI says
|
||||
# which ones.
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
cooldown:
|
||||
default-days: 7
|
||||
open-pull-requests-limit: 5
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
prefix-development: "chore(deps-dev)"
|
||||
groups:
|
||||
# One PR per family instead of one per package. A split React or
|
||||
# typescript-eslint bump is never independently mergeable anyway, and
|
||||
# CI has to run for each PR. A package joins the FIRST group it matches,
|
||||
# so the specific families come before the catch-alls.
|
||||
react:
|
||||
patterns: ["react", "react-dom", "@types/react", "@types/react-dom"]
|
||||
i18n:
|
||||
patterns: ["i18next*", "react-i18next"]
|
||||
tauri:
|
||||
patterns: ["@tauri-apps/*"]
|
||||
ui:
|
||||
patterns:
|
||||
[
|
||||
"radix-ui",
|
||||
"@radix-ui/*",
|
||||
"motion",
|
||||
"cmdk",
|
||||
"sonner",
|
||||
"lucide-react",
|
||||
"clsx",
|
||||
"@fontsource*",
|
||||
"react-router*",
|
||||
"zustand",
|
||||
]
|
||||
cloudflare:
|
||||
patterns: ["wrangler", "@cloudflare/*"]
|
||||
# TypeScript 7 (`tsc`) and the TypeScript 6 API that typescript-eslint
|
||||
# still needs, installed side by side as npm aliases (see package.json).
|
||||
# Dependabot may not resolve `npm:` aliases — if no PR shows up for a new
|
||||
# 7.x, bump both by hand.
|
||||
typescript:
|
||||
patterns: ["typescript", "@typescript/*"]
|
||||
lint-and-format:
|
||||
patterns: ["eslint*", "@eslint/*", "typescript-eslint", "prettier*", "knip"]
|
||||
build-tooling:
|
||||
patterns:
|
||||
[
|
||||
"vite",
|
||||
"vitest",
|
||||
"@vitest/*",
|
||||
"@vitejs/*",
|
||||
"tailwindcss",
|
||||
"@tailwindcss/*",
|
||||
"postcss",
|
||||
"autoprefixer",
|
||||
"tsx",
|
||||
"marked",
|
||||
"@resvg/*",
|
||||
]
|
||||
testing:
|
||||
patterns: ["@testing-library/*"]
|
||||
types:
|
||||
patterns: ["@types/*"]
|
||||
ignore:
|
||||
# Majors land in their own planned release because each one needs a real
|
||||
# migration (Vitest 5 is the current example). Dependabot handles minor +
|
||||
# patch.
|
||||
- dependency-name: "*"
|
||||
update-types: ["version-update:semver-major"]
|
||||
# Bundle budget — see the note at the top.
|
||||
- dependency-name: "i18next"
|
||||
versions: ["26.7.x"]
|
||||
|
||||
- package-ecosystem: "cargo"
|
||||
directory: "/src-tauri"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
# No version-update PRs; this entry only feeds ignore rules to security
|
||||
# updates. The Rust side moves with tauri (see the note at the top).
|
||||
open-pull-requests-limit: 0
|
||||
cooldown:
|
||||
default-days: 7
|
||||
ignore:
|
||||
- dependency-name: "glib"
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
cooldown:
|
||||
default-days: 7
|
||||
open-pull-requests-limit: 3
|
||||
commit-message:
|
||||
prefix: "ci"
|
||||
groups:
|
||||
actions:
|
||||
patterns: ["*"]
|
||||
@@ -0,0 +1,5 @@
|
||||
# Python tools the workflows run (compliance.yml: reuse; security.yml: zizmor).
|
||||
# Lock: requirements-ci.txt, regenerated by Renovate (pip-compile manager) or by
|
||||
# the command in its header.
|
||||
reuse==6.3.0
|
||||
zizmor==1.32.0
|
||||
@@ -0,0 +1,205 @@
|
||||
# This file was autogenerated by uv via the following command:
|
||||
# uv pip compile .github/requirements-ci.in --generate-hashes --python-platform x86_64-manylinux_2_28 --python-version 3.12 -o .github/requirements-ci.txt
|
||||
attrs==26.1.0 \
|
||||
--hash=sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309 \
|
||||
--hash=sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32
|
||||
# via reuse
|
||||
boolean-py==5.0 \
|
||||
--hash=sha256:60cbc4bad079753721d32649545505362c754e121570ada4658b852a3a318d95 \
|
||||
--hash=sha256:ef28a70bd43115208441b53a045d1549e2f0ec6e3d08a9d142cbc41c1938e8d9
|
||||
# via license-expression
|
||||
click==8.5.1 \
|
||||
--hash=sha256:8bb5376d2006950386f8c6427613334a2acadc5f559cb80e638d00b4df957e37 \
|
||||
--hash=sha256:9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4
|
||||
# via reuse
|
||||
jinja2==3.1.6 \
|
||||
--hash=sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d \
|
||||
--hash=sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67
|
||||
# via reuse
|
||||
license-expression==30.4.4 \
|
||||
--hash=sha256:421788fdcadb41f049d2dc934ce666626265aeccefddd25e162a26f23bcbf8a4 \
|
||||
--hash=sha256:73448f0aacd8d0808895bdc4b2c8e01a8d67646e4188f887375398c761f340fd
|
||||
# via reuse
|
||||
markupsafe==3.0.4 \
|
||||
--hash=sha256:007e1ffd9bf65bb6ee96df7b258fc632a4868dd5566037986c64781f35a36e98 \
|
||||
--hash=sha256:02fa4acbc6a3fc5c693c34d4dd8c1130b7fe99cc915181b0ddd6f72aeb296002 \
|
||||
--hash=sha256:03470d1a8268e692ecf79ecd565593e59d44219377a7ead61f1f1b94c1f7ff6b \
|
||||
--hash=sha256:04e7902ba80ee4bac1d50a549606527a1dcf0476cd81403db41099d3b60ec653 \
|
||||
--hash=sha256:051417f74bcaaefa316276e0ff723f541616ca51043d070da00249d9bddd3e3c \
|
||||
--hash=sha256:05295589e619b9bed252a86b532b8e27350abc372d18ba89b59375325e91ec1e \
|
||||
--hash=sha256:06de8ef6331f6e822c28d577dc8bf43fe398800477c49498f38fc38b67ff33fc \
|
||||
--hash=sha256:0764a13d34cae40db7bbf3a09b7e9b491bf4603e20b263a7a9d6b8e324975d0a \
|
||||
--hash=sha256:077293e425f28ec737dbcad442a71752e28f8ae27cde3d68acd1fb212091cd92 \
|
||||
--hash=sha256:0930db9bdc62d22944e10b066448bb65dc9abe9112880c7cab8da54db4284d5f \
|
||||
--hash=sha256:0cee7cb0f9a1b6892ea482237d9403b3d1b4603aee057d0ff01f0fac2d019a97 \
|
||||
--hash=sha256:0d9c47709875fdb321452056622e930c52afbc07a7d780762fbb8b4d91ce6fa4 \
|
||||
--hash=sha256:11935df9bf455ed0c04eb87bcd720f02b1fe5e02128a9430f23aed6f93336fc7 \
|
||||
--hash=sha256:12a606a492de952afcb43b59a14aaaaad120e708d3663dd0fdf2d738d427a691 \
|
||||
--hash=sha256:14bd2d845d62ab678eaf81da89d7b621b51756c72346745c1a594c09d49207a2 \
|
||||
--hash=sha256:15ba9e28640feef770374b116a6f019c21f52404aeabe516aa7f800587b98cfc \
|
||||
--hash=sha256:18a801868a884f216e784d7d14db2a4077143ce7610440aee2ce8f734e7cfcde \
|
||||
--hash=sha256:1c0df495a977d10460a94941799c72d5b5ab03d3858d949b55b5a66c8f371c99 \
|
||||
--hash=sha256:1caa2fa5a6184fb233153b35f654e6687bd555476f6170f29d8ee9be1a8b0af9 \
|
||||
--hash=sha256:1e1451fab512d1bcc3dc26988ec1edb0b82c2db909132872cd9356070a6b63df \
|
||||
--hash=sha256:1f1f9477e174582b0a1b583d60b66e1f2cf5d3fe12cee985e4aedf44766600e5 \
|
||||
--hash=sha256:2628d3a8cb648ecebb3c5d6b0a1052d400e4d8b7ac0fb786be8d285b50040d17 \
|
||||
--hash=sha256:26e9867520db70d37f7fb421a7f0d8adb40171011fb84ce869afa1a83370dfa8 \
|
||||
--hash=sha256:2a6ef68ae94aed8721934072b27a3b654ea2100b97e4ab864cf1489c90926fbc \
|
||||
--hash=sha256:2b2b1e18af909b448bb3cf9e3433366f7a8726271fc214e8b10e0f62a78c724b \
|
||||
--hash=sha256:2cb3dd71fc6be918ad4264346a8ed69485f9b7ed7bf35495d8e22807cd6b8bea \
|
||||
--hash=sha256:2d1b7d9308288661f56672b1b157d75fc536714d3638487bbea17b6318a78248 \
|
||||
--hash=sha256:2dad610540cb2e6272855c178f08ae9a1c7ac258a7fb71660553a5f104b42741 \
|
||||
--hash=sha256:2e5a7cd7fdd14fcb1ae5d7d8bf23d24fbd1daefd1fbca2580132e1ea75f098b5 \
|
||||
--hash=sha256:2e9ad7dd851bf45fab9f75cbff4cb493fee9979e8d8c7c9c3ee119022518edd6 \
|
||||
--hash=sha256:340cbb1957ba99929cbf19a75626d36ba1ae21d1730b287d1cf7f824a20c4fc7 \
|
||||
--hash=sha256:34bdde374c5932765d7dc685c4a1d191a3207852d67e8e0a9eb6ea85156181f1 \
|
||||
--hash=sha256:353bd63081912ab8cfa6a0c7d185934cdf8426f04c618bba6bc4b394f2069b67 \
|
||||
--hash=sha256:387d8cd30e69b3f0a72877b9ae717033396404e19095b17fe89753a981fda44f \
|
||||
--hash=sha256:3882fb412298575bae3b9c46868251f15cc69307359f87bb1b382e53d6e5a2c9 \
|
||||
--hash=sha256:38fc55594dab834470b6733dead2ee9e3f657fb0608c769dcafa0ba5ab52f45c \
|
||||
--hash=sha256:396ec4e65cc889f69786b3b89478b471cee5a3bcf468b9d9bb03e1a30fb291fc \
|
||||
--hash=sha256:39dbacefc411633db5b4378b066a9aca70a3d7e2922c9e578d825f844026eeba \
|
||||
--hash=sha256:3a93d9616ddecfb393727a0041a562cf0b15a244e20f2bd25efc7949be4c4f17 \
|
||||
--hash=sha256:3d23795802fc8bd72534836d64489bbf0f67c088959091bdb22e10735a5107bf \
|
||||
--hash=sha256:434139499bb20b502ed3baa1f169e618f924a97e7a777fea1a49446d80106cf6 \
|
||||
--hash=sha256:436e3ffc6310d3c41878c601db29098102fe5d8a467c49da4a4125254e0980f2 \
|
||||
--hash=sha256:489505b03f692c3f376394e49194fa7a7f9e8558d6e293a7056a0032b0c38163 \
|
||||
--hash=sha256:4a540e2d3192792fc84eced57bef37851ccb2b41f73291bb17408eea77bcd278 \
|
||||
--hash=sha256:4a7cdc2a420ca01058182da4253329764d4bfa055564d1eced90e6ba1e8b1d3d \
|
||||
--hash=sha256:4bced6e2a6dba6a28f7dd3c6ce14df1b2dd495923f16ea484cad03decd463b2b \
|
||||
--hash=sha256:4cf3468d5ec187ffffcaca8e61929a37448f215dafc1386a12c750a72fe53634 \
|
||||
--hash=sha256:4e2c4809c14559aa7ef426f27fb35afbb38104c349a903bf8f3600456764bb38 \
|
||||
--hash=sha256:4ed644d75aa94a2baf7ec3a96eaa160ea58c742eb9d27c6506053c5c40fc84ed \
|
||||
--hash=sha256:4f6e0852a0283b1b1fd776eeb7b766a5f440b3e2bd31ab51af3b400585f3965c \
|
||||
--hash=sha256:5066b244f576f91afc8ee3ba029a89f99d39c79b1853fe9d39bea9f0afbec148 \
|
||||
--hash=sha256:5086f9975abb1ab531ee6afca1761e4b59a19b446f3f6522ed776963228cfe5a \
|
||||
--hash=sha256:50b5bedc9ed8a94fc8857a42ef4f84a81ea88f8d4f05dc8705fb23ee6d8dcca7 \
|
||||
--hash=sha256:52704c5d36eb6dda8866493decd61111fff86244c9b1ad225ca01b9e91e5970f \
|
||||
--hash=sha256:55ffd6ce583d97dc71dc92e930324c8c0d25aea7e3ade6ae54ef77cedb096811 \
|
||||
--hash=sha256:569d65055d367e3dcdf30c3f41119467b73d9ee9faf332bdf40402644f5ac08e \
|
||||
--hash=sha256:57f9947a7e57a081c1e3e0a2dd0d2dcf290a4531450e6f611e30084c222a7295 \
|
||||
--hash=sha256:5989cb26b2e1efc6a42216a9f6b5ee495ce5ace2e5b352a9af489976b32d1ee2 \
|
||||
--hash=sha256:5c22873ad1f0532ba40fa1727f3c0fc1bbbaab6d373d4cbe3f0dc74b2e2521c7 \
|
||||
--hash=sha256:5e8b3d0b18fd623afa12ecb2ce8d8becef69f9b5440c6330c7972200e0bb84b0 \
|
||||
--hash=sha256:61631e08084be9e21a8967ec3139c7616ed7c5e9368e05c86d1b39562c8a57b6 \
|
||||
--hash=sha256:64511c54db4e4987aef4c41923235927428729e8174c5dba488429be70a998ed \
|
||||
--hash=sha256:6669c1bf34080161ce49c589cc512ef24d4c704ac9d2b2d3667f519c60418378 \
|
||||
--hash=sha256:672d207103e6b16ca098611b0f9efad6bc00afd47c03d6ef62186495ca677dc0 \
|
||||
--hash=sha256:6768d67d1bce64270e0fdc2e69309d68b9b18ae56ddf6c711d168e9d051c2cac \
|
||||
--hash=sha256:6a45c3d514f2436064db00d7fc8778d888f0236ebfed649b53d13a59e69ad51b \
|
||||
--hash=sha256:6bd9e1788e15bfcf6a9082de42e30387e7b85d211ab21e57a939bb8cfaaf8d96 \
|
||||
--hash=sha256:6d2a9efe686f9de00d0d1ea32a4a5a86d558a2277501bd78d964214eab625e59 \
|
||||
--hash=sha256:6da83a088f8ef93b2d483a8232a4dbf4d69d3d8496b568a03c56becac43e1808 \
|
||||
--hash=sha256:7018d4af1cd272e847aa5917983ab5e83e4f6579f9dbfecd4a79c0ca80b144c2 \
|
||||
--hash=sha256:71f88e749ea29f67f21f3b36433c1dc54c7729ed2a6d9e2da2e0d9e0d7b224eb \
|
||||
--hash=sha256:737c9c3981998eba27f11786f84fddcbabc74068b72a4a1f454ea02094b57b65 \
|
||||
--hash=sha256:73e77980c7207854f00fc4e71fb1626868d5740ab4012623d55c7a99ad122a72 \
|
||||
--hash=sha256:799c39bdf5e2f1292fedd3009f7b3c9e760f10b2420cb9638d56920840ff6db8 \
|
||||
--hash=sha256:7a83aa6e4805df46fed18e989d3d16f86ef60cb50bbc8d9ce3a6be89165fbf6e \
|
||||
--hash=sha256:7d3391b2188d18737cb2fa147028b1096236eaa7e156446c650a489fa2cadc91 \
|
||||
--hash=sha256:7e1636da3d8dfc220b6dd10264db5f2b165e4888c4518594898fbe381049af8a \
|
||||
--hash=sha256:805c8b84534fa10891890f0e4be39f3a99e94615d93e8836bf9fa1fdca2feeb2 \
|
||||
--hash=sha256:811d02d5122171c1941357efd8f9bf4ffe907b7f0a1a4e729a880e4be3f46e3e \
|
||||
--hash=sha256:8138eb83940ec7299024d92d4dee45f601b9e6c5ffde9d25f4e35e326203c707 \
|
||||
--hash=sha256:83b3944fea42a8400edf92fd1770fb8d0d4f7de651353bd2d8525a92dba69a21 \
|
||||
--hash=sha256:849dd2bb0e5e4ab2b71c7191726a4a8d5aa8a610daa584728cbee0b710ddc4ef \
|
||||
--hash=sha256:8698d70a8081ee8c090dbb394768b5789a1da8b131b5499f89d071dd3cfaf6be \
|
||||
--hash=sha256:8781a792a070cf2bd1b86d3aa943894115faaba6e88122a7bf32d62072742453 \
|
||||
--hash=sha256:88d59b473bfb03259722600839af9bbd7fa13a2eb514beefeedb95997882f69a \
|
||||
--hash=sha256:8909c2f1c6dd65e054ac4b573a91c8384d1492281e55d82d159d653f7a13adf6 \
|
||||
--hash=sha256:8965520ac587c94a4ac48b729be3d8b8de00af39699b17585dfb599babe77977 \
|
||||
--hash=sha256:8b5d563170ff8ba3181caa967c99a3c804d1dedb702c7cb93a6a7c32247da978 \
|
||||
--hash=sha256:8e124f974786f831d6043728e38296969d3579db8896fe004682f5758e613581 \
|
||||
--hash=sha256:8f0fac8b13d14bb06c68195f849371924ae53dd7b1c00fed24650f704383b692 \
|
||||
--hash=sha256:9240187afb63d2f9ddc3e032c670356fe941f6e20662ea168a5dc3f1f317e1b3 \
|
||||
--hash=sha256:925f929d6b59a8b3f8b8c6ac363cd0af7eecc81efb3071770b3c6717c450a369 \
|
||||
--hash=sha256:9348cbb300d224fe3b89793262cb093504d4ae927004468463f745188a193e4a \
|
||||
--hash=sha256:9388003072b95f2f1e3fd908604194d653ba21330d811961a78b7da1a77e9e36 \
|
||||
--hash=sha256:9438a2648b2195980cb2dd8e53ed7b8df91319e2d0b70ae61a9e1d1bc8d3bec9 \
|
||||
--hash=sha256:94e4c421742086aeee4c32a506eec8859d7634aad943f7e6aacf70f813478768 \
|
||||
--hash=sha256:94f5407f7bc64fa6463906b896f9904beeeb7dd8dc116ee8e9056c8714ff9916 \
|
||||
--hash=sha256:971a3bbb75d97ae4e2e8f7d4834236f86f85f0c85e04ab2e191db1123b04f80b \
|
||||
--hash=sha256:9e227f3dbe6bde7491cf0a9965d00b88c6b1a4a95d11480ddf88bb96d397c19f \
|
||||
--hash=sha256:9e25feb9e330b63edb0278a0acdf85e50d0cb0fbf49c3084abbe4e24ae195346 \
|
||||
--hash=sha256:9f098115c247e11d138ab83a28fa0323c77015007ea2df73ba5fd714dfefd67c \
|
||||
--hash=sha256:a18f38cafc329bac5e3c2b96c765b4c96d3d103421ed22ab7988c1e3fce27464 \
|
||||
--hash=sha256:a4bbd2d87dd233b9fc5812160c3d0ffbe42edc22a26ce0469f58479ede633fe9 \
|
||||
--hash=sha256:a5fcffb37e602b0b3c1638a97746b9b96125caa9bcf6fa41d337a9261de231ee \
|
||||
--hash=sha256:a8e9f292fcda89b324f2f5c91d13f1424a153e40fc2756f38ee23b15835ff300 \
|
||||
--hash=sha256:a9f54054101545a9a9cccefddf54316aa6e4491611fcbef9e91b3b6bebec04f6 \
|
||||
--hash=sha256:aa2c838cc024642cc04c6854232f32b43e5e22833dd11119c1766c7873b8370d \
|
||||
--hash=sha256:ac0c7c9f1609b0c4c114feb1d7a3409564c7fb77e360bed9e97e5d25dfeaf868 \
|
||||
--hash=sha256:add96447a86d205ab616665d53b2950ee81083757f56e6ea833c8b2917646b46 \
|
||||
--hash=sha256:ae9dcb8fbe244cb82f8a6458b455b927a03685e383d9bacf1ea5ce180b96dc97 \
|
||||
--hash=sha256:b4a635a0487774f841cb1fb62e907e7195cc95bc761e053184b8acc3ceb20733 \
|
||||
--hash=sha256:b4d12837e0203bbace818ff4a7461afdcd78bcd782351cea148139180d7bcffe \
|
||||
--hash=sha256:b61687d0828e72bf5cda24a2690188f37170bd31c9359ac97e4e66569f120a16 \
|
||||
--hash=sha256:b807e598953730f82e4eae3bd30f6a122cf6b31c398c6b504c0e04c13c170429 \
|
||||
--hash=sha256:b8cd1f918b26fd7b1832ece557cc18f2d8747309ff8b3f0ef9d4250c5ad67a39 \
|
||||
--hash=sha256:b91cc9d336957239ff200f30097e6fea2dc6d6fb3c81e853eaa09eac904fd894 \
|
||||
--hash=sha256:bd3ce56ae2cbae3ba82b683bc425cd7e48d2ed8b10f3e818186b6f5646d9271c \
|
||||
--hash=sha256:be6cb0c799abb0e2ba3e618e6d28ddddf7e485f6c2ce938dfa237daf3905072c \
|
||||
--hash=sha256:befb4158af32106b9a93db8d6d1d1cbbd418c0d5aca0cabb7b1780abf0c89169 \
|
||||
--hash=sha256:bf053da3c97a4bc5ecfbb218cdd2983febd91c617be8367d139882aa11e490aa \
|
||||
--hash=sha256:c02e8f18bdedba082cef725942ac823b9b60656db07f7e265cb31618dfd00d77 \
|
||||
--hash=sha256:c1bc67752d5f21013cfe430df4062441714eab79f65a6a05e01505957e9c35fe \
|
||||
--hash=sha256:c61750fadcd119d0825bcb7d7d675dd264dcc89cc05292aab5be68ebdbb374ad \
|
||||
--hash=sha256:c90d5b3d4e944e065a301d741b3c1d784f6bd1f503aa68b4967e32b2ba313d85 \
|
||||
--hash=sha256:c9a7f43c0b202b334cc9184af09bb8f21d3a209e038efaf106936fb69e6b026e \
|
||||
--hash=sha256:cb96e6e088d6cf71c1ea977510948320234824cf226e32f6f6e044f7a9c82b34 \
|
||||
--hash=sha256:cf63c214fe879a65e69a386f915e36104fc84254ab141240f8854602d8e0be2a \
|
||||
--hash=sha256:d1aca03ede943eb80ab3d63bb082c84b7aab85ea83bd0fd0c200260945fb49d9 \
|
||||
--hash=sha256:d2e56fd3b00222722abfb3f5f0759ddbae4b90811b5ad4343c64030ad1bde70c \
|
||||
--hash=sha256:d5f93ebbeb8032d47e349328ec8662d973d9b05a70b3c35df1f91fe419b84749 \
|
||||
--hash=sha256:d882a373d8093c2941e01291b7ced96e9cbe4781da9a7751ca7e6c70385e5214 \
|
||||
--hash=sha256:d920abdfa61279ba1a2ef9484aab07bf03331f8c08a10120fa332353d06e6932 \
|
||||
--hash=sha256:da2af0d7aebfc2074080d72efa6ab8317c62481ef1f896f65d9999c1c01f4494 \
|
||||
--hash=sha256:dd8ea6ebee7aedbf7c749fa80521d9ccf1ba473e0d1e14805caafbaad281c889 \
|
||||
--hash=sha256:de8b364c423ef0a4bad9069657d617f9a5d2b2062457a89b1fa16ee199c399c1 \
|
||||
--hash=sha256:df1ae86ff54725a01fa1a0510b914ca53a161b7050be74f6204e24aded5971d0 \
|
||||
--hash=sha256:dff05cb7016dff1e9fd68f4122c127b65dfc59de5306cfb7ad92f956f230bee2 \
|
||||
--hash=sha256:e1a622f13970d81f95d0c72f9dc090dce9085fccfa4c9f2174377ee32bd15786 \
|
||||
--hash=sha256:e49fb0d1ce92cfa0cb198cc5b1b11cdf9d0638658e2a2db2687e39db7c87fc78 \
|
||||
--hash=sha256:e5c802729725bd07e2bc3ab7b76dc7e0bbfc53129d8f1eb1c002c24cf774717e \
|
||||
--hash=sha256:e841068dc0be4cb6dfb5c890eb88cbdcff2f4a332393c7ec94e8e618bd32c1a8 \
|
||||
--hash=sha256:e916035e3e9930cbdfdd10abf48861340221857f45509565898e012263f7b289 \
|
||||
--hash=sha256:eba154571c16e032112afac0dc2dfe9e63c2ceb7aedd07bb7eecf2ce26d4dd4c \
|
||||
--hash=sha256:f03460ff076f70ab595bb45a0205ccea1971443575b6920c52e755dec2b3fbfe \
|
||||
--hash=sha256:f0ec3b750b59375eab5b0fb2b9254810c00a3375be6d789899f1055a1d556237 \
|
||||
--hash=sha256:f291bcf42ae98eb5107edb162c3c998b4a89648fd8e99ed4cbd12705292788cd \
|
||||
--hash=sha256:f61efe1d2fe0de16158a5fe1d1cf3c14bdb6aecd54d8938fd26512c525c1f624 \
|
||||
--hash=sha256:f68edfc67aabac33708941f26f22a7b8e9f81429bc0cf249fcf7d66b23af8d19 \
|
||||
--hash=sha256:fa95848c929b6a75f6848d3c9793e59db365ee436776e57db835cdbfa79ba977 \
|
||||
--hash=sha256:fd9f8797427910198f95bced71ddfed61130d7e349213bfb8466c9c99e2c46a8 \
|
||||
--hash=sha256:fdb4ca07ab75ffadab4a8b135ad59cdbb3156b99310f3d565370da74a15d6bd3
|
||||
# via jinja2
|
||||
python-debian==1.1.1 \
|
||||
--hash=sha256:f98ae013e8e5310e49041cc3860a7105df73af73d4ff1d8afb474770d328a6ad \
|
||||
--hash=sha256:fe4fc3dc798dbf1f0ef5865e2b1b4f7cc0352b6a511b25ab7594906c64a73629
|
||||
# via reuse
|
||||
python-magic==0.4.27 \
|
||||
--hash=sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b \
|
||||
--hash=sha256:c212960ad306f700aa0d01e5d7a325d20548ff97eb9920dcd29513174f0294d3
|
||||
# via reuse
|
||||
reuse==6.3.0 \
|
||||
--hash=sha256:5a6ca437057c07ca22a67256520e2783ab03b5524d3a4535603c3d49e3d4b001 \
|
||||
--hash=sha256:be6b598aa6d5cdf44af0da265572a72f0adcd30033857af874fd8607188259c1
|
||||
# via -r .github/requirements-ci.in
|
||||
tomlkit==0.15.3 \
|
||||
--hash=sha256:a83ce6de3b648e68dd9b50aabadad749ba823eb58b1d026f3c0a283c4767a9c1 \
|
||||
--hash=sha256:b3c3020ec1a4bd469d12e31fb4da938e7f6ba758cdbec3fd9047db63120eaf81
|
||||
# via reuse
|
||||
zizmor==1.32.0 \
|
||||
--hash=sha256:0a999c98015becd9f69919ce01febadfb1c2be9b8ec2ce9ef7eb13ff23ba8eba \
|
||||
--hash=sha256:0cdd38fca6eb34ceb567548548d706332e3535ea66894b9168c048e03207b68c \
|
||||
--hash=sha256:3f404b26791ed06a5ea9eaa0bfd5b973fc5228bac7db8b3c5ec7f0c7ad2ed16d \
|
||||
--hash=sha256:84a6acb975accc13408786a2bd274b572537ca19c933ebbc13e78f3988562071 \
|
||||
--hash=sha256:913fd3943bc1358aa6e23b33fe01cc98bf67af23985258b8fbf24eaa2f8728ea \
|
||||
--hash=sha256:9cd1dd7734042f40ca0faa2a31fb4e9033dede620d996af2f903744b8f04fca9 \
|
||||
--hash=sha256:aa4b4e216321dd5cf202cd79fc83296468f0eed79d850cd65ac8187a6bbc5496 \
|
||||
--hash=sha256:bddcdb0e37d1aa53c9f831c55627a5829d0d552cb0afb4b80fbe16a3a3140366 \
|
||||
--hash=sha256:d34dcfa702875202b4163d90ebb9cc5222f3d1a7d4b72bf796d87b5a15b24194 \
|
||||
--hash=sha256:dd818f99d833b86cd432d5412d620d936b5df074b33404fff8b67acff55d3259 \
|
||||
--hash=sha256:eaedf57859f026a0a7da2a6b574517b1fe01e256c6875b3319a06ee1cee026a7 \
|
||||
--hash=sha256:f0b664d394576e08605fe8094e8e992056d74b808f30c0c9ca9ed227001dcf67
|
||||
# via -r .github/requirements-ci.in
|
||||
@@ -1,51 +0,0 @@
|
||||
name: Announce Release to Discord
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: "Existing release tag to re-announce"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
link-discussion:
|
||||
runs-on: ubuntu-latest
|
||||
# `contents: write` edits the release; `discussions: write` lets GitHub
|
||||
# auto-create the linked Discussion under the configured category.
|
||||
permissions:
|
||||
contents: write
|
||||
discussions: write
|
||||
steps:
|
||||
- name: Link release to Announcements discussion
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# Via env, never interpolated into the script: a tag name is
|
||||
# user-controlled text.
|
||||
TAG: ${{ github.event.release.tag_name || inputs.tag }}
|
||||
REPO: ${{ github.repository }}
|
||||
# Setting --discussion-category on a published release causes
|
||||
# GitHub to auto-create the linked Discussion. Requires the
|
||||
# repo to have Discussions enabled with an "Announcements"
|
||||
# category (configured manually under repo Settings).
|
||||
run: |
|
||||
gh release edit "$TAG" --repo "$REPO" --discussion-category "Announcements"
|
||||
|
||||
announce:
|
||||
needs: link-discussion
|
||||
permissions:
|
||||
contents: read
|
||||
uses: poli0981/.github/.github/workflows/announce-release.yml@main
|
||||
with:
|
||||
tag_override: ${{ inputs.tag || '' }}
|
||||
# Only what the shared workflow declares — not `inherit`, which would hand
|
||||
# every repository secret (Android signing keys included) to it.
|
||||
secrets:
|
||||
DISCORD_RELEASES_WEBHOOK: ${{ secrets.DISCORD_RELEASES_WEBHOOK }}
|
||||
DISCORD_REPO_WEBHOOK: ${{ secrets.DISCORD_REPO_WEBHOOK }}
|
||||
DISCORD_PING_ROLE_ID: ${{ secrets.DISCORD_PING_ROLE_ID }}
|
||||
@@ -1,57 +0,0 @@
|
||||
name: Compliance
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
types: [opened, edited, synchronize, reopened]
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: compliance-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
# REUSE (https://reuse.software): every file in the repo has a declared
|
||||
# copyright holder and SPDX license — via REUSE.toml, not per-file headers.
|
||||
# Fails when a file arrives that the annotations do not cover (e.g. a font
|
||||
# or icon under another license) until REUSE.toml says what it is.
|
||||
reuse:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
|
||||
|
||||
# PR titles follow the commit convention (`type(scope): message`) — merge
|
||||
# commits carry them into main's history and the changelog.
|
||||
pr-title:
|
||||
if: github.event_name == 'pull_request'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pull-requests: read
|
||||
steps:
|
||||
- uses: amannn/action-semantic-pull-request@2252a14e810aa9b85c2d560bd7070c802206ecf6 # v6.1.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
types: |
|
||||
feat
|
||||
fix
|
||||
refactor
|
||||
perf
|
||||
docs
|
||||
test
|
||||
ci
|
||||
build
|
||||
chore
|
||||
revert
|
||||
requireScope: false
|
||||
subjectPattern: ^(?![A-Z]).+$
|
||||
subjectPatternError: |
|
||||
The subject "{subject}" should start with a lower-case letter, like
|
||||
the rest of the history (e.g. "feat(editor): add next-part button").
|
||||
@@ -1,107 +0,0 @@
|
||||
name: Maintenance triage
|
||||
|
||||
# YTDescGen is in maintenance mode (CONTRIBUTING.md → Maintenance mode). This
|
||||
# workflow closes, with a bilingual comment and the `out-of-scope` label:
|
||||
# • any issue or pull request the maintainer labels `out-of-scope`;
|
||||
# • when opened by an outside contributor: issues titled [Feature…] or
|
||||
# labelled `enhancement`, and pull requests titled `feat:` — except the
|
||||
# scopes maintenance mode still takes: `options` (an agreed option
|
||||
# request), `a11y` and `i18n`. The owner, members, collaborators and bots
|
||||
# are skipped.
|
||||
# pull_request_target runs in the base repository so it can comment on and
|
||||
# close pull requests from forks. It never checks out or runs pull request
|
||||
# code, and the script reads titles from the event payload itself instead of
|
||||
# having untrusted text interpolated into it (.github/zizmor.yml says so too).
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened, labeled]
|
||||
pull_request_target:
|
||||
types: [opened, labeled]
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: maintenance-triage-${{ github.event.issue.number || github.event.pull_request.number }}
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
name: Close out-of-scope requests
|
||||
if: >-
|
||||
(github.event.action == 'labeled' && github.event.label.name == 'out-of-scope') ||
|
||||
(github.event.action == 'opened' &&
|
||||
!contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'),
|
||||
github.event.issue.author_association || github.event.pull_request.author_association))
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Close if out of scope
|
||||
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
||||
with:
|
||||
script: |
|
||||
const OUT_OF_SCOPE = 'out-of-scope';
|
||||
const TRUSTED = ['OWNER', 'MEMBER', 'COLLABORATOR'];
|
||||
// Feature pull requests maintenance mode still takes.
|
||||
const KEPT_SCOPES = ['options', 'a11y', 'i18n'];
|
||||
const { payload } = context;
|
||||
const isPR = Boolean(payload.pull_request);
|
||||
const item = payload.pull_request ?? payload.issue;
|
||||
if (!item || item.state !== 'open') return;
|
||||
|
||||
const labels = (item.labels ?? []).map((label) => label.name);
|
||||
let reason = null;
|
||||
if (payload.action === 'labeled') {
|
||||
if (payload.label?.name === OUT_OF_SCOPE) reason = 'labelled out-of-scope';
|
||||
} else if (payload.action === 'opened') {
|
||||
const trusted = TRUSTED.includes(item.author_association);
|
||||
const bot = item.user?.type === 'Bot';
|
||||
const title = String(item.title ?? '').trim();
|
||||
if (!trusted && !bot) {
|
||||
if (isPR) {
|
||||
// Conventional Commits: feat:, feat(scope):, feat!:
|
||||
const feat = /^feat(?:\(([^)]*)\))?!?:/i.exec(title);
|
||||
const scope = (feat?.[1] ?? '').trim().toLowerCase();
|
||||
if (feat && !KEPT_SCOPES.includes(scope)) reason = 'feat: pull request';
|
||||
} else if (/^\[feature/i.test(title) || labels.includes('enhancement')) {
|
||||
reason = 'feature request';
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!reason) {
|
||||
core.info(`#${item.number}: within scope, nothing to do.`);
|
||||
return;
|
||||
}
|
||||
|
||||
const ideas = 'https://github.com/poli0981/youtube-generator/discussions/categories/ideas';
|
||||
const policy = 'https://github.com/poli0981/youtube-generator/blob/main/CONTRIBUTING.md#maintenance-mode';
|
||||
const en = isPR ? 'pull request' : 'issue';
|
||||
const vi = isPR ? 'Pull request' : 'Issue';
|
||||
const body = [
|
||||
'<!-- maintenance-triage -->',
|
||||
'Thanks for taking the time to write this. YTDescGen is in **maintenance mode**: it still takes dependency and security updates, major runtime upgrades, fixes for bugs, UI/UX, accessibility and translations, options added to or removed from its lists when people really need them, and Cloudflare or website fixes, but no new features.',
|
||||
'',
|
||||
`This ${en} falls outside that scope, so it has been closed. If it is actually a bug, an accessibility or translation fix, or an option request, reply here and the maintainer will take another look. Ideas are welcome in [Discussions → Ideas](${ideas}). The full policy is in [CONTRIBUTING.md → Maintenance mode](${policy}).`,
|
||||
'',
|
||||
'---',
|
||||
'',
|
||||
'Cảm ơn bạn đã dành thời gian. YTDescGen đang ở **giai đoạn bảo trì**: vẫn nhận cập nhật thư viện và bảo mật, nâng cấp runtime lớn, sửa lỗi, UI/UX, trợ năng (accessibility) và bản dịch, thêm hoặc bỏ một tuỳ chọn trong các danh sách của app khi thật sự có người cần, và sửa lỗi Cloudflare hay website, nhưng không thêm tính năng mới.',
|
||||
'',
|
||||
`${vi} này nằm ngoài phạm vi đó nên đã được đóng. Nếu thực ra đây là lỗi, sửa trợ năng hay bản dịch, hoặc yêu cầu tuỳ chọn, hãy trả lời tại đây để maintainer xem lại. Ý tưởng có thể gửi ở [Discussions → Ideas](${ideas}). Chính sách đầy đủ: [CONTRIBUTING.md → Maintenance mode](${policy}).`,
|
||||
].join('\n');
|
||||
|
||||
const { owner, repo } = context.repo;
|
||||
const number = item.number;
|
||||
await github.rest.issues.createComment({ owner, repo, issue_number: number, body });
|
||||
if (!labels.includes(OUT_OF_SCOPE)) {
|
||||
await github.rest.issues.addLabels({ owner, repo, issue_number: number, labels: [OUT_OF_SCOPE] });
|
||||
}
|
||||
if (isPR) {
|
||||
await github.rest.pulls.update({ owner, repo, pull_number: number, state: 'closed' });
|
||||
} else {
|
||||
await github.rest.issues.update({ owner, repo, issue_number: number, state: 'closed', state_reason: 'not_planned' });
|
||||
}
|
||||
core.notice(`Closed ${en} #${number} as out of scope (${reason}).`);
|
||||
@@ -1,22 +0,0 @@
|
||||
name: Notify CI Failures
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
# Match the exact `name:` of each watched workflow (ci.yml, security.yml,
|
||||
# compliance.yml, rust.yml, qodana.yml). Renaming one silently breaks
|
||||
# this filter — keep them in sync.
|
||||
workflows: ["CI", "Security", "Compliance", "Rust", "Qodana"]
|
||||
types: [completed]
|
||||
|
||||
# REQUIRED: declare permissions matching the reusable workflow's needs.
|
||||
# Reusable needs `actions: read` to inspect workflow_run details.
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
uses: poli0981/.github/.github/workflows/notify-ci-failure.yml@main
|
||||
# Only the webhook the shared workflow declares — not `inherit`.
|
||||
secrets:
|
||||
DISCORD_CI_WEBHOOK: ${{ secrets.DISCORD_CI_WEBHOOK }}
|
||||
@@ -1,20 +0,0 @@
|
||||
name: Notify Release Pipeline
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
# Match the exact `name:` of the release-pipeline producers
|
||||
# (release-desktop.yml + announce-release.yml). Renaming either silently
|
||||
# breaks this filter — keep them in sync.
|
||||
workflows: ["Release Desktop", "Announce Release to Discord"]
|
||||
types: [completed]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
uses: poli0981/.github/.github/workflows/notify-release-pipeline.yml@main
|
||||
# Only the webhook the shared workflow declares — not `inherit`.
|
||||
secrets:
|
||||
DISCORD_RELEASE_PIPELINE_WEBHOOK: ${{ secrets.DISCORD_RELEASE_PIPELINE_WEBHOOK }}
|
||||
@@ -1,38 +0,0 @@
|
||||
name: Pages migration notice
|
||||
|
||||
# The app moved to https://ytgenerator.stream. What used to be the GitHub
|
||||
# Pages site (poli0981.github.io/youtube-generator) is replaced by a single
|
||||
# static page that hands visitors the data their browser saved there — as a
|
||||
# backup file the new site restores — and points them to the new address.
|
||||
#
|
||||
# Run by hand once; the page is removed on 2026-11-29 together with this
|
||||
# workflow and the github-pages environment (tracked in an issue).
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: pages
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
|
||||
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
|
||||
with:
|
||||
path: migration-page
|
||||
- id: deployment
|
||||
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
|
||||
@@ -1,137 +0,0 @@
|
||||
name: Qodana
|
||||
|
||||
# JetBrains Qodana static analysis, one linter per Qodana Cloud project:
|
||||
#
|
||||
# typescript - qodana-js (native mode) the repository project yt-ts-js, secret QODANA_TOKEN_TS_JS, qodana.yaml
|
||||
# rust - qodana-rust (Docker, EAP) src-tauri/ project yt-rust, secret QODANA_TOKEN_RUST, src-tauri/qodana.yaml
|
||||
#
|
||||
# Every run analyses the whole project (`pr-mode: false`), so a pull request
|
||||
# and `main` report the same way, and each qodana.yaml holds a quality gate of
|
||||
# zero problems. Results: Qodana Cloud, check annotations on the run, and the
|
||||
# qodana-report-* artifacts (SARIF and logs). Not a required check.
|
||||
#
|
||||
# Both linters need an Ultimate licence; the account runs the Qodana Ultimate
|
||||
# trial. When the licence lapses, both jobs fail at the licence check: renew
|
||||
# it, or delete this file and the two qodana.yaml files.
|
||||
#
|
||||
# PRs from forks and from Dependabot get no repository secrets: the `tokens`
|
||||
# job sees that, and the analysis is skipped there, not failed — main is
|
||||
# analysed once they merge. The token reaches the scan step only: npm
|
||||
# packages are installed in a step that never sees it.
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: qodana-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
tokens:
|
||||
name: Qodana tokens
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
permissions: {}
|
||||
outputs:
|
||||
ts-js: ${{ steps.check.outputs.ts-js }}
|
||||
rust: ${{ steps.check.outputs.rust }}
|
||||
steps:
|
||||
- name: Check which Qodana tokens this run has
|
||||
id: check
|
||||
env:
|
||||
HAS_TS_JS: ${{ secrets.QODANA_TOKEN_TS_JS != '' }}
|
||||
HAS_RUST: ${{ secrets.QODANA_TOKEN_RUST != '' }}
|
||||
run: |
|
||||
echo "ts-js=$HAS_TS_JS" >> "$GITHUB_OUTPUT"
|
||||
echo "rust=$HAS_RUST" >> "$GITHUB_OUTPUT"
|
||||
if [ "$HAS_TS_JS" != true ] || [ "$HAS_RUST" != true ]; then
|
||||
echo "::notice::No Qodana token in this run (a Dependabot or fork pull request): that analysis is skipped."
|
||||
fi
|
||||
|
||||
typescript:
|
||||
name: TypeScript / JavaScript
|
||||
needs: tokens
|
||||
if: needs.tokens.outputs.ts-js == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 40
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write # the action's annotations
|
||||
steps:
|
||||
# The pull request's own head commit, not the merge GitHub makes, so
|
||||
# the report names a commit that exists; full history for its VCS data.
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: npm
|
||||
# The linter resolves imports and types from node_modules. No lifecycle
|
||||
# scripts, as in every workflow (ci.yml says why).
|
||||
- run: npm ci --ignore-scripts
|
||||
# Native mode: the linter runs on this runner's Node 26 and node_modules
|
||||
# instead of the older Node the Qodana image ships.
|
||||
- name: Qodana scan
|
||||
uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
|
||||
with:
|
||||
args: --linter qodana-js --within-docker false
|
||||
pr-mode: false
|
||||
post-pr-comment: false
|
||||
upload-result: true
|
||||
artifact-name: qodana-report-typescript
|
||||
primary-cache-key: qodana-2026.2-js-${{ github.ref }}-${{ github.sha }}
|
||||
# A prefix, so pull requests can restore the cache saved on main.
|
||||
additional-cache-key: qodana-2026.2-js-
|
||||
cache-default-branch-only: true
|
||||
env:
|
||||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_TS_JS }}
|
||||
|
||||
rust:
|
||||
name: Rust (Early Access)
|
||||
needs: tokens
|
||||
if: needs.tokens.outputs.rust == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write # the action's annotations
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
# tauri::generate_context!() refuses to expand without the frontend
|
||||
# directory (frontendDist, ../dist): an empty page stands in for the web
|
||||
# build, which the analysis does not need. The icons are committed.
|
||||
- name: Stand-in for the web build
|
||||
run: |
|
||||
mkdir -p dist
|
||||
echo '<!doctype html><title>stand-in</title>' > dist/index.html
|
||||
# qodana-rust ships only as a Docker image. It runs as root so that the
|
||||
# bootstrap in src-tauri/qodana.yaml can install the C toolchain and the
|
||||
# libraries Tauri links against — without them `cargo check` fails and
|
||||
# the linter loads no Cargo package. The crates go to the cached Qodana
|
||||
# directory. --repository-root keeps ../dist and the git data visible.
|
||||
- name: Qodana scan
|
||||
uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
|
||||
with:
|
||||
args: --project-dir src-tauri --repository-root . --linter qodana-rust -u root -e CARGO_HOME=/data/cache/cargo
|
||||
pr-mode: false
|
||||
post-pr-comment: false
|
||||
upload-result: true
|
||||
artifact-name: qodana-report-rust
|
||||
primary-cache-key: qodana-2026.2-rust-${{ github.ref }}-${{ github.sha }}
|
||||
# A prefix, so pull requests can restore the cache saved on main.
|
||||
additional-cache-key: qodana-2026.2-rust-
|
||||
cache-default-branch-only: true
|
||||
env:
|
||||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_RUST }}
|
||||
@@ -1,138 +0,0 @@
|
||||
name: Release Android
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: ["v*"]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: "Tag to build (e.g. v1.0.0). The manifests must already carry this version."
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
# Same gate as release-desktop.yml: never sign an APK for a tag whose code
|
||||
# fails the checks or whose version fields disagree with the tag.
|
||||
verify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
ref: ${{ github.event.inputs.tag || github.ref }}
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
# Release artifacts are built from a clean install: a cache written
|
||||
# by any other workflow must not be able to feed into them.
|
||||
package-manager-cache: false
|
||||
- run: npm ci --ignore-scripts
|
||||
- run: npm run typecheck
|
||||
- run: npm run test:run
|
||||
- run: npm run check:version
|
||||
- run: npm run check:tauri
|
||||
- name: Tag matches the manifests
|
||||
env:
|
||||
TAG: ${{ github.event.inputs.tag || github.ref_name }}
|
||||
run: |
|
||||
version="v$(node -p "require('./package.json').version")"
|
||||
if [ "$version" != "$TAG" ]; then
|
||||
echo "::error::Tag $TAG does not match package.json ($version)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
build-android:
|
||||
needs: verify
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # upload the APK to the draft release
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
ref: ${{ github.event.inputs.tag || github.ref }}
|
||||
persist-credentials: false
|
||||
|
||||
# No dependency caches in a release job (see release-desktop.yml).
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
# Release artifacts are built from a clean install: a cache written
|
||||
# by any other workflow must not be able to feed into them.
|
||||
package-manager-cache: false
|
||||
|
||||
- uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "17"
|
||||
|
||||
- uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
|
||||
|
||||
- name: Install Android NDK (r27 LTS)
|
||||
run: sdkmanager "ndk;27.3.13750724"
|
||||
|
||||
# A master commit, not the regenerated `stable` branch — see rust.yml.
|
||||
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
|
||||
with:
|
||||
toolchain: stable
|
||||
targets: aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android
|
||||
|
||||
- run: npm ci --ignore-scripts
|
||||
- name: Install Tauri CLI
|
||||
run: cargo install tauri-cli --version "^2" --locked
|
||||
|
||||
- name: Decode keystore
|
||||
env:
|
||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
run: echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > "$RUNNER_TEMP/release.jks"
|
||||
|
||||
- name: Write keystore.properties
|
||||
env:
|
||||
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
|
||||
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||
ANDROID_STORE_PASSWORD: ${{ secrets.ANDROID_STORE_PASSWORD }}
|
||||
run: |
|
||||
{
|
||||
echo "storeFile=$RUNNER_TEMP/release.jks"
|
||||
echo "storePassword=$ANDROID_STORE_PASSWORD"
|
||||
echo "keyAlias=$ANDROID_KEY_ALIAS"
|
||||
echo "keyPassword=$ANDROID_KEY_PASSWORD"
|
||||
} > src-tauri/gen/android/keystore.properties
|
||||
|
||||
- name: Build signed APK
|
||||
env:
|
||||
# Pin NDK_HOME to the exact version we installed above — the runner may
|
||||
# ship a different default NDK that ANDROID_NDK_ROOT would point at.
|
||||
NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/27.3.13750724
|
||||
run: cargo tauri android build --apk
|
||||
|
||||
# Keep the APK regardless of whether the release upload works, so a
|
||||
# broken upload never costs a 20-minute rebuild.
|
||||
- name: Upload APK as workflow artifact
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: ytdescgen-android-apk
|
||||
path: src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
|
||||
if-no-files-found: error
|
||||
|
||||
# Uses `gh` (pre-installed on every runner) rather than a third-party
|
||||
# action. `softprops/action-gh-release@v3` resolved the target release
|
||||
# from GITHUB_REF instead of the `tag_name` it was given, so on a tag push
|
||||
# it looked for a release tagged `refs/tags/v0.35.0` and on a
|
||||
# workflow_dispatch it looked for one tagged `refs/heads/main` — neither
|
||||
# exists, so it tried to CREATE a release on a branch ref and got
|
||||
# "Resource not accessible by integration". The v0.35.0 APK was built
|
||||
# three times before this was pinned down.
|
||||
#
|
||||
# `gh release upload` takes the tag as a positional argument and cannot
|
||||
# make that mistake. `--clobber` makes a re-run idempotent.
|
||||
- name: Upload APK to draft release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TAG: ${{ github.event.inputs.tag || github.ref_name }}
|
||||
REPO: ${{ github.repository }}
|
||||
APK: src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
|
||||
run: |
|
||||
gh release upload "$TAG" "$APK" --clobber --repo "$REPO"
|
||||
@@ -1,138 +0,0 @@
|
||||
name: Release Desktop
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: ["v*"]
|
||||
# Manual re-run hook — lets us rebuild a release without deleting +
|
||||
# recreating the tag. Useful when a transient runner failure (e.g.
|
||||
# the macOS DMG bundler hitting an AppleScript flake) costs us one
|
||||
# arch's binary on an otherwise-shipped tag.
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: "Tag to build (e.g. v1.0.0). The job still expects the manifests to already carry this version."
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
# Nothing gets built for a tag whose code does not pass the gate or whose
|
||||
# six version fields disagree with the tag itself.
|
||||
verify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
ref: ${{ github.event.inputs.tag || github.ref }}
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
# Release artifacts are built from a clean install: a cache written
|
||||
# by any other workflow must not be able to feed into them.
|
||||
package-manager-cache: false
|
||||
- run: npm ci --ignore-scripts
|
||||
- run: npm run typecheck
|
||||
- run: npm run test:run
|
||||
- run: npm run check:version
|
||||
- run: npm run check:tauri
|
||||
- name: Tag matches the manifests
|
||||
env:
|
||||
TAG: ${{ github.event.inputs.tag || github.ref_name }}
|
||||
run: |
|
||||
version="v$(node -p "require('./package.json').version")"
|
||||
if [ "$version" != "$TAG" ]; then
|
||||
echo "::error::Tag $TAG does not match package.json ($version)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
build:
|
||||
needs: verify
|
||||
permissions:
|
||||
contents: write # create the draft release and upload the binaries
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
# windows-latest serves the windows-2025-vs2026 image (VS 2026
|
||||
# toolchain) from June 15, 2026. Tauri build (MSI + NSIS)
|
||||
# verified on that exact image 2026-06-12, actions run
|
||||
# 27388695090 — no runner pin needed.
|
||||
- os: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
# Default Windows bundles: MSI + NSIS (.exe). Both ship.
|
||||
bundleArgs: ""
|
||||
# Apple silicon. GitHub retired the macOS 14 image on 2026-11-02
|
||||
# (`macos-14` jobs are cancelled: "The configuration
|
||||
# 'macos-14-arm64-us-default' is not supported"); macos-15 is
|
||||
# its direct successor.
|
||||
- os: macos-15
|
||||
target: aarch64-apple-darwin
|
||||
# macOS DMG bundling on hosted runners flakes inside
|
||||
# `bundle_dmg.sh` (the AppleScript that sets icon
|
||||
# positions in the DMG window times out on the headless
|
||||
# runner). Build only the `.app` bundle; tauri-action
|
||||
# tar.gzips it into a `.app.tar.gz` for upload. Users
|
||||
# expand and drag-drop into /Applications.
|
||||
#
|
||||
# Intel macOS (x86_64) is NOT built — the `macos-13`
|
||||
# free runner queue is functionally unavailable since
|
||||
# GitHub started deprecating it. Revisit with a
|
||||
# `universal-apple-darwin` build on this same runner if
|
||||
# Intel support becomes a priority.
|
||||
bundleArgs: "--bundles app"
|
||||
- os: ubuntu-latest
|
||||
target: x86_64-unknown-linux-gnu
|
||||
# Default Linux bundles: AppImage + deb. Both ship.
|
||||
bundleArgs: ""
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
# On `workflow_dispatch` checkout the requested tag; on a
|
||||
# tag push we already get the tag commit by default.
|
||||
ref: ${{ github.event.inputs.tag || github.ref }}
|
||||
persist-credentials: false
|
||||
# No dependency caches in a release job: a poisoned cache entry written
|
||||
# by any other workflow would otherwise flow straight into the binaries.
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
# Release artifacts are built from a clean install: a cache written
|
||||
# by any other workflow must not be able to feed into them.
|
||||
package-manager-cache: false
|
||||
# A master commit, not the regenerated `stable` branch — see rust.yml.
|
||||
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
|
||||
with:
|
||||
toolchain: stable
|
||||
targets: ${{ matrix.target }}
|
||||
- name: Install Linux dependencies
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
libwebkit2gtk-4.1-dev \
|
||||
libgtk-3-dev \
|
||||
libayatana-appindicator3-dev \
|
||||
librsvg2-dev \
|
||||
patchelf
|
||||
- run: npm ci --ignore-scripts
|
||||
- uses: tauri-apps/tauri-action@1deb371b0cd8bd54025b384f1cd735e725c4060f # v1.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# AppImage bundling on hosted runners flakes: linuxdeploy (itself
|
||||
# an AppImage) needs FUSE to mount, which GitHub runners don't
|
||||
# reliably provide → "failed to run linuxdeploy". Extract-and-run
|
||||
# avoids FUSE; NO_STRIP skips a strip pass that also intermittently
|
||||
# fails. (No-op on Windows / macOS.) Transient CDN 504s while
|
||||
# *fetching* linuxdeploy are handled by re-running the job.
|
||||
APPIMAGE_EXTRACT_AND_RUN: 1
|
||||
NO_STRIP: true
|
||||
with:
|
||||
tagName: ${{ github.event.inputs.tag || 'v__VERSION__' }}
|
||||
releaseName: "YTDescGen ${{ github.event.inputs.tag || 'v__VERSION__' }}"
|
||||
releaseBody: "See the assets to download the installer for your platform."
|
||||
releaseDraft: true
|
||||
args: ${{ matrix.bundleArgs }} --target ${{ matrix.target }}
|
||||
@@ -1,87 +0,0 @@
|
||||
name: Security
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main]
|
||||
schedule:
|
||||
# Mondays 04:17 UTC — new advisories and Scorecard drift surface weekly
|
||||
# even when nothing is being merged.
|
||||
- cron: "17 4 * * 1"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: security-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
# Blocks a PR that ADDS a dependency with a known high/critical advisory.
|
||||
# Licenses are checked by `npm run check:licenses` (ci.yml) instead: the
|
||||
# dependency graph's license data is patchy for npm and would flag noise.
|
||||
dependency-review:
|
||||
if: github.event_name == 'pull_request'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
|
||||
with:
|
||||
fail-on-severity: high
|
||||
license-check: false
|
||||
|
||||
# Lint the workflows themselves: syntax/expressions (actionlint) and
|
||||
# security smells — template injection, over-broad permissions, credential
|
||||
# persistence, unpinned actions (zizmor, config in .github/zizmor.yml).
|
||||
workflow-lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: actionlint
|
||||
uses: docker://rhysd/actionlint:1.7.12
|
||||
with:
|
||||
args: -color
|
||||
- name: zizmor
|
||||
uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
|
||||
with:
|
||||
# Report in the log and fail the job; no SARIF upload, so findings
|
||||
# are fixed in the PR instead of piling up as code-scanning alerts.
|
||||
advanced-security: false
|
||||
min-severity: medium
|
||||
|
||||
# OpenSSF Scorecard: supply-chain posture (pinned deps, token permissions,
|
||||
# branch protection …). Informational — results go to the job summary and
|
||||
# scorecard.dev, not to code scanning.
|
||||
scorecard:
|
||||
if: github.event_name != 'pull_request'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write # publish_results: signs the result for scorecard.dev
|
||||
actions: read
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
|
||||
with:
|
||||
results_file: scorecard.json
|
||||
results_format: json
|
||||
publish_results: true
|
||||
- name: Summarise
|
||||
run: |
|
||||
{
|
||||
echo "### OpenSSF Scorecard"
|
||||
echo
|
||||
echo "| Check | Score |"
|
||||
echo "| --- | --- |"
|
||||
jq -r '.checks[] | "| \(.name) | \(.score) |"' scorecard.json
|
||||
echo
|
||||
echo "Aggregate: **$(jq -r '.score' scorecard.json) / 10**"
|
||||
} >> "$GITHUB_STEP_SUMMARY"
|
||||
+5
-12
@@ -1,13 +1,12 @@
|
||||
# zizmor (workflow security linter) configuration — see security.yml.
|
||||
# zizmor (workflow security linter) configuration — run by
|
||||
# .gitea/workflows/security.yml (job `workflow-lint`, offline).
|
||||
rules:
|
||||
unpinned-uses:
|
||||
config:
|
||||
policies:
|
||||
# The shared notification / announcement workflows live in the
|
||||
# maintainer's own `poli0981/.github` repository and are deliberately
|
||||
# tracked at `main`, so a fix there reaches every repo at once.
|
||||
"poli0981/*": any
|
||||
# Everything else must be pinned to a full commit SHA.
|
||||
# Every action and every call into the ops repo (poli0981/.github) is
|
||||
# pinned to a full commit SHA. Renovate bumps the actions; the ops pins
|
||||
# are bumped by hand when the ops repo is tagged (its runbook §3.2).
|
||||
"*": hash-pin
|
||||
dangerous-triggers:
|
||||
ignore:
|
||||
@@ -18,9 +17,3 @@ rules:
|
||||
# actor) to the notifier script through `env:`, never by interpolation.
|
||||
- notify-ci-failure.yml
|
||||
- notify-release-pipeline.yml
|
||||
# Runs on `pull_request_target` so it can label, comment on and close
|
||||
# an out-of-scope pull request from a fork (maintenance mode). It never
|
||||
# checks out the pull request, runs none of its code, and reads the
|
||||
# title from the event payload inside the script — nothing from the
|
||||
# pull request is interpolated into the workflow.
|
||||
- maintenance-triage.yml
|
||||
@@ -0,0 +1,60 @@
|
||||
<!--
|
||||
Accessibility barrier. The title should start with "[A11y]: ".
|
||||
Thanks for telling us. You don't need to know what causes the problem —
|
||||
describe what you tried and what happened. Prefer not to post in public?
|
||||
E-mail contact@poli0981.dev with "[Accessibility]" at the start of the subject.
|
||||
How reports are handled: https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/ACCESSIBILITY.md#reporting-a-barrier
|
||||
-->
|
||||
|
||||
### What happened?
|
||||
|
||||
<!-- What were you trying to do, and what got in the way?
|
||||
e.g. "With NVDA, the Copy Title button is announced only as 'button'." -->
|
||||
|
||||
### Steps to reproduce
|
||||
|
||||
<!-- The page, then numbered steps — keys you pressed, gestures or voice commands. -->
|
||||
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
|
||||
### What did you expect?
|
||||
|
||||
### Assistive technology or setting
|
||||
|
||||
<!-- Tick everything you were using. -->
|
||||
|
||||
- [ ] Keyboard only
|
||||
- [ ] Narrator (Windows)
|
||||
- [ ] NVDA
|
||||
- [ ] JAWS
|
||||
- [ ] VoiceOver (macOS / iOS)
|
||||
- [ ] TalkBack (Android)
|
||||
- [ ] Orca (Linux)
|
||||
- [ ] Screen magnifier / browser zoom
|
||||
- [ ] Speech input / voice control
|
||||
- [ ] High contrast / forced colours
|
||||
- [ ] Reduce motion
|
||||
- [ ] Switch access
|
||||
- [ ] Other (say which below)
|
||||
|
||||
**Version of that tool** (if you know it, e.g. NVDA 2026.3):
|
||||
|
||||
**How much does it stop you?** (keep one; the levels are explained in ACCESSIBILITY.md)
|
||||
- Critical — I can't finish a core task (write, generate, copy, save, get past the website check)
|
||||
- High — I can finish it, but only with real difficulty or a workaround
|
||||
- Medium — it works, but inconsistently or confusingly
|
||||
- Low — a minor annoyance
|
||||
|
||||
**App version** (About page, e.g. `v1.7.0`):
|
||||
|
||||
**Where are you running YTDescGen?** (web / Windows / Linux / macOS 1.6.0 or older / Android / local dev):
|
||||
|
||||
**Operating system and browser** (e.g. Windows 11 25H2 + Edge 141, Android 15):
|
||||
|
||||
**App language** (en / vi / ja / es / ko / zh / pt-BR / id):
|
||||
|
||||
### Screen recording, screenshot or screen reader output (optional)
|
||||
|
||||
/label ~accessibility ~needs-triage
|
||||
@@ -0,0 +1,50 @@
|
||||
<!--
|
||||
Bug report. The title should start with "[Bug]: ".
|
||||
Please fill in as much as you can — a clear reproduction is the difference
|
||||
between a fix today and a fix in three weeks. Security problems: never here,
|
||||
e-mail security@poli0981.dev (see SECURITY.md).
|
||||
-->
|
||||
|
||||
**App version** (About page, e.g. `v1.7.0`):
|
||||
|
||||
**Where are you running YTDescGen?** (keep one)
|
||||
- Web (ytgenerator.stream)
|
||||
- Desktop — Windows
|
||||
- Desktop — Linux
|
||||
- Desktop — macOS (1.6.0 or older)
|
||||
- Android (APK)
|
||||
- Local dev (`npm run dev`)
|
||||
|
||||
**Operating system** (e.g. Windows 11 25H2, Ubuntu 24.04, Android 15):
|
||||
|
||||
**Browser** (web only, e.g. Chrome 141, Firefox 144, Safari 26):
|
||||
|
||||
**App language at the time of the bug** (en / vi / ja / es / ko / zh / pt-BR / id):
|
||||
|
||||
### Steps to reproduce
|
||||
|
||||
<!-- Numbered steps, with the exact inputs that triggered the bug. -->
|
||||
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
|
||||
### Expected behavior
|
||||
|
||||
### Actual behavior
|
||||
|
||||
### Console / log output
|
||||
|
||||
<!-- From the app's Logs page (all platforms) or the browser's DevTools console (web). -->
|
||||
|
||||
```
|
||||
```
|
||||
|
||||
### Screenshots / screen recording (optional)
|
||||
|
||||
### Pre-flight checks
|
||||
|
||||
- [ ] I searched existing issues and this is not a duplicate.
|
||||
- [ ] I'm on the latest released version (or noted my older version above).
|
||||
|
||||
/label ~bug ~needs-triage
|
||||
@@ -0,0 +1,39 @@
|
||||
<!--
|
||||
Option request. The title should start with "[Option]: ".
|
||||
YTDescGen is in maintenance mode (CONTRIBUTING.md → Maintenance mode,
|
||||
https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/CONTRIBUTING.md#maintenance-mode):
|
||||
it takes no new features, but an option people really need can still join —
|
||||
or leave — one of the lists the app already has.
|
||||
-->
|
||||
|
||||
**Add or remove?** (keep one)
|
||||
- Add an option
|
||||
- Remove an option
|
||||
|
||||
**Which list** (keep one)
|
||||
- Store (store links)
|
||||
- Social or donate platform
|
||||
- Game genre
|
||||
- Video type
|
||||
- Content warning
|
||||
- Tech note
|
||||
- GPU (rig catalog)
|
||||
- Upscaler / frame generation (Video settings)
|
||||
- Another list (say which below)
|
||||
|
||||
**The option** — its name as it should appear, e.g. "itch.io", "Roguelite", "AMD FSR 4 x4":
|
||||
|
||||
### Who needs it, and why
|
||||
|
||||
<!-- What can't you do today? A link helps — the store page, the vendor's announcement, a video of yours that needed it. -->
|
||||
|
||||
### Suggested wording (optional)
|
||||
|
||||
<!-- For a content warning or tech note: the editor label and the line the description should print, in any of the eight languages you know. -->
|
||||
|
||||
### Pre-flight checks
|
||||
|
||||
- [ ] I searched existing issues and this is not a duplicate.
|
||||
- [ ] This adds or removes an option in a list the app already has — it is not a new feature.
|
||||
|
||||
/label ~option-request ~needs-triage
|
||||
@@ -0,0 +1,34 @@
|
||||
<!--
|
||||
Translation or wording fix. The title should start with "[i18n]: ".
|
||||
YTDescGen ships eight languages. Vietnamese is native-reviewed; Japanese,
|
||||
Spanish, Korean, Chinese, Portuguese (Brazil) and Indonesian are AI-translated
|
||||
(see https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/DISCLAIMER.md),
|
||||
so corrections from native speakers are very welcome.
|
||||
-->
|
||||
|
||||
**Language** (en / vi / ja / es / ko / zh / pt-BR / id):
|
||||
|
||||
**Where** (keep one)
|
||||
- The interface (buttons, labels, messages)
|
||||
- The generated title, description or tags
|
||||
- Both
|
||||
|
||||
### Current text
|
||||
|
||||
<!-- Copy it exactly as shown, and say where you saw it — the page or field, or the section of the description. A screenshot helps. -->
|
||||
|
||||
### Suggested text
|
||||
|
||||
**Why** (keep one)
|
||||
- It doesn't fit the culture, region or usual tone
|
||||
- A spelling or grammar mistake that could mislead
|
||||
- The meaning is wrong (a mistranslation)
|
||||
- Something else (say below)
|
||||
|
||||
### Details (optional)
|
||||
|
||||
### Pre-flight checks
|
||||
|
||||
- [ ] I searched existing issues and this is not a duplicate.
|
||||
|
||||
/label ~i18n ~needs-triage
|
||||
@@ -0,0 +1,88 @@
|
||||
<!--
|
||||
YTDescGen is in maintenance mode (CONTRIBUTING.md → "Maintenance mode"):
|
||||
new features are out of scope, and `feat:` merge requests from outside
|
||||
contributors are closed unless their scope is `options` (an agreed option
|
||||
request), `a11y` or `i18n`. GitLab CI does not run here: the maintainer
|
||||
applies the change on Gitea (the canonical repository), where CI runs, and
|
||||
the mirror then marks this merge request merged.
|
||||
-->
|
||||
|
||||
## Summary
|
||||
|
||||
<!-- 1-3 bullet points describing the change -->
|
||||
|
||||
-
|
||||
-
|
||||
|
||||
## Scope
|
||||
|
||||
<!-- Tick what this merge request is. Anything else is out of scope while YTDescGen is in maintenance mode. -->
|
||||
|
||||
- [ ] Bug fix, broken UI/UX or accessibility fix
|
||||
- [ ] Translation or wording fix
|
||||
- [ ] Add or remove an option in one of the app's lists, agreed in issue #
|
||||
- [ ] Dependency update, security fix, or major language/runtime/framework upgrade
|
||||
- [ ] Cloudflare / Worker change, or a fix for a website incident
|
||||
- [ ] Docs or tests only
|
||||
|
||||
## Type
|
||||
|
||||
- [ ] `feat` — new feature
|
||||
- [ ] `fix` — bug fix
|
||||
- [ ] `refactor` — code change with no behavior change
|
||||
- [ ] `docs` — documentation only
|
||||
- [ ] `test` — tests only
|
||||
- [ ] `ci` — CI / build pipeline
|
||||
- [ ] `chore` — other
|
||||
|
||||
## Checklist
|
||||
|
||||
- [ ] `npm run typecheck` and `npm run typecheck:all` pass
|
||||
- [ ] `npm run lint` and `npm run format:check` pass
|
||||
- [ ] `npm run validate:locales` passes — new strings are in all 8 locales (en, vi, ja, es, ko, zh, pt-BR, id)
|
||||
- [ ] `npm run test:coverage` passes, with tests for the change
|
||||
- [ ] `npm run knip` passes — no unused files, exports or dependencies
|
||||
- [ ] `npm run check:version`, `check:tauri`, `check:licenses` and `check:copyright` pass
|
||||
- [ ] `npm run build && npm run check:bundle` stay within budget
|
||||
- [ ] Touched `worker/` or `wrangler.jsonc`: `npm run cf:check`
|
||||
- [ ] Touched `src-tauri/`: `cargo fmt --check`, `cargo clippy --all-targets --locked -- -D warnings`, `cargo test`
|
||||
- [ ] No secrets, credentials, or PII committed
|
||||
- [ ] No new runtime dependencies without prior discussion in an issue
|
||||
- [ ] Commit messages follow `type(scope): message`
|
||||
|
||||
## UI Changes
|
||||
|
||||
<!--
|
||||
If this merge request touches the UI, attach screenshots or short recordings at:
|
||||
- Desktop (≥1024px)
|
||||
- Tablet (768px)
|
||||
- Mobile (390px)
|
||||
- Dark and light theme
|
||||
- The desktop / Android app, if the change is platform-specific
|
||||
Otherwise delete this section.
|
||||
-->
|
||||
|
||||
## Accessibility
|
||||
|
||||
<!--
|
||||
If this merge request touches the UI, check each item (see ACCESSIBILITY.md#for-contributors).
|
||||
Otherwise delete this section.
|
||||
-->
|
||||
|
||||
- [ ] Works with the keyboard alone: logical focus order, visible focus, Esc closes, no focus trap
|
||||
- [ ] Every control has a name and every field a label (`Field`, `IconButton`); new `aria-label` text is in all 8 locales
|
||||
- [ ] Errors and status changes are announced (alert banner, toast or live region)
|
||||
- [ ] Colour is not the only signal; design tokens only, and the contrast test passes
|
||||
- [ ] New animation respects reduced motion; targets are at least 24 × 24 px
|
||||
- [ ] Checked once with a screen reader (Narrator, VoiceOver, NVDA or Orca)
|
||||
|
||||
## AI-Assisted Contribution
|
||||
|
||||
- [ ] Yes — AI tool used: <!-- e.g. Claude Code (Claude Opus 5.5), Cursor, GitHub Copilot -->
|
||||
- [ ] No
|
||||
|
||||
If yes: did you review every line of generated code/text yourself before submitting? <!-- yes/no -->
|
||||
|
||||
## Related Issues
|
||||
|
||||
<!-- Fixes #123, Closes #456 -->
|
||||
@@ -0,0 +1,10 @@
|
||||
# gitleaks exceptions (security.yml → the ops repo's security.yml, `secrets`
|
||||
# job, full history). One fingerprint per line: <commit>:<path>:<rule>:<line>.
|
||||
# Describe each finding in words, never quote it (a quote is a new finding).
|
||||
# Editing a flagged line later makes a new finding, with its own entry.
|
||||
|
||||
# The Cloudflare Web Analytics beacon token: public by design, the site embeds
|
||||
# it in every page (build-plugins/web-only.ts), and its test checks the snippet
|
||||
# byte for byte. It identifies the site to the analytics, it grants nothing.
|
||||
5ced6b4a86810c098ae6bda289eb46b16066699f:build-plugins/web-only.ts:generic-api-key:16
|
||||
5ced6b4a86810c098ae6bda289eb46b16066699f:tests/build/web-only.test.ts:generic-api-key:42
|
||||
+4
-4
@@ -1,10 +1,10 @@
|
||||
# Accessibility
|
||||
|
||||
**Last updated:** 2026-11-09
|
||||
**Last updated:** 2026-11-25
|
||||
|
||||
YTDescGen should work for everyone who makes videos, including people who use a keyboard instead of a mouse, a screen reader, zoom or magnification, high-contrast modes, voice control or a touch screen. This statement says what works today, how it is checked, what doesn't work yet, and how to tell us about a barrier.
|
||||
|
||||
It covers the website at [ytgenerator.stream](https://ytgenerator.stream), the desktop apps (Windows, macOS, Linux) and the Android app. They share one interface, so what is said here applies to all of them unless a platform is named.
|
||||
It covers the website at [ytgenerator.stream](https://ytgenerator.stream), the desktop apps (Windows and Linux; the macOS app up to 1.6.0, the last version built for it) and the Android app. They share one interface, so what is said here applies to all of them unless a platform is named.
|
||||
|
||||
## Our goal
|
||||
|
||||
@@ -86,7 +86,7 @@ The app has **not** been tested yet with NVDA, JAWS, VoiceOver (macOS), TalkBack
|
||||
|
||||
If something in YTDescGen gets in your way, please tell us. You don't need to know what causes it.
|
||||
|
||||
- **Preferred:** open an [accessibility issue](https://github.com/poli0981/youtube-generator/issues/new?template=accessibility.yml). The form asks for the platform, the assistive technology you use and what happened.
|
||||
- **Preferred:** open an [accessibility issue](https://gitlab.com/poli0981/youtube-generator/-/issues/new?issuable_template=Accessibility) on the GitLab mirror (the project's issue tracker since November 2026). The template asks for the platform, the assistive technology you use and what happened.
|
||||
- **Not comfortable posting publicly?** Email **contact@poli0981.dev** with `[Accessibility]` at the start of the subject.
|
||||
- **Quick question?** Ask on [Discord](https://discord.gg/kDM9GMu5vm).
|
||||
|
||||
@@ -124,4 +124,4 @@ The pull request template has the same checklist.
|
||||
|
||||
## Feedback on this statement
|
||||
|
||||
Ideas for improving this statement or the way accessibility is handled are welcome in [GitHub Discussions](https://github.com/poli0981/youtube-generator/discussions). Please report barriers through the [reporting process](#reporting-a-barrier) so they can be tracked.
|
||||
Ideas for improving this statement or the way accessibility is handled are welcome as an [issue on the GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues) or by email to **contact@poli0981.dev**. Please report barriers through the [reporting process](#reporting-a-barrier) so they can be tracked.
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
**YTDescGen** generates YouTube titles, descriptions and tags for Gameplay No Commentary channels, in eight languages, with profiles (channel), presets (game) and templates (whole form) to skip repeated data entry.
|
||||
|
||||
- **Web app**: <https://ytgenerator.stream> — a Cloudflare Worker (Turnstile gate + static build), deployed by Cloudflare Workers Builds on every push to `main`. See [docs/HOSTING.md](docs/HOSTING.md).
|
||||
- **Desktop** (Windows / macOS / Linux) and **Android** apps: Tauri 2, released from signed tags.
|
||||
- **Repository**: `github.com/poli0981/youtube-generator` · **License**: Apache-2.0 (`LICENSE`, `NOTICE`, REUSE-compliant).
|
||||
- **Web app**: <https://ytgenerator.stream> — a Cloudflare Worker (Turnstile gate + static build), deployed by the `deploy` job of `.gitea/workflows/ci.yml` (`wrangler deploy`) after every green push to `main`. See [docs/HOSTING.md](docs/HOSTING.md).
|
||||
- **Desktop** (Windows / Linux) and **Android** apps: Tauri 2, released from signed tags to `releases.poli0981.dev/youtube-generator/` (no macOS builds after 1.6.0: no macOS runner).
|
||||
- **Repository**: `git.poli0981.dev/poli0981/youtube-generator` (Gitea, canonical; the GitHub account was suspended in November 2026, the `github` remote is a read-only record — never push to it). Issues and merge requests: the GitLab mirror `gitlab.com/poli0981/youtube-generator`. **License**: Apache-2.0 (`LICENSE`, `NOTICE`, REUSE-compliant).
|
||||
- **Maintainer**: poli0981 (SkullMute). Contacts by purpose: see `src/config/about.ts` and README.
|
||||
|
||||
**Status: maintenance mode** (since v1.6.0). Don't propose new features. Every change must fall under the policy in [`CONTRIBUTING.md` → Maintenance mode](CONTRIBUTING.md#maintenance-mode):
|
||||
@@ -18,7 +18,7 @@
|
||||
- translation fixes (wording that doesn't fit a culture or region, misleading spelling);
|
||||
- Cloudflare / Worker changes the platform forces, website incidents.
|
||||
|
||||
`.github/workflows/maintenance-triage.yml` closes out-of-scope issues and pull requests (label `out-of-scope`); `feat(options)`, `feat(a11y)` and `feat(i18n)` pull requests stay open.
|
||||
Out-of-scope issues and merge requests on the GitLab mirror are closed by hand (label `out-of-scope`); `feat(options)`, `feat(a11y)` and `feat(i18n)` stay open. (GitHub's triage workflow went with the move: Gitea Actions cannot see GitLab.)
|
||||
|
||||
## Tech Stack
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
| Desktop / Android | Tauri 2 (Rust) — see `src-tauri/` |
|
||||
| Web hosting | Cloudflare Workers (`worker/`, `wrangler.jsonc`), Turnstile, Web Analytics |
|
||||
| Tests | Vitest (node environment; Worker tests included) |
|
||||
| Quality | ESLint, Prettier, knip, coverage thresholds, bundle budget, licence allow-list, copyright years, REUSE, actionlint/zizmor, cargo fmt/clippy/deny, SonarCloud (CI-based), Qodana (JS + Rust) |
|
||||
| Quality | ESLint, Prettier, knip, coverage thresholds, bundle budget, licence allow-list, copyright years, REUSE, actionlint/zizmor, cargo fmt/clippy, gitleaks/Opengrep/osv-scanner/cargo-deny (ops), Qodana (JS + Rust) |
|
||||
|
||||
## Project Structure
|
||||
|
||||
@@ -77,7 +77,6 @@ worker/ # Cloudflare Worker: gate, cookies, headers, rate
|
||||
build-plugins/ # legal pages at build time; web-only extras
|
||||
src-tauri/src/ # lib.rs (plugins, tray), storage.rs (name-only file
|
||||
# commands), file_dialog.rs (native Save/Open)
|
||||
migration-page/ # moving notice for the old GitHub Pages address (until 2026-11-29)
|
||||
tests/ # engine, store, utils, worker, build, i18n, config, hooks, scripts
|
||||
scripts/ # locale validation + generator, version sync, Tauri versions,
|
||||
# bundle budget, licences/third-party notices, copyright
|
||||
@@ -88,6 +87,12 @@ docs/ # DEVELOPMENT, HOSTING, ARCHITECTURE, FEATURES, R
|
||||
assets/brand/ # logo sources: every icon and the link-preview card come from them
|
||||
public/ # static web files (_headers, icons, manifest, 404, robots, sitemap)
|
||||
LICENSES/ # license texts for REUSE
|
||||
.gitea/workflows/ # CI (Gitea Actions): ci (+ deploy), compliance, security, rust,
|
||||
# qodana, release, announce/notify callers of the ops repo
|
||||
.github/ # issue forms + PR template (Gitea reads them), actionlint/zizmor
|
||||
# config, requirements-ci (hash-locked Python tools)
|
||||
.gitlab/ # issue + merge request templates for the GitLab mirror
|
||||
renovate.json # Renovate rules on top of local>poli0981/renovate-config
|
||||
```
|
||||
|
||||
## Coding Conventions
|
||||
@@ -99,7 +104,7 @@ LICENSES/ # license texts for REUSE
|
||||
- `src/` is typed against `lib` ES2022 — the browsers' floor (Chrome 111, Safari 16.4, Firefox 114), because Vite never polyfills. Don't reach for newer built-ins in the app without raising that floor; tests, scripts, worker and build plugins get ES2025 (`tsconfig.check.json`). `target` is ES2025 (ES2026 waits for TypeScript 7.1).
|
||||
- Erasable syntax only (`erasableSyntaxOnly`, `verbatimModuleSyntax`): no enums, namespaces or parameter properties; `import type` for types.
|
||||
- React 19: `ref` is an ordinary prop — no `forwardRef`.
|
||||
- Regexes must stay linear (SonarCloud S8786): no unbounded quantifier that can restart inside its own run (`\s+$`, a leading `\s+` in an unanchored pattern, `\s*` next to `\s*`) — trim first, anchor, bound the run, or use a loop.
|
||||
- Regexes must stay linear (a ReDoS rule Sonar enforced as S8786; Opengrep and Qodana look for the same): no unbounded quantifier that can restart inside its own run (`\s+$`, a leading `\s+` in an unanchored pattern, `\s*` next to `\s*`) — trim first, anchor, bound the run, or use a loop.
|
||||
|
||||
### React
|
||||
|
||||
@@ -141,7 +146,7 @@ LICENSES/ # license texts for REUSE
|
||||
3. **Profiles vs presets vs templates**: profile = channel (rarely changes), preset = game (reused across parts), template = the whole form. The field lists live in `src/config/library-fields.ts`.
|
||||
4. **Tags are generated**, then trimmed to YouTube's own length count.
|
||||
5. **Your data stays on your device.** localStorage is the only store; backups are files the user controls (plus automatic backups in the desktop app's data folder).
|
||||
6. **The desktop webview never names a path**: Rust commands take file names under the app data folder or open the native dialog themselves. Blocking work in an `async` command (a dialog, file I/O) goes through `tauri::async_runtime::spawn_blocking` — SonarCloud flags it otherwise (`rust:S7493`).
|
||||
6. **The desktop webview never names a path**: Rust commands take file names under the app data folder or open the native dialog themselves. Blocking work in an `async` command (a dialog, file I/O) goes through `tauri::async_runtime::spawn_blocking`, so the async runtime is never blocked.
|
||||
7. **The web app is gated** by Turnstile, verified server-side in the Worker; the gate fails open if its secret is missing.
|
||||
|
||||
## Development Commands
|
||||
@@ -173,15 +178,16 @@ npm run generate:brand # favicon, PWA icons, link-preview card from assets/
|
||||
|
||||
## Git Workflow
|
||||
|
||||
- `main` only: feature branches (`feat/…`, `fix/…`, `docs/…`, `chore/…`) → PR → `main`. Every merge to `main` deploys the web app.
|
||||
- `main` only: feature branches (`feat/…`, `fix/…`, `docs/…`, `chore/…`) → pull request on Gitea → `main`. Every merge to `main` deploys the web app (CI's `deploy` job).
|
||||
- Commit and PR-title format: `type(scope): message` (`feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`) — CI checks PR titles, and the message must start with a lower-case letter (`feat(editor): warnings for AI…`, not `feat(editor): AI…`).
|
||||
- Commits and release tags are GPG-signed; never bypass signing or hooks.
|
||||
- Required checks: `check`, `dependency-review`, `workflow-lint`, `reuse`, `pr-title`.
|
||||
- Commits and release tags are GPG-signed; never bypass signing or hooks. Merges made in the Gitea UI are unsigned (Gitea has no signing key), so branch protection must not require signatures.
|
||||
- Required checks (Gitea branch protection on `main`): `check`, `workflow-lint`, `reuse`, `pr-title`.
|
||||
- Push and fetch over SSH (`ssh://git@git.poli0981.dev:2222/…`); from Git Bash use Windows' OpenSSH, which has the key: `GIT_SSH_COMMAND=C:/Windows/System32/OpenSSH/ssh.exe git push origin <branch>`. Merge pull requests in the Gitea UI: a command-line merge leaves the PR open.
|
||||
|
||||
## Releases
|
||||
|
||||
- Bump the version in all six places: `package.json`, `package-lock.json` (×2), `src-tauri/tauri.conf.json`, `src-tauri/Cargo.toml`, `src-tauri/Cargo.lock` (`npm run check:version`), and add a `CHANGELOG.md` entry.
|
||||
- Push a signed tag `vX.Y.Z` → the release workflows verify, build the desktop and Android artifacts and create a **draft** release. The maintainer publishes it.
|
||||
- Push a signed tag `vX.Y.Z` → `.gitea/workflows/release.yml` verifies, builds Windows (host mode on the maintainer's PC), Linux (`ubuntu-22.04`) and the universal APK, uploads them with `SHA256SUMS` to R2 (`releases.poli0981.dev/youtube-generator/<version>/`, then the alias `youtube-generator-latest.apk`) and opens a **draft** Gitea release with the links. Check the links, publish the draft in the Gitea UI, then run **Announce Release to Discord** by hand with the tag (a draft the job token created fires no `release: published`). A dispatch of `release.yml` without a tag is a dry run (artifacts only). An uploaded file is never replaced: a broken release ships as a new version.
|
||||
|
||||
## Important Notes for Claude Code
|
||||
|
||||
@@ -195,7 +201,8 @@ npm run generate:brand # favicon, PWA icons, link-preview card from assets/
|
||||
- New upscaler / frame-gen option: the id in `src/config/graphics-settings.ts`, the vendor's list in `src/engine/graphics-vendor.ts`, the editor label (`editor.upscaleQuality.<vendor>` / `editor.frameGenMultiplier.<vendor>`, `ui.json`) and the description label (`description.graphics.upscale|frameGen.<vendor>`, `templates.json`) in all 8 locales and `_schema.json` — `tests/engine/graphics-vendor.test.ts` fails on a gap. A new id only widens the lists (no store bump); a new field does need one.
|
||||
- UI changes follow the accessibility checklist in `ACCESSIBILITY.md` (#for-contributors): keyboard, names via `Field` / `IconButton`, announced errors, tokens only, reduced motion, 24 px targets. Generated text gets `lang` (the output language); pages name themselves with `useDocumentTitle`, which `RouteAnnouncer` reads out. Update ACCESSIBILITY.md (+ `docs/i18n/vi/`) when what it promises changes.
|
||||
- Never commit `note.txt`, `warning.txt` or `__pycache__/`; never put real secrets in files (`.dev.vars` holds Cloudflare's public Turnstile test keys only).
|
||||
- SonarCloud (project `poli0981_youtube-generator`) is CI-based: the `sonarcloud` job in `ci.yml` scans every PR from this repository and every push to `main`, with the coverage from `check`; settings in `sonar-project.properties`; Automatic Analysis is off. Keep it at 0 open issues and the quality gate (Sonar way: A ratings, reviewed hotspots, ≤ 3 % duplication, ≥ 80 % coverage on new code) green — the job fails with the gate. Coverage covers what `coverage.include` in `vitest.config.ts` lists (the logic layers); everything else is in `sonar.coverage.exclusions`, because a file missing from the LCOV report counts as 0 % — a new source folder goes into one list or the other. The version passed to the scanner starts each release's new-code period. Fork and Dependabot PRs skip the scan (no `SONAR_TOKEN`). Check a PR with `https://sonarcloud.io/api/issues/search?componentKeys=poli0981_youtube-generator&pullRequest=<n>&resolved=false` and its gate with `https://sonarcloud.io/api/qualitygates/project_status?projectKey=poli0981_youtube-generator&pullRequest=<n>`. Workflows install with `npm ci --ignore-scripts` and call local binaries (`npm run …`), never `npx` for a package that isn't installed.
|
||||
- Qodana (`.github/workflows/qodana.yml`) runs on every PR and push to `main`: job `typescript` is Qodana for JS in native mode (`qodana.yaml`, Cloud project `yt-ts-js`, secret `QODANA_TOKEN_TS_JS`), job `rust` is Qodana for Rust, Early Access, in Docker on `src-tauri/` (`src-tauri/qodana.yaml`, project `yt-rust`, secret `QODANA_TOKEN_RUST`). Both gate on zero problems: fix a finding, or exclude it in the `qodana.yaml` with a comment saying why. Both skip without their token (Dependabot and fork PRs). It needs an Ultimate licence (currently the trial): when it lapses both jobs fail at the licence check.
|
||||
- TypeScript bumps may be manual: `@typescript/native` (`npm:typescript@^7`) and `typescript` (`npm:@typescript/typescript6@^6`) are npm aliases Dependabot may not follow. Stop the dev server before `npm ci` on Windows — it locks native modules (EPERM).
|
||||
- The Cloudflare dashboard, publishing releases and repository settings are the maintainer's; ask before touching them.
|
||||
- **Forge & CI**: Gitea Actions on `.gitea/workflows/`, run by the maintainer's PC (`windows-latest` = host mode, `ubuntu-*` = Docker), so jobs wait while the PC is off, and scheduled jobs sit inside 13:00–16:00 UTC (slots in the ops repo's registry). The procedure, the shared decisions (D1–D16) and Gitea's quirks are in the ops repo `poli0981/.github` (`docs/GITEA-MIGRATION.md`, `docs/migration/youtube-generator.md`). Calls into the ops repo are pinned to a tag's commit SHA with `ops_ref` set to the same SHA; Renovate does not bump them — do it by hand when the ops repo is tagged. Workflows install with `npm ci --ignore-scripts` and call local binaries (`npm run …`), never `npx` for a package that isn't installed. No GitHub API anywhere (`gh`, `actions/github-script`): Gitea's REST API with the job token, as the ops README's table says. Watch a run without a token: `GET https://git.poli0981.dev/api/v1/repos/poli0981/youtube-generator/commits/<sha>/status`.
|
||||
- Security scanning: `.gitea/workflows/security.yml` runs actionlint + zizmor (offline; tools from the hash-locked `.github/requirements-ci.txt` and pinned binaries) and the ops `security.yml` (gitleaks, Opengrep, osv-scanner, cargo-deny). An advisory no release fixes yet goes into `osv-scanner.toml` (next to the lockfile, with `effectiveUntil`) and, for crates, `src-tauri/deny.toml`, each with its reason.
|
||||
- Qodana (`.gitea/workflows/qodana.yml`, the ops `reusable-qodana.yml`) runs on every PR and push to `main`: job `typescript` is Qodana for JS in native mode (`qodana.yaml`, Cloud project `yt-ts-js`, secret `QODANA_TOKEN_TS_JS`), job `rust` is Qodana for Rust, Early Access, in Docker Desktop on the maintainer's PC on `src-tauri/` (`src-tauri/qodana.yaml` with the dhi.io apt pin, project `yt-rust`, secret `QODANA_TOKEN_RUST`). Both gate on zero problems: fix a finding, or exclude it in the `qodana.yaml` with a comment saying why. Both skip without their token. It needs an Ultimate licence (currently the trial): when it lapses both jobs fail at the licence check.
|
||||
- Dependencies: Renovate (self-hosted, `renovate.json` extends `local>poli0981/renovate-config`): non-majors grouped daily after a 3-day release age, OSV security PRs at once, majors only when ticked on the Dependency Dashboard. An npm bump makes `check:licenses` fail until `npm run generate:third-party` runs on the branch. TypeScript bumps are manual: `@typescript/native` (`npm:typescript@^7`) and `typescript` (`npm:@typescript/typescript6@^6`) are npm aliases. Stop the dev server before `npm ci` on Windows — it locks native modules (EPERM).
|
||||
- The Cloudflare dashboard, publishing releases, Gitea/GitLab repository settings and secrets are the maintainer's; ask before touching them.
|
||||
+37
-27
@@ -1,6 +1,16 @@
|
||||
# Contributing to YTDescGen
|
||||
|
||||
Thanks for taking the time to contribute. Read this once before opening your first PR — it saves time on both sides.
|
||||
Thanks for taking the time to contribute. Read this once before opening your first merge request — it saves time on both sides.
|
||||
|
||||
## Where things live
|
||||
|
||||
Since November 2026 (the GitHub account was suspended):
|
||||
|
||||
- **Source** — [`git.poli0981.dev/poli0981/youtube-generator`](https://git.poli0981.dev/poli0981/youtube-generator), the canonical repository, on the maintainer's Gitea. It is read-only for everyone else: sign-ups are closed.
|
||||
- **Issues and merge requests** — the mirror on GitLab, [`gitlab.com/poli0981/youtube-generator`](https://gitlab.com/poli0981/youtube-generator). Gitea pushes every change there, so it is always current.
|
||||
- **Patches by e-mail** — `git format-patch` / `git send-email` to `code@poli0981.dev`.
|
||||
|
||||
The maintainer applies an accepted change on Gitea; the mirror then updates GitLab, and the merge request shows as merged (or is closed with a link to the commit). GitLab CI does not run on merge requests: CI runs on Gitea, on the maintainer's branch.
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
@@ -10,7 +20,7 @@ Participation is governed by the [Code of Conduct](./CODE_OF_CONDUCT.md). By con
|
||||
|
||||
Since 1.6.0 (November 2026) YTDescGen is in **maintenance mode**. It is feature-complete and stays maintained, but it doesn't grow new features. These changes are still accepted:
|
||||
|
||||
1. **Dependency updates** on a regular schedule (weekly, grouped by Dependabot after a 7-day cooldown).
|
||||
1. **Dependency updates** on a regular schedule (Renovate, daily, grouped, after a 3-day release age; majors wait for the maintainer on the Dependency Dashboard).
|
||||
2. **Security fixes**, as soon as possible: a dependency with a high or critical CVE, or a serious security issue in a runtime such as Node.js.
|
||||
3. **Major upgrades** of a language, runtime or framework, for example Node 24 → 26 or TypeScript 6 → 7.
|
||||
4. **Issues and pull requests** that:
|
||||
@@ -22,9 +32,9 @@ Since 1.6.0 (November 2026) YTDescGen is in **maintenance mode**. It is feature-
|
||||
|
||||
Anything else is out of scope, new features in particular, unless the maintainer judges one genuinely necessary.
|
||||
|
||||
- The [maintenance triage workflow](.github/workflows/maintenance-triage.yml) closes feature issues and `feat:` pull requests from outside contributors automatically — a `feat(options)`, `feat(a11y)` or `feat(i18n)` pull request stays open. It also closes anything the maintainer labels `out-of-scope`.
|
||||
- Feature ideas are welcome in [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas), with no commitment.
|
||||
- If your issue or pull request was closed by mistake, reply to it and the maintainer will take another look.
|
||||
- The maintainer closes feature issues and `feat:` merge requests by hand, with the label `out-of-scope` — a `feat(options)`, `feat(a11y)` or `feat(i18n)` merge request stays open. (The workflow that did this on GitHub cannot see GitLab.)
|
||||
- Feature ideas are welcome as a GitLab issue, with no commitment.
|
||||
- If your issue or merge request was closed by mistake, reply to it and the maintainer will take another look.
|
||||
|
||||
Releases ship only when one of these changes needs one, for example a security fix for the desktop and Android apps. The website keeps deploying from `main`.
|
||||
|
||||
@@ -33,7 +43,7 @@ Releases ship only when one of these changes needs one, for example a security f
|
||||
1. Read the [Development Guide](./docs/DEVELOPMENT.md) — also available in [Vietnamese](./docs/i18n/vi/DEVELOPMENT.md).
|
||||
2. Install dependencies: `npm install`.
|
||||
3. Start the dev server: `npm run dev`.
|
||||
4. Before opening a PR, run the same gates CI runs (the required `check` job):
|
||||
4. Before opening a merge request, run the same gates CI runs (the required `check` job):
|
||||
```bash
|
||||
npm run typecheck && npm run typecheck:all
|
||||
npm run lint && npm run format:check
|
||||
@@ -51,35 +61,35 @@ Releases ship only when one of these changes needs one, for example a security f
|
||||
|
||||
### Issues
|
||||
|
||||
Use the templates in `.github/ISSUE_TEMPLATE/`:
|
||||
Open them on the [GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues/new) and pick a template (`.gitlab/issue_templates/`):
|
||||
|
||||
- **Bug report** — only if you can reproduce on the latest release.
|
||||
- **Option request** — add or remove an option in one of the app's lists; see [Option requests](#option-requests).
|
||||
- **Translation or wording fix** — wording that doesn't fit a culture or region, or a spelling mistake that could mislead, in any of the eight languages.
|
||||
- **Accessibility barrier** — anything that gets in the way with a keyboard, a screen reader, zoom, high contrast, voice control or touch. No reproduction on the latest release needed, and you don't need to know the cause. See [ACCESSIBILITY.md](./ACCESSIBILITY.md#reporting-a-barrier).
|
||||
|
||||
There is no feature request form any more: YTDescGen is in [maintenance mode](#maintenance-mode). Share ideas in [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas).
|
||||
There is no feature request template: YTDescGen is in [maintenance mode](#maintenance-mode). An idea can still go in a plain issue.
|
||||
|
||||
### Option requests
|
||||
|
||||
The one kind of addition maintenance mode still takes: an option in a list the app already has, when people really need it — a store (store links), a social or donate platform, a genre, a video type, a content warning or tech note, a GPU in the rig catalog, an upscaler or frame-generation mode. Removing one that no longer makes sense works the same way.
|
||||
|
||||
Open an **Option request** issue first: the option's name as it should appear, which list, and who needs it and why (a link to the store page, the vendor's announcement or a video that needed it helps). Once it's agreed, a pull request titled `feat(options): …` is welcome. [ARCHITECTURE.md → Extensibility Points](./docs/ARCHITECTURE.md) and CLAUDE.md's "Important Notes" say which files each kind of option touches, and the checks fail until all eight locales have its strings.
|
||||
Open an **Option request** issue first: the option's name as it should appear, which list, and who needs it and why (a link to the store page, the vendor's announcement or a video that needed it helps). Once it's agreed, a merge request titled `feat(options): …` is welcome. [ARCHITECTURE.md → Extensibility Points](./docs/ARCHITECTURE.md) and CLAUDE.md's "Important Notes" say which files each kind of option touches, and the checks fail until all eight locales have its strings.
|
||||
|
||||
### Pull Requests
|
||||
### Merge requests
|
||||
|
||||
- Branch from `main` (`feat/…`, `fix/…`, `docs/…`) and open the PR against `main`. Every merge to `main` deploys the web app, so `main` stays releasable.
|
||||
- Commit format and **PR title**: `type(scope): message` — e.g. `feat(engine): add Spanish template support`. Types: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`. CI checks the PR title.
|
||||
- Required checks: `check`, `dependency-review`, `workflow-lint`, `reuse`, `pr-title`. When `src-tauri/` changes, the Rust workflow's `lint-and-test` and `cargo-deny` run too, and GitHub's CodeQL code scanning runs on every PR. SonarCloud analyses PRs opened from this repository — its quality gate wants A ratings, reviewed security hotspots, at most 3 % duplication and at least 80 % test coverage on new code in the layers Vitest measures (PRs from forks get no secrets and skip it; the maintainer's merge runs it on `main`). JetBrains Qodana does the same for TypeScript and for the Rust shell, and fails on any problem it finds. Commits on `main` are signed.
|
||||
- PR titles start with a lower-case letter after the colon (`feat(editor): add …`, not `feat(editor): Add …`).
|
||||
- In [maintenance mode](#maintenance-mode) a `feat` pull request from an outside contributor is closed automatically, unless its scope is `options`, `a11y` or `i18n`. A fix is a `fix`.
|
||||
- One logical change per PR. Don't bundle unrelated refactors.
|
||||
- Branch from `main` (`feat/…`, `fix/…`, `docs/…`) and open the merge request against `main` on the GitLab mirror. Every merge to `main` deploys the web app, so `main` stays releasable.
|
||||
- Commit format and **title**: `type(scope): message` — e.g. `feat(engine): add Spanish template support`. Types: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`. CI checks the title of the maintainer's pull request on Gitea.
|
||||
- CI runs on Gitea Actions (`.gitea/workflows/`), on the maintainer's PC: `check` (the gates above, then the production deploy on `main`), `reuse` and `pr-title`, `workflow-lint` (actionlint, zizmor) and the shared security scan — gitleaks, Opengrep, osv-scanner and cargo-deny. When `src-tauri/` changes, the Rust workflow's `lint-and-test` runs too. JetBrains Qodana analyses TypeScript and the Rust shell and fails on any problem it finds. Commits on `main` are signed; merges made in the Gitea UI are not.
|
||||
- Titles start with a lower-case letter after the colon (`feat(editor): add …`, not `feat(editor): Add …`).
|
||||
- In [maintenance mode](#maintenance-mode) a `feat` merge request from an outside contributor is closed, unless its scope is `options`, `a11y` or `i18n`. A fix is a `fix`.
|
||||
- One logical change per merge request. Don't bundle unrelated refactors.
|
||||
- All locale files must stay in lock-step — see the i18n section below.
|
||||
- AI-assisted contributions are welcome but **must be disclosed** in the PR description.
|
||||
- AI-assisted contributions are welcome but **must be disclosed** in the merge request description.
|
||||
|
||||
### Accessibility
|
||||
|
||||
UI changes keep YTDescGen usable with the keyboard alone and with screen readers. Run through the checklist in [ACCESSIBILITY.md](./ACCESSIBILITY.md#for-contributors) (the PR template repeats it); the contrast test (`tests/styles/contrast.test.ts`) fails if a colour token drops under WCAG AA.
|
||||
UI changes keep YTDescGen usable with the keyboard alone and with screen readers. Run through the checklist in [ACCESSIBILITY.md](./ACCESSIBILITY.md#for-contributors) (the merge request template repeats it); the contrast test (`tests/styles/contrast.test.ts`) fails if a colour token drops under WCAG AA.
|
||||
|
||||
### i18n Contributions
|
||||
|
||||
@@ -95,14 +105,14 @@ Native-speaker corrections to AI-translated locales (JA / ES / KO / ZH / PT-BR /
|
||||
|
||||
The following are closed without review and may result in a contributor ban — no exceptions:
|
||||
|
||||
- **Suspected malicious code.** If a PR contains code we suspect may be a supply-chain attack, obfuscation, credential harvesting, cryptominer, or any form of malware — even if CodeQL and Dependabot don't flag it, the maintainer may investigate manually. **Detection equals ban.**
|
||||
- **Unverified or suspicious links** in issues, PRs, or comments (pastebin scrapers, redirect chains, unfamiliar shortlinks, link-shortener URLs without context).
|
||||
- **Behavior or language violating** [GitHub's Acceptable Use Policies](https://docs.github.com/en/site-policy/acceptable-use-policies).
|
||||
- **Suspected malicious code.** If a merge request contains code we suspect may be a supply-chain attack, obfuscation, credential harvesting, cryptominer, or any form of malware — even if the security scans don't flag it, the maintainer may investigate manually. **Detection equals ban.**
|
||||
- **Unverified or suspicious links** in issues, merge requests, or comments (pastebin scrapers, redirect chains, unfamiliar shortlinks, link-shortener URLs without context).
|
||||
- **Behavior or language violating** [GitLab's Acceptable Use Policy](https://handbook.gitlab.com/handbook/legal/acceptable-use-policy/) or the [Code of Conduct](./CODE_OF_CONDUCT.md).
|
||||
- **Off-topic / rambling reports** that don't get to the point. Example of what gets ignored: _"Good morning, today is a beautiful day, I was just wondering if maybe…"_ — get straight to the problem.
|
||||
- **PRs that touch hundreds of files for a one-line fix** (typical sign of an auto-formatter run on unrelated files).
|
||||
- **Merge requests that touch hundreds of files for a one-line fix** (typical sign of an auto-formatter run on unrelated files).
|
||||
- **Tests deleted or skipped to make CI pass.**
|
||||
- **"AI rewrote my entire codebase in a different style" PRs.** AI-assisted edits are welcome (disclosed); whole-repo rewrites are not.
|
||||
- **Spam, drive-by typo fixes** that don't address a real issue, and karma-farming PRs.
|
||||
- **"AI rewrote my entire codebase in a different style" merge requests.** AI-assisted edits are welcome (disclosed); whole-repo rewrites are not.
|
||||
- **Spam, drive-by typo fixes** that don't address a real issue, and karma-farming merge requests.
|
||||
|
||||
## What We Want
|
||||
|
||||
@@ -116,15 +126,15 @@ Within [maintenance mode](#maintenance-mode):
|
||||
|
||||
## What We Don't Want
|
||||
|
||||
- New features, unless the maintainer judges one genuinely necessary — share the idea in [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas) instead.
|
||||
- New features, unless the maintainer judges one genuinely necessary — share the idea in an issue instead.
|
||||
- Cosmetic refactors with no behavior change.
|
||||
- Adding new runtime dependencies without first opening an issue to discuss the tradeoff.
|
||||
- Renaming files without coordinating with open PRs.
|
||||
- Renaming files without coordinating with open merge requests.
|
||||
- Changes to the LICENSE or NOTICE files (these are governance, not contributions).
|
||||
|
||||
## Contact
|
||||
|
||||
Questions about contributing or conduct: `code@poli0981.dev`. Security issues go through [SECURITY.md](./SECURITY.md), never a public issue. Accessibility barriers you'd rather not post publicly: `contact@poli0981.dev`, subject starting with `[Accessibility]`.
|
||||
Questions about contributing or conduct: `code@poli0981.dev`. Security issues go by e-mail as [SECURITY.md](./SECURITY.md) says, never as a public issue on the GitLab mirror. Accessibility barriers you'd rather not post publicly: `contact@poli0981.dev`, subject starting with `[Accessibility]`.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ This disclosure applies to:
|
||||
- Source code in `src/` and `src-tauri/`.
|
||||
- Documentation in `docs/` and all root markdown files.
|
||||
- Locale files in `src/i18n/locales/`.
|
||||
- CI/CD workflows in `.github/workflows/`.
|
||||
- CI/CD workflows in `.gitea/workflows/`.
|
||||
- The Cloudflare Worker in `worker/` and the build plugins in `build-plugins/`.
|
||||
|
||||
See also: [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md) § "AI-assisted development".
|
||||
|
||||
+10
-8
@@ -6,7 +6,7 @@ Since 1.6.0 the project is in **maintenance mode**: no new features, only the ch
|
||||
|
||||
### `@poli0981`
|
||||
|
||||
- **GitHub**: <https://github.com/poli0981>
|
||||
- **Gitea** (canonical repositories): <https://git.poli0981.dev/poli0981> · **GitLab** (mirrors, issues): <https://gitlab.com/poli0981>
|
||||
- **YouTube** (reference channel): <https://www.youtube.com/@SkullMute>
|
||||
- **Website**: <https://poli0981.dev/> · all channels at <https://poli0981.dev/links/>
|
||||
- **Email**: `code@poli0981.dev` (project) · `security@poli0981.dev` (vulnerabilities, see [SECURITY.md](./SECURITY.md))
|
||||
@@ -14,18 +14,20 @@ Since 1.6.0 the project is in **maintenance mode**: no new features, only the ch
|
||||
|
||||
## Maintainer Responsibilities
|
||||
|
||||
- Triage incoming issues and PRs, keeping them within the maintenance scope: the [triage workflow](./.github/workflows/maintenance-triage.yml) closes feature requests from outside contributors, and anything labelled `out-of-scope`, with an explanation.
|
||||
- Run the release process: `CHANGELOG.md` entry, version bump, build artifacts, signed tag.
|
||||
- Triage incoming issues and merge requests on the GitLab mirror, keeping them within the maintenance scope: feature requests from outside contributors are closed by hand with the label `out-of-scope` and an explanation.
|
||||
- Apply accepted merge requests and e-mailed patches on Gitea (the mirror then updates GitLab).
|
||||
- Run the release process: `CHANGELOG.md` entry, version bump, signed tag; CI builds the apps, uploads them to `releases.poli0981.dev` and drafts the Gitea release, which the maintainer publishes.
|
||||
- Enforce the [Code of Conduct](./CODE_OF_CONDUCT.md).
|
||||
- Review and approve locale translation contributions.
|
||||
- Coordinate security advisory disclosure per [SECURITY.md](./SECURITY.md).
|
||||
- Coordinate security disclosure per [SECURITY.md](./SECURITY.md).
|
||||
|
||||
## Where to Reach Us
|
||||
|
||||
- Bug reports, translation fixes and option requests: [GitHub Issues](https://github.com/poli0981/youtube-generator/issues)
|
||||
- Feature ideas, with no commitment while in maintenance mode: [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas)
|
||||
- Accessibility barriers: the [Accessibility barrier](https://github.com/poli0981/youtube-generator/issues/new?template=accessibility.yml) form — see [ACCESSIBILITY.md](./ACCESSIBILITY.md)
|
||||
- Vulnerabilities: privately, as [SECURITY.md](./SECURITY.md) describes
|
||||
- Bug reports, translation fixes and option requests: [issues on the GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues) (the Gitea repository takes no sign-ups)
|
||||
- Feature ideas, with no commitment while in maintenance mode: a plain issue there
|
||||
- Accessibility barriers: the [Accessibility barrier](https://gitlab.com/poli0981/youtube-generator/-/issues/new?issuable_template=Accessibility) template — see [ACCESSIBILITY.md](./ACCESSIBILITY.md)
|
||||
- Patches and questions: `code@poli0981.dev`
|
||||
- Vulnerabilities: privately, by e-mail, as [SECURITY.md](./SECURITY.md) describes
|
||||
|
||||
## Becoming a Maintainer
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
YTDescGen — YouTube Gameplay Description Generator
|
||||
Copyright 2026 poli0981 (https://github.com/poli0981)
|
||||
Copyright 2026 poli0981 (https://git.poli0981.dev/poli0981)
|
||||
|
||||
This product includes software developed by poli0981 and contributors.
|
||||
|
||||
|
||||
+3
-5
@@ -1,6 +1,6 @@
|
||||
# Privacy Policy
|
||||
|
||||
**Effective:** 2026-10-12
|
||||
**Effective:** 2026-11-25
|
||||
|
||||
This policy covers YTDescGen — the web app at **https://ytgenerator.stream** and the desktop (Windows, macOS, Linux) and Android apps built from the same source. It is maintained by **poli0981 (SkullMute)**, who is responsible for it. Questions and requests: **privacy@poli0981.dev**.
|
||||
|
||||
@@ -42,10 +42,6 @@ The apps keep the same data in the app's own WebView storage and application-dat
|
||||
|
||||
The desktop app keeps its automatic backups (the newest ten, plus one made before each restore) in the `backups` folder inside the application-data folder, and its event log in `logs`. Uninstalling the app or deleting those folders removes everything. The apps make no network requests of their own; links you choose to open (store pages, donation pages, this policy on the web) open in your browser.
|
||||
|
||||
### The old address
|
||||
|
||||
Until 29 November 2026, `poli0981.github.io/youtube-generator` — where the web app used to live — shows a moving notice hosted by **GitHub Pages**. Browser storage belongs to a site, so data saved there can't move on its own: the notice reads what your browser saved on that address and lets you download it as a file. Nothing is uploaded; GitHub, as the host, receives the usual request data (see the [GitHub Privacy Statement](https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement)).
|
||||
|
||||
## 2. What the web app's hosting provider processes
|
||||
|
||||
The web app is hosted on **Cloudflare Workers**. Cloudflare acts as a service provider (processor) for the site and handles:
|
||||
@@ -54,6 +50,8 @@ The web app is hosted on **Cloudflare Workers**. Cloudflare acts as a service pr
|
||||
- **Turnstile bot check.** Before you enter, [Cloudflare Turnstile](https://www.cloudflare.com/products/turnstile/) runs a check — usually invisible — that evaluates technical browser and device signals and your IP address to tell people from automated traffic. Its data handling is described in Cloudflare's [Turnstile Privacy Addendum](https://www.cloudflare.com/turnstile-privacy-policy/). YTDescGen receives only a pass/fail result.
|
||||
- **Cloudflare Web Analytics.** Aggregate, **cookieless** statistics: page views, referrer, country, browser, operating system and device type, and page-load performance. It sets no cookies, uses no local storage and does not fingerprint visitors. See [Cloudflare's Web Analytics privacy notes](https://www.cloudflare.com/web-analytics/) and the [Cloudflare Privacy Policy](https://www.cloudflare.com/privacypolicy/).
|
||||
|
||||
The desktop installers and the Android APK are downloaded from `releases.poli0981.dev`, which is served by Cloudflare (R2 storage) in the same way: the request data above, used to deliver the file, and nothing else. The apps themselves never contact it.
|
||||
|
||||
Cloudflare operates a global network, so this data may be processed outside your country under Cloudflare's data-processing terms (including the EU Standard Contractual Clauses).
|
||||
|
||||
## 3. Cookies
|
||||
|
||||
@@ -2,20 +2,20 @@
|
||||
|
||||
**YouTube Gameplay Description Generator** — a template engine for Gameplay No Commentary YouTube channels.
|
||||
|
||||
**Use it at [ytgenerator.stream](https://ytgenerator.stream)**, or install the desktop app (Windows / macOS / Linux, 3–6 MB installers) or the Android app from [Releases](https://github.com/poli0981/youtube-generator/releases). One codebase: React + Tauri 2.
|
||||
**Use it at [ytgenerator.stream](https://ytgenerator.stream)**, or install the desktop app (Windows / Linux, 3–6 MB installers) or the Android app — see [Download](#download). One codebase: React + Tauri 2.
|
||||
|
||||
Generate YouTube titles, descriptions and tags in eight languages. Save your channel as a profile and each game as a preset, and every new video is a few clicks.
|
||||
|
||||
[](#project-status)
|
||||
[](https://github.com/poli0981/youtube-generator/actions/workflows/ci.yml)
|
||||
[](https://github.com/poli0981/youtube-generator/actions/workflows/qodana.yml)
|
||||
[](https://sonarcloud.io/summary/new_code?id=poli0981_youtube-generator)
|
||||
[](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=ci.yml)
|
||||
[](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=qodana.yml)
|
||||
[](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=security.yml)
|
||||
[](./LICENSE)
|
||||
[](./docs/DEVELOPMENT.md)
|
||||
[](https://github.com/poli0981/youtube-generator/releases)
|
||||
[](https://github.com/poli0981/youtube-generator/commits)
|
||||
[](https://git.poli0981.dev/poli0981/youtube-generator/releases)
|
||||
[](https://git.poli0981.dev/poli0981/youtube-generator/commits/branch/main)
|
||||
|
||||
> **Moved from GitHub Pages?** Data saved at the old `poli0981.github.io/youtube-generator` address stays in that browser. Open the old address once — it offers your data as a backup file — then restore it in **Settings › Backup & restore**. Details: [Moving from GitHub Pages](https://github.com/poli0981/youtube-generator/wiki/Moving-from-GitHub-Pages).
|
||||
> **Where things live** (since November 2026, when the GitHub account was suspended): source at [`git.poli0981.dev/poli0981/youtube-generator`](https://git.poli0981.dev/poli0981/youtube-generator) (canonical). Mirror for issues and merge requests: [`gitlab.com/poli0981/youtube-generator`](https://gitlab.com/poli0981/youtube-generator). Downloads: [`releases.poli0981.dev/youtube-generator/`](#download). Patches and questions: `code@poli0981.dev`. Security: `security@poli0981.dev` (see [SECURITY.md](./SECURITY.md)).
|
||||
|
||||
---
|
||||
|
||||
@@ -37,7 +37,7 @@ Built for the gameplay no-commentary niche — especially horror / scary games
|
||||
- translation fixes: wording that doesn't fit a culture or region, and spelling mistakes that could mislead;
|
||||
- changes the Cloudflare or Worker platform forces, and website incidents such as DDoS or bot spam.
|
||||
|
||||
New features are not planned, except the rare one that is genuinely necessary. Feature issues and pull requests outside this list are closed automatically. The full policy is in [CONTRIBUTING.md](./CONTRIBUTING.md#maintenance-mode).
|
||||
New features are not planned, except the rare one that is genuinely necessary. Feature issues and merge requests outside this list are closed. The full policy is in [CONTRIBUTING.md](./CONTRIBUTING.md#maintenance-mode).
|
||||
|
||||
## Features
|
||||
|
||||
@@ -57,7 +57,20 @@ New features are not planned, except the rare one that is genuinely necessary. F
|
||||
- **Guardrails** — length caps on every field and an opt-in **Strict Mode** that blocks copy and export while a field has an error.
|
||||
- **Dark and light themes** at WCAG AA contrast, larger controls on touch screens, and an option to hide every scrollbar.
|
||||
- **Accessible** — works with the keyboard alone and with screen readers (generated text is marked with its language), respects reduce motion, zooms on desktop; see [ACCESSIBILITY.md](./ACCESSIBILITY.md).
|
||||
- **Desktop app** — Windows, macOS & Linux via Tauri; **Android app** — Android 11+, sideloaded from [Releases](https://github.com/poli0981/youtube-generator/releases).
|
||||
- **Desktop app** — Windows & Linux via Tauri; **Android app** — Android 11+, sideloaded. See [Download](#download).
|
||||
|
||||
## Download
|
||||
|
||||
Each release on the [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases) links its files on `releases.poli0981.dev/youtube-generator/<version>/`, with a `SHA256SUMS` next to them:
|
||||
|
||||
| Platform | File |
|
||||
| ----------------------- | ---------------------------------------------------------------------- |
|
||||
| Windows 10/11 x64 | `YTDescGen_<version>_x64-setup.exe` (or the `…_x64_en-US.msi`) |
|
||||
| Linux x86_64 | `YTDescGen_<version>_amd64.AppImage`, `…_amd64.deb` or `…_x86_64.rpm` |
|
||||
| Android 11+ (all ABIs) | `YTDescGen_<version>_universal.apk` |
|
||||
| macOS | no new builds after 1.6.0 (no macOS build machine since the move) |
|
||||
|
||||
The newest APK is always at <https://releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk>. The apps have no auto-update: install a new version over the old one, and your data stays. Releases up to 1.6.0 were published on GitHub, which is gone.
|
||||
|
||||
## Quick Start
|
||||
|
||||
@@ -66,17 +79,17 @@ Use the web app: **<https://ytgenerator.stream>** — a quick bot check runs on
|
||||
Build it yourself:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/poli0981/youtube-generator.git
|
||||
git clone https://git.poli0981.dev/poli0981/youtube-generator.git
|
||||
cd youtube-generator
|
||||
npm install
|
||||
npm run dev # web dev server at http://localhost:5173
|
||||
```
|
||||
|
||||
Desktop build (Windows / macOS / Linux):
|
||||
Desktop build (Windows / Linux; macOS still builds locally on a Mac, but no release ships one):
|
||||
|
||||
```bash
|
||||
npm run tauri:build
|
||||
# Output: src-tauri/target/release/bundle/{msi,nsis,deb,rpm,appimage,dmg,app}
|
||||
# Output: src-tauri/target/release/bundle/{msi,nsis,deb,rpm,appimage}
|
||||
```
|
||||
|
||||
Android build (`.apk`) — requires the Android SDK + NDK + a JDK:
|
||||
@@ -114,7 +127,6 @@ Architecture overview: [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md).
|
||||
|
||||
| Document | What's in it |
|
||||
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **[Wiki](https://github.com/poli0981/youtube-generator/wiki)** | **User documentation** — quick start, backup & restore, every field and its limit, shortcuts, troubleshooting, FAQ. Start here if you're using the app rather than building it. |
|
||||
| [Development Guide](./docs/DEVELOPMENT.md) | Toolchain, IDE setup, build commands, troubleshooting. _(Also: [Vietnamese](./docs/i18n/vi/DEVELOPMENT.md).)_ |
|
||||
| [Hosting](./docs/HOSTING.md) | How ytgenerator.stream is built, deployed and protected. |
|
||||
| [Architecture](./docs/ARCHITECTURE.md) | Layer model, data flow, engine design. |
|
||||
@@ -124,7 +136,7 @@ Architecture overview: [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md).
|
||||
| [Tech Spec](./docs/TECH-SPEC.md) | Implementation details and configs. |
|
||||
| [i18n Guide](./docs/I18N.md) | Adding new locales. |
|
||||
| [Packaging](./docs/PACKAGING.md) | Tauri desktop + Android release builds and signing. |
|
||||
| [Contributing](./CONTRIBUTING.md) | PR process, commit conventions, required checks. |
|
||||
| [Contributing](./CONTRIBUTING.md) | Issues and merge requests on GitLab, patches by e-mail, commit conventions, CI. |
|
||||
| [Security](./SECURITY.md) | Reporting vulnerabilities. |
|
||||
| [Accessibility](./ACCESSIBILITY.md) | What works with a keyboard, screen readers and zoom, known gaps, how to report a barrier. _(Also: [Vietnamese](./docs/i18n/vi/ACCESSIBILITY.md).)_ |
|
||||
| [Privacy](./PRIVACY.md) | What is stored where, and what Cloudflare processes. |
|
||||
@@ -137,7 +149,7 @@ Architecture overview: [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md).
|
||||
|
||||
## Contributing
|
||||
|
||||
YTDescGen is in [maintenance mode](#project-status): bug, accessibility and translation fixes and agreed option requests are welcome — read [CONTRIBUTING.md](./CONTRIBUTING.md) first. Native-speaker corrections to the AI-translated locales (JA / ES / KO / ZH / PT-BR / ID) are especially appreciated. Feature ideas go to [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas).
|
||||
YTDescGen is in [maintenance mode](#project-status): bug, accessibility and translation fixes and agreed option requests are welcome — read [CONTRIBUTING.md](./CONTRIBUTING.md) first. Native-speaker corrections to the AI-translated locales (JA / ES / KO / ZH / PT-BR / ID) are especially appreciated. Issues and merge requests go to the [GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues) (the Gitea repository takes no sign-ups); patches also by e-mail to `code@poli0981.dev`.
|
||||
|
||||
## License
|
||||
|
||||
@@ -152,7 +164,7 @@ This project was co-authored with **Anthropic's Claude Code** (Claude Opus model
|
||||
| For | Where |
|
||||
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| Anything general | `contact@poli0981.dev` |
|
||||
| Security vulnerabilities | [GitHub advisory](https://github.com/poli0981/youtube-generator/security/advisories/new) or `security@poli0981.dev` — see [SECURITY.md](./SECURITY.md) |
|
||||
| Security vulnerabilities | `security@poli0981.dev`, by e-mail only — see [SECURITY.md](./SECURITY.md) |
|
||||
| Privacy and data requests | `privacy@poli0981.dev` |
|
||||
| Terms, legal | `legal@poli0981.dev` |
|
||||
| Copyright / DMCA notices | `dmca@poli0981.dev` |
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# REUSE (https://reuse.software) licensing information for the whole
|
||||
# repository, checked in CI by .github/workflows/compliance.yml.
|
||||
# repository, checked in CI by .gitea/workflows/compliance.yml.
|
||||
#
|
||||
# Everything here is original work released under Apache-2.0 unless a more
|
||||
# specific annotation below says otherwise. Add one whenever a file under
|
||||
|
||||
+5
-8
@@ -13,14 +13,11 @@ YTDescGen has been in [maintenance mode](./CONTRIBUTING.md#maintenance-mode) sin
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
Please report security issues **privately**. Do not open a public issue.
|
||||
Please report security issues **privately, by e-mail**: **security@poli0981.dev**, with the subject prefix `[SECURITY]`.
|
||||
|
||||
**Preferred channels (in order):**
|
||||
**Do not open a public issue** — in particular not on the GitLab mirror (`gitlab.com/poli0981/youtube-generator`), which is where ordinary issues go. If a report arrives there anyway, the maintainer makes the issue confidential and carries on by e-mail. (The GitHub advisory form went with the suspended GitHub account in November 2026.)
|
||||
|
||||
1. **GitHub Security Advisory** — [open a draft advisory](https://github.com/poli0981/youtube-generator/security/advisories/new) in this repository.
|
||||
2. **Email** — **security@poli0981.dev** with the subject prefix `[SECURITY]`.
|
||||
|
||||
The same contacts are published in [`/.well-known/security.txt`](https://ytgenerator.stream/.well-known/security.txt) (RFC 9116).
|
||||
The same contact is published in [`/.well-known/security.txt`](https://ytgenerator.stream/.well-known/security.txt) (RFC 9116).
|
||||
|
||||
Include:
|
||||
|
||||
@@ -40,8 +37,8 @@ Include:
|
||||
In scope:
|
||||
|
||||
- The web app at `ytgenerator.stream`, including its Cloudflare Worker (`worker/`): the Turnstile gate, its cookies, and the security headers.
|
||||
- The desktop binaries (Windows, macOS, Linux) and the Android APK published on the GitHub releases page, including the Tauri commands in `src-tauri/`.
|
||||
- CI/CD workflows in `.github/workflows/`.
|
||||
- The desktop installers (Windows, Linux) and the Android APK linked from the [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases) and served from `releases.poli0981.dev/youtube-generator/`, including the Tauri commands in `src-tauri/`. (macOS builds stopped after 1.6.0.)
|
||||
- CI/CD workflows in `.gitea/workflows/` and the shared workflows they call in `poli0981/.github`.
|
||||
|
||||
Out of scope:
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Terms of Use
|
||||
|
||||
**Effective:** 2026-09-30
|
||||
**Effective:** 2026-11-25
|
||||
|
||||
These terms govern your use of YTDescGen — the web app at **https://ytgenerator.stream** and the desktop and Android apps distributed from this project's [GitHub releases](https://github.com/poli0981/youtube-generator/releases). By using YTDescGen you agree to them, together with the [Privacy Policy](PRIVACY.md) and the [Disclaimer](DISCLAIMER.md).
|
||||
These terms govern your use of YTDescGen — the web app at **https://ytgenerator.stream** and the desktop and Android apps distributed from this project's [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases) (the files are served from `releases.poli0981.dev`). By using YTDescGen you agree to them, together with the [Privacy Policy](PRIVACY.md) and the [Disclaimer](DISCLAIMER.md).
|
||||
|
||||
## License
|
||||
|
||||
@@ -57,7 +57,7 @@ By submitting a contribution (issue, pull request, comment, locale translation,
|
||||
3. You will not include malicious code or knowingly vulnerable dependencies.
|
||||
4. You will follow the [Code of Conduct](CODE_OF_CONDUCT.md) and [Contributing Guide](CONTRIBUTING.md).
|
||||
|
||||
Violations may result in your contribution being closed and, in severe cases, a permanent ban from the repository — see `CONTRIBUTING.md` § "Auto-ignored Contributions". Contributions made on GitHub are also subject to [GitHub's Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service).
|
||||
Violations may result in your contribution being closed and, in severe cases, a permanent ban from the repository — see `CONTRIBUTING.md` § "Auto-ignored Contributions". Contributions made on the GitLab mirror are also subject to [GitLab's terms](https://about.gitlab.com/terms/).
|
||||
|
||||
## Termination
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<g font-family="Segoe UI, Inter, Helvetica Neue, Arial, sans-serif">
|
||||
<text x="410" y="268" font-size="92" font-weight="700" fill="#F4F4F8" letter-spacing="-1.5">YTDescGen</text>
|
||||
<text x="412" y="334" font-size="34" fill="#B4B4C6">Titles, descriptions & tags for gameplay videos</text>
|
||||
<text x="412" y="384" font-size="28" fill="#8E8EA6">8 languages · Web · Windows · macOS · Linux · Android</text>
|
||||
<text x="412" y="384" font-size="28" fill="#8E8EA6">8 languages · Web · Windows · Linux · Android</text>
|
||||
<text x="412" y="452" font-size="30" font-weight="600" fill="#A5A6FB">ytgenerator.stream</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -10,7 +10,7 @@ import { LEGAL_DOCS, legalDocPath, type LegalDoc, type LegalDocId } from "../src
|
||||
*
|
||||
* 1. `virtual:legal-docs` — { [id]: { title, effective, html: { en, vi? } } },
|
||||
* imported lazily by the in-app Legal Center, so desktop and Android carry
|
||||
* the documents offline and nothing is fetched from GitHub any more.
|
||||
* the documents offline and nothing is fetched from the forge.
|
||||
* 2. `dist/legal/<id>.html` (+ `<id>.vi.html`, `index.html`) — plain pages
|
||||
* with no script, which the Cloudflare Worker serves to anyone, before the
|
||||
* Turnstile gate: people must be able to read the Terms and the Privacy
|
||||
@@ -21,7 +21,8 @@ import { LEGAL_DOCS, legalDocPath, type LegalDoc, type LegalDocId } from "../src
|
||||
|
||||
const VIRTUAL_ID = "virtual:legal-docs";
|
||||
const RESOLVED_VIRTUAL_ID = `\0${VIRTUAL_ID}`;
|
||||
const REPO_BLOB = "https://github.com/poli0981/youtube-generator/blob/main/";
|
||||
/** Files in the canonical repository on Gitea (where outside links point). */
|
||||
const REPO_BLOB = "https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/";
|
||||
const ROOT = resolve(import.meta.dirname, "..");
|
||||
|
||||
type DocLang = "en" | "vi";
|
||||
@@ -63,7 +64,7 @@ export function escapeHtml(text: string): string {
|
||||
return text.replace(/[&<>"']/g, (ch) => HTML_ESCAPES[ch] ?? ch);
|
||||
}
|
||||
|
||||
/** Point relative links at the in-site page, or at GitHub for anything else. */
|
||||
/** Point relative links at the in-site page, or at the Gitea repository for anything else. */
|
||||
export function rewriteHref(href: string, fromFile: string): string {
|
||||
if (/^(?:[a-z][a-z0-9+.-]*:|#)/i.test(href)) return href;
|
||||
const hashAt = href.indexOf("#");
|
||||
@@ -248,7 +249,7 @@ function pageShell(options: {
|
||||
<nav aria-label="Legal documents"><p>Legal</p><ul>${nav}</ul></nav>
|
||||
<main>${options.body}</main>
|
||||
</div>
|
||||
<footer>© ${copyrightYears(new Date().getUTCFullYear())} poli0981 (SkullMute) · Source code under the Apache License 2.0 · <a href="https://github.com/poli0981/youtube-generator">GitHub</a> · <a href="mailto:contact@poli0981.dev">contact@poli0981.dev</a></footer>
|
||||
<footer>© ${copyrightYears(new Date().getUTCFullYear())} poli0981 (SkullMute) · Source code under the Apache License 2.0 · <a href="https://git.poli0981.dev/poli0981/youtube-generator">Source (Gitea)</a> · <a href="mailto:contact@poli0981.dev">contact@poli0981.dev</a></footer>
|
||||
</body>
|
||||
</html>
|
||||
`;
|
||||
|
||||
@@ -43,7 +43,6 @@ export function renderSecurityTxt(now: Date): string {
|
||||
"# Security contact for YTDescGen — https://ytgenerator.stream",
|
||||
"# Scope, response times and disclosure policy are in the Policy link below.",
|
||||
"Contact: mailto:security@poli0981.dev",
|
||||
"Contact: https://github.com/poli0981/youtube-generator/security/advisories/new",
|
||||
`Expires: ${expires.toISOString().replace(/\.\d{3}Z$/, "Z")}`,
|
||||
"Preferred-Languages: en, vi",
|
||||
`Canonical: ${SITE_ORIGIN}/.well-known/security.txt`,
|
||||
|
||||
@@ -391,7 +391,7 @@ Export: `ExportBackupDialog` → `collectBackup(chosen sections)` → `saveTextF
|
||||
|
||||
## 6. Web Delivery
|
||||
|
||||
The web build is served at <https://ytgenerator.stream> by a Cloudflare Worker (`worker/`, configured by `wrangler.jsonc`) that Cloudflare Workers Builds deploys from `main`. The Worker puts a Turnstile check in front of the app (verified server-side; a signed `HttpOnly` `__Host-ytg_gate` cookie remembers the pass for 24 hours), serves the prerendered legal pages at `/legal/*` to everyone, sets the security headers (a CSP per page type), and answers `429` to a client that sends too many requests (Workers Rate Limiting bindings, behind a WAF rate limiting rule at the zone). Agreeing to the terms on the gate page sets the `ytg_terms` cookie, which the app reads so a web visitor meets one blocking screen, not two. Build-time extras for the web only — static legal pages, `/.well-known/security.txt`, the cookieless Web Analytics beacon — come from `build-plugins/`. The desktop and Android builds use none of this and contain no analytics. Request flow, cookies, headers and operations: [HOSTING.md](HOSTING.md).
|
||||
The web build is served at <https://ytgenerator.stream> by a Cloudflare Worker (`worker/`, configured by `wrangler.jsonc`) that the `deploy` job of `.gitea/workflows/ci.yml` deploys from `main` with wrangler. The Worker puts a Turnstile check in front of the app (verified server-side; a signed `HttpOnly` `__Host-ytg_gate` cookie remembers the pass for 24 hours), serves the prerendered legal pages at `/legal/*` to everyone, sets the security headers (a CSP per page type), and answers `429` to a client that sends too many requests (Workers Rate Limiting bindings, behind a WAF rate limiting rule at the zone). Agreeing to the terms on the gate page sets the `ytg_terms` cookie, which the app reads so a web visitor meets one blocking screen, not two. Build-time extras for the web only — static legal pages, `/.well-known/security.txt`, the cookieless Web Analytics beacon — come from `build-plugins/`. The desktop and Android builds use none of this and contain no analytics. Request flow, cookies, headers and operations: [HOSTING.md](HOSTING.md).
|
||||
|
||||
## 7. Desktop Packaging (Tauri)
|
||||
|
||||
|
||||
+12
-10
@@ -23,7 +23,7 @@ Install in this order:
|
||||
|
||||
| Tool | Version | Why |
|
||||
| ----------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **Node.js** | **26** — the version in `.node-version` | CI, the release workflows and Cloudflare Workers Builds all read `.node-version`, and `package.json` declares `engines.node >= 26`. Use [nvm](https://github.com/nvm-sh/nvm) or [fnm](https://github.com/Schniz/fnm) (fnm reads `.node-version`). |
|
||||
| **Node.js** | **26** — the version in `.node-version` | CI, the release workflow and the deploy job all read `.node-version`, and `package.json` declares `engines.node >= 26`. Use [nvm](https://github.com/nvm-sh/nvm) or [fnm](https://github.com/Schniz/fnm) (fnm reads `.node-version`). |
|
||||
| **npm** | 11, bundled with Node 26 | The project uses npm; `pnpm` and `yarn` are not tested. |
|
||||
| **Rust** | stable, `>= 1.90` | Required for the Tauri desktop and Android builds (Tauri 2.12 needs Rust 1.90). Install via [rustup](https://rustup.rs/); its default profile includes `rustfmt` and `clippy`. |
|
||||
| **Python** | `3.12` | Optional — only needed for some Tauri platform tooling on Windows. |
|
||||
@@ -68,7 +68,7 @@ Recommended extensions (no `.vscode/extensions.json` is committed — install ma
|
||||
|
||||
```bash
|
||||
# 1. Clone
|
||||
git clone https://github.com/poli0981/youtube-generator.git
|
||||
git clone https://git.poli0981.dev/poli0981/youtube-generator.git
|
||||
cd youtube-generator
|
||||
|
||||
# 2. Install web dependencies
|
||||
@@ -83,11 +83,13 @@ The dev server is the app alone: no Turnstile gate and no analytics. To run the
|
||||
|
||||
## Branches and Pull Requests
|
||||
|
||||
- Branch from `main` (`feat/…`, `fix/…`, `docs/…`, `chore/…`) and open the pull request against `main`. There is no other long-lived branch, and every merge to `main` deploys the web app.
|
||||
The repository lives on Gitea ([`git.poli0981.dev/poli0981/youtube-generator`](https://git.poli0981.dev/poli0981/youtube-generator)); outside contributors open issues and merge requests on the GitLab mirror ([`gitlab.com/poli0981/youtube-generator`](https://gitlab.com/poli0981/youtube-generator)) or send patches to `code@poli0981.dev`. CI is Gitea Actions (`.gitea/workflows/`), run by a runner on the maintainer's PC.
|
||||
|
||||
- Branch from `main` (`feat/…`, `fix/…`, `docs/…`, `chore/…`) and open the pull request against `main`. There is no other long-lived branch, and every merge to `main` deploys the web app (the `deploy` job of `ci.yml`).
|
||||
- PR titles use the commit format `type(scope): message`; CI checks them.
|
||||
- Every PR runs the `check` job (below), `dependency-review`, `workflow-lint`, `reuse` and `pr-title`; the Rust jobs `lint-and-test` and `cargo-deny` run when `src-tauri/` changes.
|
||||
- After `check`, the `sonarcloud` job sends the code and the coverage report to [SonarCloud](https://sonarcloud.io/project/overview?id=poli0981_youtube-generator) (settings in `sonar-project.properties`) and fails when its quality gate does: new code needs A ratings, reviewed security hotspots, at most 3 % duplication and at least 80 % coverage. PRs from forks and from Dependabot skip it — they get no `SONAR_TOKEN` — and `main` is analysed after every merge.
|
||||
- The `Qodana` workflow runs JetBrains [Qodana](https://www.jetbrains.com/qodana/) on every PR and every push to `main`: Qodana for JS on the repository (`qodana.yaml`) and Qodana for Rust on `src-tauri/` (`src-tauri/qodana.yaml`). Both fail on any problem. Like SonarCloud, it skips PRs from forks and from Dependabot, which get no Qodana token. It is not a required check.
|
||||
- Every PR runs the `check` job (below), `workflow-lint` (actionlint, zizmor), `reuse`, `pr-title` and the shared security scan (gitleaks, Opengrep, osv-scanner, cargo-deny); the Rust job `lint-and-test` runs when `src-tauri/` changes.
|
||||
- The `Qodana` workflow runs JetBrains [Qodana](https://www.jetbrains.com/qodana/) on every PR and every push to `main`: Qodana for JS on the repository (`qodana.yaml`) and Qodana for Rust on `src-tauri/` (`src-tauri/qodana.yaml`, in Docker on the runner PC). Both fail on any problem. It is not a required check.
|
||||
- Dependency updates come from Renovate (`renovate.json`), grouped, after a 3-day release age.
|
||||
|
||||
Full rules: [CONTRIBUTING.md](../CONTRIBUTING.md).
|
||||
|
||||
@@ -117,13 +119,13 @@ Full rules: [CONTRIBUTING.md](../CONTRIBUTING.md).
|
||||
| `npm run validate:locales` | Enforces all 8 locales match `_schema.json` exactly. **Must pass before any locale-touching PR merges.** |
|
||||
| `npm run test` | Vitest watch mode. |
|
||||
| `npm run test:run` | Vitest single-run. |
|
||||
| `npm run test:coverage` | Single run with a coverage report into `coverage/` — the logic layers, and `lcov.info` goes to SonarCloud; fails below the thresholds for `src/engine/` and `worker/` set in `vitest.config.ts`. This is what CI runs. |
|
||||
| `npm run test:coverage` | Single run with a coverage report into `coverage/` — the logic layers; fails below the thresholds for `src/engine/` and `worker/` set in `vitest.config.ts`. This is what CI runs. |
|
||||
| `npm run check:version` | Asserts all **six** version fields agree (`package.json`, both `package-lock.json` entries, `tauri.conf.json`, `Cargo.toml`, `Cargo.lock`). The only thing that notices a missed one. |
|
||||
| `npm run check:tauri` | The `@tauri-apps/*` npm packages and the Tauri crates must share major.minor. The Tauri CLI refuses to build otherwise, and CI never runs a Tauri build. |
|
||||
| `npm run check:licenses` | Every bundled package has an allowed license, and `THIRD_PARTY_NOTICES.md` matches what is installed. |
|
||||
| `npm run check:copyright` | NOTICE, REUSE.toml and the installers' copyright string (`tauri.conf.json`) state the copyright years for the year of HEAD's commit — "2026", then "2026-2027" from the first commit of 2027. CI gate (v1.1.0). |
|
||||
| `npm run check:bundle` | Run after `npm run build`: the initial load must stay ≤ 280 KB gzip and no JS chunk over 500 KB raw. |
|
||||
| `npm run cf:check` | `wrangler deploy --dry-run`: validates `wrangler.jsonc` and bundles the Worker the way Workers Builds will, without deploying. |
|
||||
| `npm run cf:check` | `wrangler deploy --dry-run`: validates `wrangler.jsonc` and bundles the Worker the way the deploy job will, without deploying. |
|
||||
|
||||
### Generate
|
||||
|
||||
@@ -176,7 +178,7 @@ See [PACKAGING.md](./PACKAGING.md) for the full release pipeline. Quick local bu
|
||||
```bash
|
||||
npm run tauri:build
|
||||
# Output: src-tauri/target/release/bundle/
|
||||
# Windows: MSI + NSIS installers · Linux: deb, rpm, AppImage · macOS: .app + DMG
|
||||
# Windows: MSI + NSIS installers · Linux: deb, rpm, AppImage · macOS (local only, not released): .app + DMG
|
||||
```
|
||||
|
||||
The first build takes ~5–10 minutes (cold Cargo cache). Subsequent builds are incremental.
|
||||
@@ -185,7 +187,7 @@ The Vite dev server does not watch `src-tauri/**` or `.wrangler/**` (`server.wat
|
||||
|
||||
### Rust checks
|
||||
|
||||
The same steps as the `lint-and-test` job in `.github/workflows/rust.yml`, which runs when `src-tauri/` changes (and weekly):
|
||||
The same steps as the `lint-and-test` job in `.gitea/workflows/rust.yml`, which runs when `src-tauri/` changes (and weekly):
|
||||
|
||||
```bash
|
||||
npm run build # tauri::generate_context!() embeds dist/, so clippy and the tests need a build
|
||||
|
||||
+12
-13
@@ -9,17 +9,16 @@
|
||||
| Platform | Where | Bot check & analytics |
|
||||
| ----------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
|
||||
| **Web** | [ytgenerator.stream](https://ytgenerator.stream) | A Cloudflare **Turnstile** check (usually invisible), remembered for 24 hours; **cookieless** Web Analytics |
|
||||
| **Desktop** | Windows, macOS, Linux — [Releases](https://github.com/poli0981/youtube-generator/releases) | Neither |
|
||||
| **Android** | Android 11+, sideloaded `.apk` — [Releases](https://github.com/poli0981/youtube-generator/releases) | Neither |
|
||||
| **Desktop** | Windows, Linux — [Releases](https://git.poli0981.dev/poli0981/youtube-generator/releases) (macOS up to 1.6.0) | Neither |
|
||||
| **Android** | Android 11+, sideloaded `.apk` — [Releases](https://git.poli0981.dev/poli0981/youtube-generator/releases) | Neither |
|
||||
|
||||
The web app is a Cloudflare Worker in front of the static build, and
|
||||
Cloudflare Workers Builds deploys every merge to `main` — see
|
||||
the CI `deploy` job publishes every merge to `main` — see
|
||||
[HOSTING.md](./HOSTING.md). On every platform your data stays on the device.
|
||||
|
||||
GitHub Pages is retired. Until **2026-11-29** the old
|
||||
`poli0981.github.io/youtube-generator` address shows a moving notice whose
|
||||
**Download my data** button saves what the browser stored there as a backup
|
||||
file — restore it in **Settings › Backup & restore**.
|
||||
Release files live on `releases.poli0981.dev/youtube-generator/<version>/`
|
||||
(each release on Gitea links them). The old GitHub Pages address and its
|
||||
moving notice went with the suspended GitHub account in November 2026.
|
||||
|
||||
## 🎬 Video Types (20 types)
|
||||
|
||||
@@ -378,7 +377,7 @@ a pasted store link can each be undone from the toast they show.
|
||||
- **Command palette** (Ctrl/⌘+K) — go to any page or the Legal Center; copy
|
||||
the title, description, tags or everything; apply a saved profile, game
|
||||
preset or template; switch theme, interface language or output language;
|
||||
open the shortcuts, the wiki or a bug report.
|
||||
open the shortcuts or a bug report.
|
||||
- **Live preview** — the generated title, description and tags beside the
|
||||
editor form (a sheet on phones), with the same counters and copy rules as
|
||||
the Output page.
|
||||
@@ -409,8 +408,8 @@ Center, in English and Vietnamese). In short:
|
||||
`tests/styles/contrast.test.ts`; white text sits on the darker
|
||||
`accent-solid` / `danger-solid` fills; focus stays visible in Windows High
|
||||
Contrast; desktop zoom with Ctrl/⌘ + = / − (`zoomHotkeysEnabled`).
|
||||
- **Reporting** — the _Accessibility barrier_ issue form
|
||||
(`.github/ISSUE_TEMPLATE/accessibility.yml`), or `contact@` with
|
||||
- **Reporting** — the _Accessibility_ issue template on the GitLab mirror
|
||||
(`.gitlab/issue_templates/Accessibility.md`), or `contact@` with
|
||||
`[Accessibility]`.
|
||||
|
||||
## 💾 Data Persistence
|
||||
@@ -537,8 +536,8 @@ Strict Mode is on or off.
|
||||
| Window | Resizable, 1280×820 by default |
|
||||
| Installer | The Windows MSI / NSIS installers show the license page |
|
||||
|
||||
There is no auto-updater yet — new versions come from
|
||||
[Releases](https://github.com/poli0981/youtube-generator/releases).
|
||||
There is no auto-updater — new versions come from
|
||||
[Releases](https://git.poli0981.dev/poli0981/youtube-generator/releases) (files on `releases.poli0981.dev`).
|
||||
|
||||
## 📱 Android App (v0.29)
|
||||
|
||||
@@ -551,7 +550,7 @@ separate mobile project. Build with `cargo tauri android build --apk`; see
|
||||
| Same codebase | One Tauri 2 project produces web, desktop, and Android |
|
||||
| Min version | Android 11+ (minSdk 30); `targetSdk` 36 (Android 16) |
|
||||
| Tested | Android 11 → 16 (emulators); real device on Android 12 |
|
||||
| Signed APK | Self-signed release APK for sideloading; CI publishes it to GitHub Releases |
|
||||
| Signed APK | Self-signed release APK for sideloading; CI publishes it to `releases.poli0981.dev` |
|
||||
| Responsive UI | Bottom tab bar (Editor, Output, Batch, Profiles, More), touch-sized controls, safe-area insets |
|
||||
| File export | Routed through the WebView download (lands in Downloads) on Android |
|
||||
| Persistence | App-private storage; works offline |
|
||||
|
||||
+6
-6
@@ -8,12 +8,12 @@ How the web app is built, deployed and protected. The desktop and Android apps d
|
||||
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| Domain | `ytgenerator.stream`, on Cloudflare (DNS, TLS, HSTS preload at the zone edge) |
|
||||
| Hosting | Cloudflare Worker **`youtube-generator`** with static assets from `dist/` |
|
||||
| Build & deploy | **Workers Builds**, connected to this repository in the Cloudflare dashboard. Every push to `main` builds and deploys to production; other branches get preview versions. There is **no GitHub Actions deploy workflow** |
|
||||
| Build & deploy | The **`deploy` job** of [`.gitea/workflows/ci.yml`](../.gitea/workflows/ci.yml): after `check` passes on a push to `main`, `wrangler deploy` builds and deploys to production with the user-level Actions secrets `CLOUDFLARE_API_TOKEN` + `CLOUDFLARE_ACCOUNT_ID`, then waits until the new build's entry chunk answers 200 |
|
||||
| Configuration | [`wrangler.jsonc`](../wrangler.jsonc) — the only Cloudflare file in the repo |
|
||||
| Worker code | [`worker/`](../worker) — the Turnstile gate, the legal pages route, security headers |
|
||||
| Build-time web extras | [`build-plugins/web-only.ts`](../build-plugins/web-only.ts) (Web Analytics beacon, `security.txt`) and [`build-plugins/legal-docs.ts`](../build-plugins/legal-docs.ts) (legal pages) |
|
||||
|
||||
GitHub Pages (`poli0981.github.io/youtube-generator`) is retired. Until 2026-11-29 it serves only a moving notice from [`migration-page/`](../migration-page), published by hand with the `pages-migration.yml` workflow; issue #177 tracks removing it.
|
||||
Workers Builds deployed from the GitHub repository until the GitHub account was suspended (November 2026); its Git connection is gone, and Gitea CI deploys instead (ops decision D3). The job runs on the maintainer's PC like every Gitea job: a merge made while the PC is off deploys when it comes back. GitHub Pages (`poli0981.github.io/youtube-generator`), which served a moving notice for the old address, went with the account.
|
||||
|
||||
## Request flow
|
||||
|
||||
@@ -104,7 +104,7 @@ The custom domain is declared in `routes` because `wrangler deploy` detaches any
|
||||
|
||||
These live in Cloudflare, not in the repository:
|
||||
|
||||
1. **Workers Builds** — build command empty (`wrangler.jsonc` runs `npm run build`), deploy command `npx wrangler deploy`, non-production deploy command `npx wrangler versions upload`. Root directory `/`; Node 26 comes from `.node-version`, and the build variable `NODE_VERSION=26` says the same.
|
||||
1. **Workers Builds** — disconnected (no Git repository). The deploy credentials are an API token with Workers edit rights on the account, stored as the Gitea user-level Actions secrets `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID` (shared by the web repositories).
|
||||
2. **Turnstile widget** — hostname `ytgenerator.stream` (add the `workers.dev` subdomain if preview URLs should pass the gate).
|
||||
3. **Web Analytics** — the manual beacon is used; turn off _automatic setup_ for the hostname so visits aren't counted twice.
|
||||
4. **Redirect rule** — `www.ytgenerator.stream/*` → `concat("https://ytgenerator.stream", http.request.uri.path)`, 301, preserving the query string.
|
||||
@@ -124,10 +124,10 @@ The test keys always pass. Never put the real secret in a file. Worker tests run
|
||||
|
||||
## Releases, previews and rollback
|
||||
|
||||
- A merge to `main` is a production deploy. CI's required `check` job already ran `npm run build` and `npm run cf:check` on the pull request.
|
||||
- Branch builds upload a **preview version** (`preview_urls: true`); preview URLs pass the gate only if their hostname is allowed in the Turnstile widget.
|
||||
- A merge to `main` is a production deploy: CI's `check` job runs again on `main` (it already ran `npm run build` and `npm run cf:check` on the pull request), then `deploy`. Its status and log are on the commit in Gitea (Actions › CI); a failure posts to Discord through `notify-ci-failure.yml`.
|
||||
- Branches get no preview version any more (Workers Builds made them). `preview_urls: true` stays, so `npx wrangler versions upload` from a branch still gives one by hand; preview URLs pass the gate only if their hostname is allowed in the Turnstile widget.
|
||||
- **Rollback**: Cloudflare dashboard › the Worker › Deployments › pick an earlier version, or `npx wrangler rollback`. Rolling back the Worker also rolls back its assets.
|
||||
- Each deploy posts a **Workers Builds** check run on the merge commit in GitHub; open its details link for the build log.
|
||||
- **Deploy by hand** (CI down, PC away from the repo): `npx wrangler login` once, then `npm ci --ignore-scripts && npx wrangler deploy` from a clean `main`.
|
||||
|
||||
## Checking production
|
||||
|
||||
|
||||
+2
-1
@@ -404,4 +404,5 @@ Community members can contribute translations by:
|
||||
|
||||
Native-speaker corrections to the AI-translated locales are the most welcome
|
||||
contribution of all. `src/i18n/locales/<code>/*.json` can be edited straight
|
||||
from GitHub's web UI; see [CONTRIBUTING.md](../CONTRIBUTING.md).
|
||||
from GitLab's web IDE on the mirror (a merge request), or sent as a patch; see
|
||||
[CONTRIBUTING.md](../CONTRIBUTING.md).
|
||||
+44
-45
@@ -2,7 +2,7 @@
|
||||
|
||||
## YTDescGen — Tauri 2 Desktop and Android Apps
|
||||
|
||||
Reflects **v1.6.0**: Windows, macOS (Apple silicon) and Linux desktop apps plus an Android APK, all built from the same Tauri 2 project in `src-tauri/`. The web app is deployed separately — see [HOSTING.md](HOSTING.md).
|
||||
Reflects **v1.6.0**: Windows and Linux desktop apps plus an Android APK, all built from the same Tauri 2 project in `src-tauri/` (macOS still builds locally on a Mac, but releases stopped shipping it after 1.6.0: there is no macOS runner on Gitea). The web app is deployed separately — see [HOSTING.md](HOSTING.md).
|
||||
|
||||
---
|
||||
|
||||
@@ -122,7 +122,7 @@ Notes:
|
||||
- The CSP allows only the app's own files (plus inline styles, which Radix, Motion and sonner set). That is why the Vite build never inlines assets as `data:` URIs (`assetsInlineLimit: 0`) and the fonts are self-hosted. The Tauri build also carries no analytics beacon — Vite adds it only to the web build.
|
||||
- There is **no `trayIcon` entry**: the tray icon is built in code (`lib.rs`), with the app icon — a `trayIcon` entry would add a second one.
|
||||
- There is **no `updater` configuration** — see [Updates](#updates).
|
||||
- `targets: "all"` builds every bundle the platform supports (MSI + NSIS on Windows, `.app` + `.dmg` on macOS, `.deb` + `.rpm` + AppImage on Linux); the release workflow narrows macOS to `.app`.
|
||||
- `targets: "all"` builds every bundle the platform supports (MSI + NSIS on Windows, `.deb` + `.rpm` + AppImage on Linux, `.app` + `.dmg` on a Mac).
|
||||
- `bundle.copyright` (v1.1.0) is the installers' copyright string — the Windows file properties, the macOS `Info.plist` and the Linux packages. `npm run check:copyright` (in CI) holds its year to the year of the newest commit, together with NOTICE and REUSE.toml, and `npm run update:copyright` rewrites all three: the first commit of a new year needs it.
|
||||
|
||||
> **Installer license page (v0.28).** The real `src-tauri/tauri.conf.json`
|
||||
@@ -211,7 +211,7 @@ The commands:
|
||||
What makes them safe:
|
||||
|
||||
- **Names, not paths.** `storage.rs` builds every path itself, under Tauri's `app_data_dir()`, from a name that must match `ytdescgen-<lowercase letters, digits, hyphens>.json` (at most 100 bytes) for backups or `ytdescgen-YYYYMMDD.jsonl` for logs. Anything else — `..`, separators, other extensions — is rejected before a path exists.
|
||||
- **Dialogs run in Rust.** `file_dialog.rs` accepts only the extensions `json`, `jsonl`, `txt`, `csv` and `md`; reduces a suggested name to its file name (`../../x/backup.json` → `backup.json`); makes a saved file end in an allowed extension (`backup` → `backup.json`, `backup.exe` → `backup.exe.json`); and refuses imports over 20 MB or that are not UTF-8 (a byte-order mark is stripped). The chosen path never passes through JavaScript. On desktop the dialog is attached to the app window. Both commands are `async` and run the dialog and the file I/O through `tauri::async_runtime::spawn_blocking`: the dialogs' blocking API must stay off the main thread, and blocking work must not hold one of the async runtime's workers (SonarCloud `rust:S7493`).
|
||||
- **Dialogs run in Rust.** `file_dialog.rs` accepts only the extensions `json`, `jsonl`, `txt`, `csv` and `md`; reduces a suggested name to its file name (`../../x/backup.json` → `backup.json`); makes a saved file end in an allowed extension (`backup` → `backup.json`, `backup.exe` → `backup.exe.json`); and refuses imports over 20 MB or that are not UTF-8 (a byte-order mark is stripped). The chosen path never passes through JavaScript. On desktop the dialog is attached to the app window. Both commands are `async` and run the dialog and the file I/O through `tauri::async_runtime::spawn_blocking`: the dialogs' blocking API must stay off the main thread, and blocking work must not hold one of the async runtime's workers.
|
||||
- **Removed in v1.0.0**: the five commands that read, wrote, appended to, listed and deleted any path the webview sent (`save_to_file`, `read_from_file`, `append_to_file`, `list_dir`, `delete_file`), and the fs and shell plugins.
|
||||
|
||||
Both modules have unit tests (`cargo test` in `src-tauri/`): the name rules, path rejection, backup pruning, legacy recovery, dialog filters, writing the picked file and the import checks.
|
||||
@@ -303,21 +303,22 @@ The Tauri CLI runs `npm run build` first (`beforeBuildCommand`) with `TAURI_ENV_
|
||||
|
||||
**Supported WebViews.** Since v1.3.0 both builds use Vite's default target, `baseline-widely-available` — the same engines the website supports: Chromium 111, Safari 16.4, Firefox 114 (Tauri builds were lowered to `es2020` before; the stylesheet's cascade layers already needed Chromium 99+ / Safari 15.4+, so an older WebView showed the app unstyled anyway). In practice: WebView2 on Windows (it updates itself), macOS 11 or later with current Safari updates (the app is Apple silicon only, and `bundle.macOS.minimumSystemVersion` says 11.0), WebKitGTK 2.40 or later on Linux, and on Android 11+ an Android System WebView kept current through Google Play. TypeScript keeps the app's code to the same floor: `lib` in `tsconfig.json` is ES2022, since Vite lowers syntax but never polyfills built-ins.
|
||||
|
||||
Output file names, with the v1.1.0 release sizes:
|
||||
Released file names (the release workflow renames Tauri's output to these), with the v1.1.0 release sizes:
|
||||
|
||||
| Platform | Bundle | File | Size |
|
||||
| --------------------- | -------------------------------- | ---------------------------------------- | ------ |
|
||||
| Windows | MSI | `YTDescGen_<version>_x64_en-US.msi` | 4.1 MB |
|
||||
| Windows | NSIS | `YTDescGen_<version>_x64-setup.exe` | 3.1 MB |
|
||||
| macOS (Apple silicon) | `.app`, archived by tauri-action | `YTDescGen_<version>_aarch64.app.tar.gz` | 4.1 MB |
|
||||
| Linux | Debian | `YTDescGen_<version>_amd64.deb` | 5.3 MB |
|
||||
| Linux | RPM | `YTDescGen-<version>-1.x86_64.rpm` | 5.3 MB |
|
||||
| Linux | AppImage | `YTDescGen_<version>_amd64.AppImage` | 80 MB |
|
||||
| Android | Universal APK | `app-universal-release.apk` | 44 MB |
|
||||
| Platform | Bundle | File on `releases.poli0981.dev/youtube-generator/<version>/` | Size |
|
||||
| -------- | ------------- | ------------------------------------------------------------ | ------ |
|
||||
| Windows | MSI | `YTDescGen_<version>_x64_en-US.msi` | 4.1 MB |
|
||||
| Windows | NSIS | `YTDescGen_<version>_x64-setup.exe` | 3.1 MB |
|
||||
| Linux | Debian | `YTDescGen_<version>_amd64.deb` | 5.3 MB |
|
||||
| Linux | RPM | `YTDescGen_<version>_x86_64.rpm` | 5.3 MB |
|
||||
| Linux | AppImage | `YTDescGen_<version>_amd64.AppImage` | 80 MB |
|
||||
| Android | Universal APK | `YTDescGen_<version>_universal.apk` | 44 MB |
|
||||
|
||||
### GitHub Actions Release
|
||||
Next to them: `SHA256SUMS`. The newest APK is also at `releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk` (a `-latest.` name, so Cloudflare does not cache it). Releases up to 1.6.0 were published on GitHub (including a macOS `YTDescGen_<version>_aarch64.app.tar.gz`), which went with the suspended account.
|
||||
|
||||
Pushing a `v*` tag (signed, e.g. `v1.0.0`) runs [.github/workflows/release-desktop.yml](../.github/workflows/release-desktop.yml) and [.github/workflows/release-android.yml](../.github/workflows/release-android.yml). Both start with a **`verify`** job, and their build jobs `needs: verify`:
|
||||
### The release workflow (Gitea Actions)
|
||||
|
||||
Pushing a `v*` tag (signed, e.g. `v1.7.0`) runs [.gitea/workflows/release.yml](../.gitea/workflows/release.yml) on the maintainer's PC (the Gitea runner). It starts with a **`verify`** job, and every build job `needs: verify`:
|
||||
|
||||
```yaml
|
||||
- run: npm ci # a clean install: package-manager-cache: false
|
||||
@@ -330,30 +331,28 @@ Pushing a `v*` tag (signed, e.g. `v1.0.0`) runs [.github/workflows/release-deskt
|
||||
|
||||
Release jobs use no dependency caches — a poisoned cache entry written by another workflow must not reach the binaries — and every action is pinned by commit SHA.
|
||||
|
||||
The desktop build is a three-platform matrix; `tauri-apps/tauri-action` builds each target and uploads its bundles to one **draft** GitHub Release named `YTDescGen vX.Y.Z`:
|
||||
| Job | Runner | Output |
|
||||
| ---------- | ------------------------------------------ | ------------------------------------------------------ |
|
||||
| `windows` | `windows-latest` (host mode on the PC) | `.msi`, `-setup.exe` (NSIS) |
|
||||
| `linux` | `ubuntu-22.04` (Docker; its glibc is the floor) | `.AppImage`, `.deb`, `.rpm` |
|
||||
| `android` | `ubuntu-latest` (Docker, SDK + NDK installed in the job) | universal `.apk`, signed |
|
||||
| `assemble` | `ubuntu-latest` | `SHA256SUMS`, the `-latest.apk` alias, the release notes |
|
||||
| `publish` | the ops repo's `publish-r2.yml` | uploads to R2: the versioned files first, the alias last |
|
||||
| `release` | `ubuntu-latest` | a **draft** Gitea release `YTDescGen vX.Y.Z` with the links |
|
||||
|
||||
| Runner | Target | Output |
|
||||
| ---------------- | -------------------------- | --------------------------- |
|
||||
| `windows-latest` | `x86_64-pc-windows-msvc` | `.msi`, `.exe` (NSIS) |
|
||||
| `macos-15` | `aarch64-apple-darwin` | `.app.tar.gz` |
|
||||
| `ubuntu-latest` | `x86_64-unknown-linux-gnu` | `.AppImage`, `.deb`, `.rpm` |
|
||||
The Linux job installs `libwebkit2gtk-4.1-dev`, `libgtk-3-dev`, `libayatana-appindicator3-dev`, `librsvg2-dev`, `patchelf` and `rpm` before building — Tauri's webview and bundling tooling need them. AppImage bundling runs with `APPIMAGE_EXTRACT_AND_RUN=1` (linuxdeploy needs FUSE, which a container doesn't have) and `NO_STRIP=true`.
|
||||
|
||||
Linux runners install `libwebkit2gtk-4.1-dev`, `libgtk-3-dev`, `libayatana-appindicator3-dev`, `librsvg2-dev` and `patchelf` before building — Tauri's webview and AppImage tooling need them. AppImage bundling runs with `APPIMAGE_EXTRACT_AND_RUN=1` (linuxdeploy needs FUSE, which hosted runners don't reliably provide) and `NO_STRIP=true`.
|
||||
**No macOS.** There is no macOS runner (ops decision D9): 1.6.0 was the last macOS build. A Mac install keeps working with the version it has.
|
||||
|
||||
`fail-fast: false` keeps the other platforms going if one breaks. The `bundleArgs` matrix field is concatenated with `--target ${{ matrix.target }}` and passed through to `tauri build`.
|
||||
**Where the files go.** Cloudflare R2, bucket `poli0981-releases`, public only through `https://releases.poli0981.dev/youtube-generator/` (no directory listing: link exact files). `publish-r2.yml` uploads with rclone `--immutable`, so an uploaded file is never replaced: a broken release ships as a new version. The R2 keys are user-level Actions secrets (`R2_RELEASES_ACCESS_KEY_ID`, `R2_RELEASES_SECRET_ACCESS_KEY`, variable `R2_ACCOUNT_ID`) and only reach the tag-triggered `publish` job. The Gitea release holds the notes and the links, never the binaries (the forge's disk is small).
|
||||
|
||||
**macOS notes (v0.9.1+):**
|
||||
**Code signing is intentionally skipped** for Windows (and was for macOS) — this is an open-source personal tool, and signing certificates carry recurring cost. End users will see the standard "unverified publisher" / "unidentified developer" prompts on first launch. Document the bypass steps in the release notes if needed. (The Android APK is signed — see below.)
|
||||
|
||||
- **DMG bundling is skipped** (`--bundles app`). Tauri's DMG bundler runs an AppleScript that flakes intermittently on hosted macOS runners (the headless display can't load Finder fast enough for `osascript` to position icons), so we ship a `.app.tar.gz` instead. Users expand the archive and drag the `.app` into `/Applications`.
|
||||
- **Intel macOS (`macos-13`) is NOT built.** GitHub started deprecating the `macos-13` free runner pool in 2025; jobs queue indefinitely. If Intel support becomes a priority, switch the macos-15 entry's target to `universal-apple-darwin` (Tauri builds both archs and lipos them into one universal binary) — the runner already has the toolchain capacity.
|
||||
**Release notes.** The `assemble` job writes the draft's body: a link to `CHANGELOG.md`, one link per file, the APK alias and the checksums. The maintainer checks the links (`curl -sI`), edits the notes if needed and publishes the draft in the Gitea UI. Publishing a draft the job token created fires no workflow, so then run **Actions › Announce Release to Discord › Run workflow** with the tag.
|
||||
|
||||
**Code signing is intentionally skipped** for both Windows and macOS — this is an open-source personal tool, and signing certificates carry recurring cost. End users will see the standard "unverified publisher" / "unidentified developer" prompts on first launch. Document the bypass steps in the release notes if needed. (The Android APK is signed — see below.)
|
||||
**Dry run:** Actions › Release › Run workflow on a branch (no tag) builds everything and keeps the files as the `r2-release` artifact for 7 days; `publish` and `release` skip (publish-r2 refuses a branch ref). Use it before a release that changes the build.
|
||||
|
||||
**Release notes.** tauri-action gives the draft a fixed body ("See the assets to download the installer for your platform."). `CHANGELOG.md` is hand-maintained and is the source for the notes; the maintainer smoke-tests the binaries and publishes the draft by hand. Publishing triggers `announce-release.yml` (the Announcements discussion and Discord).
|
||||
|
||||
**Manual re-run:** both workflows accept `workflow_dispatch` with a `tag` input — `gh workflow run release-desktop.yml -f tag=v1.0.0` rebuilds an existing release without deleting and recreating the tag. The manifests at that tag must already carry the version, or `verify` stops the run. Useful when a transient runner failure costs a single platform's binary.
|
||||
|
||||
**Backfill for pre-workflow tags:** `v0.8.0` and `v0.8.1` predate the multi-platform matrix and only have local Windows builds. To attach binaries retroactively, build manually then `gh release create v0.8.0 --notes-file CHANGELOG.md path/to/*.msi …`.
|
||||
**Older releases:** v0.x–v1.6.0 were GitHub Releases; their files went with the account. The tags are on Gitea.
|
||||
|
||||
## Android (.apk) Packaging
|
||||
|
||||
@@ -476,24 +475,24 @@ cargo tauri android build --apk
|
||||
- `cargo tauri android build --apk --target aarch64` builds an arm64-only APK (smaller download; covers virtually all modern phones).
|
||||
- The build runs `npm run build` first (the `beforeBuildCommand`), then Gradle. The first build takes several minutes (Rust × up to 4 ABIs + a cold Gradle).
|
||||
- For on-device iteration with hot reload: `cargo tauri android dev`.
|
||||
- With the npm CLI instead of the cargo one: `npm run tauri android build -- --apk`.
|
||||
- With the npm CLI instead of the cargo one: `npm run tauri android build -- --apk` (the Gradle build still calls `cargo tauri`, so the cargo CLI must be installed either way).
|
||||
|
||||
Install on a device: copy the APK over (or `adb install -r <apk>`) and enable
|
||||
"Install unknown apps" for the source app.
|
||||
|
||||
### CI
|
||||
|
||||
[.github/workflows/release-android.yml](../.github/workflows/release-android.yml)
|
||||
runs on a `v*` tag (or `workflow_dispatch` with a `tag`). After `verify`, the
|
||||
`build-android` job sets up JDK 17 (Temurin), the Android SDK, NDK
|
||||
`27.3.13750724`, the four Rust Android targets and the cargo Tauri CLI; decodes
|
||||
the keystore into `$RUNNER_TEMP`; writes `src-tauri/gen/android/keystore.properties`;
|
||||
and runs `cargo tauri android build --apk` with `NDK_HOME` pinned to that NDK.
|
||||
|
||||
The APK is kept as the workflow artifact `ytdescgen-android-apk`, then attached
|
||||
to the draft release with `gh release upload <tag> --clobber`. That upload needs
|
||||
the draft the desktop workflow creates; if the Android job gets there first,
|
||||
re-run it. It needs four repo secrets:
|
||||
The `android` job of [.gitea/workflows/release.yml](../.gitea/workflows/release.yml)
|
||||
(a `v*` tag, or a dry run by dispatch) sets up JDK 17 (Temurin), the Android SDK
|
||||
(`platform-tools`, then `ndk;27.3.13750724`, `build-tools;36.1.0` and
|
||||
`platforms;android-36` through `sdkmanager` — the runner image has no SDK), the
|
||||
four Rust Android targets and the cargo Tauri CLI at the npm CLI's version (the
|
||||
committed Gradle project calls `cargo tauri`); decodes the keystore into
|
||||
`$RUNNER_TEMP`; writes `src-tauri/gen/android/keystore.properties`; runs
|
||||
`cargo tauri android build --apk` with `NDK_HOME` pinned to that NDK; verifies the signature with `apksigner`; and
|
||||
removes the keystore and the properties file. The APK goes on as
|
||||
`YTDescGen_<version>_universal.apk`. It needs four repo secrets (only this job,
|
||||
which runs only for a tag or a dispatch, sees them):
|
||||
|
||||
| Secret | Value |
|
||||
| ------------------------- | --------------------------------------------------------- |
|
||||
@@ -511,7 +510,7 @@ re-run it. It needs four repo secrets:
|
||||
|
||||
## Updates
|
||||
|
||||
The app has no in-app updater: no updater plugin, no `updater` configuration, and it never checks for new versions. New versions are published as GitHub Releases; users download the installer or APK for their platform and install it over the existing app. User data is outside the installation — in the WebView storage and the app data directory described above — so it is kept. An Android update must be signed with the same keystore to install over an existing copy.
|
||||
The app has no in-app updater: no updater plugin, no `updater` configuration, and it never checks for new versions. New versions are published on the [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases), with the files on `releases.poli0981.dev/youtube-generator/<version>/`; users download the installer or APK for their platform and install it over the existing app. User data is outside the installation — in the WebView storage and the app data directory described above — so it is kept. An Android update must be signed with the same keystore to install over an existing copy.
|
||||
|
||||
## Offline Capability
|
||||
|
||||
|
||||
+7
-6
@@ -414,18 +414,19 @@ What 1.6.0 set up for it:
|
||||
- [x] **Issue forms**: the feature request form is gone; an Option request
|
||||
and a Translation or wording fix form joined Bug report and
|
||||
Accessibility barrier; a Scope checklist in the pull request template.
|
||||
- [x] **Auto-close**: `maintenance-triage.yml` closes, with a bilingual
|
||||
- [x] **Auto-close**: `maintenance-triage.yml` closed, with a bilingual
|
||||
comment and the `out-of-scope` label, feature issues and `feat:` pull
|
||||
requests from outside contributors (`feat(options)`, `feat(a11y)` and
|
||||
`feat(i18n)` stay open), and anything the maintainer labels
|
||||
`out-of-scope`.
|
||||
`feat(i18n)` stayed open). It went with the move to Gitea (v1.7.0):
|
||||
issues now arrive on the GitLab mirror, which Gitea Actions cannot see,
|
||||
and the maintainer closes out-of-scope ones by hand.
|
||||
- [x] **Qodana**: Qodana for JS and Qodana for Rust (Early Access) on every
|
||||
push and pull request, reported to Qodana Cloud, with a gate of zero
|
||||
problems.
|
||||
|
||||
Known maintenance already queued: the GitHub Pages moving notice comes down
|
||||
on 2026-11-29 (issue #177); i18next 27 and Tauri 3 arrive as planned major
|
||||
upgrades when they are ready.
|
||||
Known maintenance already queued: i18next 27 and Tauri 3 arrive as planned
|
||||
major upgrades when they are ready. (The GitHub Pages moving notice, due to come
|
||||
down on 2026-11-29, went with the GitHub account first.)
|
||||
|
||||
---
|
||||
|
||||
|
||||
+27
-28
@@ -107,10 +107,10 @@ Notes:
|
||||
- **UI stack**: React 19, React Router 7, Zustand 5, i18next 26 / react-i18next 17, Radix primitives through the single `radix-ui` package (Dialog, AlertDialog, Popover, Tooltip, Tabs, Switch, Checkbox, ToggleGroup, Slot), Motion (loaded through `LazyMotion`), cmdk for the command palette, sonner for toasts (react-hot-toast is gone), lucide-react 1.x for UI icons and simple-icons (CC0-1.0) for the brand marks lucide 1.x dropped.
|
||||
- **Tauri on the JavaScript side** is only `@tauri-apps/api` (for `invoke`) and `@tauri-apps/plugin-opener`. There are no dialog, fs or shell plugin packages: file access goes through the app's own Rust commands (see [PACKAGING.md](PACKAGING.md)). `@tauri-apps/cli` is pinned exactly, and `npm run check:tauri` keeps the npm packages on the same major.minor as the crates.
|
||||
- **Build-time only**: `marked` renders the legal documents and `@resvg/resvg-js` rasterises the brand assets; neither ships in the app. `wrangler` is pinned exactly for `cf:dev` / `cf:check`.
|
||||
- **i18next stays on 26.6.x** (`~26.6.0`, and a Dependabot ignore for 26.7.x): 26.7 adds the debug-mode warnings for the move to v27 — about 1.9 KB gzip that would take the initial load over its 280 KB budget. The tilde and the ignore go with the i18next 27 migration (`.github/dependabot.yml` has the note).
|
||||
- **i18next stays on 26.6.x** (`~26.6.0`, and `allowedVersions: "<26.7.0"` in `renovate.json`): 26.7 adds the debug-mode warnings for the move to v27 — about 1.9 KB gzip that would take the initial load over its 280 KB budget. The tilde and the rule go with the i18next 27 migration (`renovate.json` has the note).
|
||||
- **Fonts** are self-hosted: `@fontsource-variable/inter` and `@fontsource-variable/jetbrains-mono` are imported in `src/main.tsx`, and each subset (latin, latin-ext, vietnamese, …) is fetched only when a page uses it.
|
||||
- **TypeScript 7** checks types: `@typescript/native` is an npm alias for `typescript@7`, the native compiler, and supplies `tsc`. TypeScript 7.0 ships no JavaScript API, so `typescript` is an alias for `@typescript/typescript6` — the TypeScript 6.0 API that typescript-eslint loads (its peer range stops below 6.1), plus `tsc6`. Both are Microsoft's documented side-by-side setup. `@typescript/typescript6` pulls TypeScript 6 in as `@typescript/old`, which ships a `tsc` too; CI fails if the `tsc` on `PATH` is not 7.x. Dependabot may not follow `npm:` aliases, so TypeScript bumps can be manual.
|
||||
- **Node 26** comes from `.node-version`, which CI, the release workflows and Cloudflare Workers Builds all read; `engines.node` says `>=26`. Vitest runs its workers with `--no-experimental-webstorage`: Node 25+ defines a `localStorage` global that is `undefined` without `--localstorage-file`, and zustand's `persist` crashes on it instead of falling back to memory.
|
||||
- **TypeScript 7** checks types: `@typescript/native` is an npm alias for `typescript@7`, the native compiler, and supplies `tsc`. TypeScript 7.0 ships no JavaScript API, so `typescript` is an alias for `@typescript/typescript6` — the TypeScript 6.0 API that typescript-eslint loads (its peer range stops below 6.1), plus `tsc6`. Both are Microsoft's documented side-by-side setup. `@typescript/typescript6` pulls TypeScript 6 in as `@typescript/old`, which ships a `tsc` too; CI fails if the `tsc` on `PATH` is not 7.x. Renovate leaves the aliases' majors to the maintainer (`renovate.json`), so TypeScript majors are bumped by hand.
|
||||
- **Node 26** comes from `.node-version`, which CI, the release workflow and the deploy job all read; `engines.node` says `>=26`. Vitest runs its workers with `--no-experimental-webstorage`: Node 25+ defines a `localStorage` global that is `undefined` without `--localstorage-file`, and zustand's `persist` crashes on it instead of falling back to memory.
|
||||
- **Installs skip lifecycle scripts** in every workflow (`npm ci --ignore-scripts`). The three packages that have one — esbuild, workerd, fsevents — take their native binary from `optionalDependencies`.
|
||||
|
||||
### tsconfig.json
|
||||
@@ -276,7 +276,7 @@ Components use the tokens (`bg-surface-1`, `text-text-muted`, `rounded-card`,
|
||||
|
||||
### wrangler.jsonc
|
||||
|
||||
The only Cloudflare file in the repository; Workers Builds runs `npx wrangler deploy` on every push to `main`. Its settings, without the file's comments:
|
||||
The only Cloudflare file in the repository; the `deploy` job of `.gitea/workflows/ci.yml` runs `wrangler deploy` after every green push to `main`. Its settings, without the file's comments:
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -590,19 +590,20 @@ An unknown version is read as 0: every migration step is idempotent, so running
|
||||
|
||||
`auto-backup.ts` writes `ytdescgen-backup-YYYYMMDD-HHmm.json` through the `backup_write` command into `<app data>/backups/`: 5 s after start, then 30 s after the last change to profiles, presets, templates, history or settings, at most once every 10 minutes. It skips a write when the data is identical to the last backup (FNV-1a hash of `data`, seeded from the newest backup on start) or when the library (profiles, presets, templates, history) is empty, so a run of empty backups can never push the good ones out. The draft is included but does not trigger a backup. **Back up now** in Settings and the backup before a restore (`…-before-restore.json`) use the same folder and name pattern. The Rust side writes atomically (temporary file + rename) and keeps the newest ten `ytdescgen-backup-*` files; any other name, such as a recovered `ytdescgen-legacy-data.json`, is never deleted automatically.
|
||||
|
||||
## 5. GitHub Actions
|
||||
## 5. CI (Gitea Actions)
|
||||
|
||||
| Workflow | Runs on | Jobs |
|
||||
| ------------------------------------------------------ | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `ci.yml` (CI) | PRs to and pushes on `main` | `check` — the required status on `main`; `sonarcloud` — the SonarCloud scan with `check`'s coverage (pushes on `main`, PRs from this repository except Dependabot's) |
|
||||
| `security.yml` (Security) | PRs, pushes on `main`, weekly, manual | `dependency-review` (PRs: fails on a newly added high/critical advisory), `workflow-lint` (actionlint + zizmor, `.github/zizmor.yml`), `scorecard` (OpenSSF Scorecard, informational; not on PRs) |
|
||||
| `compliance.yml` (Compliance) | PRs, pushes on `main` | `reuse` (REUSE licensing via `REUSE.toml`), `pr-title` (Conventional-Commit PR titles with a lower-case subject) |
|
||||
| `rust.yml` (Rust) | Changes under `src-tauri/`, weekly, manual | `lint-and-test` (`cargo fmt --all -- --check`, `cargo clippy --all-targets --locked -- -D warnings`, `cargo test --locked`, after `npm run build` because `generate_context!` embeds `dist/`), `cargo-deny` (`check advisories licenses sources`, `src-tauri/deny.toml`) |
|
||||
| `qodana.yml` (Qodana) | PRs to and pushes on `main`, manual | `typescript` — Qodana for JS in native mode (`qodana.yaml`); `rust` — Qodana for Rust, Early Access, in Docker (`src-tauri/qodana.yaml`); both skip without their token (Dependabot and fork PRs) |
|
||||
| `release-desktop.yml`, `release-android.yml` | `v*` tags, manual with a `tag` input | `verify`, then the builds — see [PACKAGING.md](PACKAGING.md) |
|
||||
| `announce-release.yml` | Release published, manual | Links the release to an Announcements discussion and posts to Discord |
|
||||
| `notify-ci-failure.yml`, `notify-release-pipeline.yml` | `workflow_run` | Discord notifications through the maintainer's shared workflows |
|
||||
| `pages-migration.yml` | Manual only | Publishes `migration-page/` to the old GitHub Pages address until 2026-11-29 |
|
||||
The workflows are in `.gitea/workflows/` and run on Gitea Actions (since November 2026; GitHub Actions before the account was suspended). The runner is the maintainer's PC: `windows-latest` jobs run on the host, `ubuntu-*` jobs in Docker (`docker.gitea.com/runner-images`); scheduled runs sit inside 13:00–16:00 UTC, the hours the PC is on. The shared workflows come from the ops repository `poli0981/.github`, pinned to a tag's commit (v2026.11.4).
|
||||
|
||||
| Workflow | Runs on | Jobs |
|
||||
| ------------------------------------------------------ | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `ci.yml` (CI) | PRs to and pushes on `main` | `check` — the required status on `main`; `deploy` — `wrangler deploy` to production after `check`, pushes on `main` only |
|
||||
| `security.yml` (Security) | PRs, pushes on `main`, weekly (Wed), manual | `workflow-lint` (actionlint + shellcheck, zizmor offline, `.github/actionlint.yaml` / `.github/zizmor.yml`); `scan` — the ops `security.yml`: gitleaks (full history), Opengrep, osv-scanner (`osv-scanner.toml` exceptions), cargo-deny (`src-tauri/deny.toml`) |
|
||||
| `compliance.yml` (Compliance) | PRs, pushes on `main` | `reuse` (REUSE licensing via `REUSE.toml`), `pr-title` (Conventional-Commit PR titles with a lower-case subject, read from the event payload) |
|
||||
| `rust.yml` (Rust) | Changes under `src-tauri/`, weekly (Mon), manual | `lint-and-test` (`cargo fmt --all -- --check`, `cargo clippy --all-targets --locked -- -D warnings`, `cargo test --locked`, after `npm run build` because `generate_context!` embeds `dist/`) |
|
||||
| `qodana.yml` (Qodana) | PRs to and pushes on `main`, manual | `typescript` — Qodana for JS in native mode (`qodana.yaml`); `rust` — Qodana for Rust, Early Access, in Docker Desktop on the runner PC (`src-tauri/qodana.yaml`); both through the ops `reusable-qodana.yml`, both skip without their token |
|
||||
| `release.yml` (Release) | `v*` tags; manual = dry run | `verify`, the Windows / Linux / Android builds, `assemble`, `publish` (R2), `release` (draft) — see [PACKAGING.md](PACKAGING.md) |
|
||||
| `announce-release.yml` | Release published, manual with a `tag` | Posts the release to Discord through the ops workflow (run it by hand after publishing a draft CI created) |
|
||||
| `notify-ci-failure.yml`, `notify-release-pipeline.yml` | `workflow_run` | Discord notifications through the ops repo's shared workflows |
|
||||
|
||||
The `check` job, in order:
|
||||
|
||||
@@ -614,7 +615,6 @@ The `check` job, in order:
|
||||
- run: npm run lint
|
||||
- run: npm run validate:locales
|
||||
- run: npm run test:coverage # thresholds in vitest.config.ts
|
||||
- uses: actions/upload-artifact # coverage/lcov.info, for the sonarcloud job
|
||||
# consistency
|
||||
- run: npm run format:check
|
||||
- run: npm run knip
|
||||
@@ -632,24 +632,23 @@ The `check` job, in order:
|
||||
- run: npm run cf:check # wrangler deploy --dry-run
|
||||
```
|
||||
|
||||
Then `sonarcloud` (after `check` succeeds):
|
||||
Then `deploy` (pushes on `main`, after `check` succeeds):
|
||||
|
||||
```yaml
|
||||
- uses: actions/checkout # fetch-depth: 0 — new code is told from old by git blame
|
||||
- uses: actions/download-artifact # the coverage report from check
|
||||
- run: jq -r .version package.json # → sonar.projectVersion
|
||||
- uses: SonarSource/sonarqube-scan-action # SONAR_TOKEN, sonar-project.properties
|
||||
- run: npm ci --ignore-scripts # a clean install, no dependency cache
|
||||
- run: npx wrangler deploy # build.command runs npm run build; CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID
|
||||
- run: curl https://ytgenerator.stream/assets/<the new entry chunk> # until it answers 200
|
||||
```
|
||||
|
||||
- **Bundle budget** (`scripts/check-bundle-size.ts`): the initial load is every script, modulepreload and stylesheet `dist/index.html` references, summed gzip — lazy chunks (pages, locales, legal documents) are excluded. The result is printed as a table and added to the job summary.
|
||||
- **Licences** (`scripts/lib/third-party.ts`): every package bundled into the app must carry an allowed licence (MIT, ISC, Apache-2.0, BSD-2/3-Clause, 0BSD, CC0-1.0, Unlicense, BlueOak-1.0.0, OFL-1.1, Zlib, MPL-2.0), and `THIRD_PARTY_NOTICES.md` is generated (`npm run generate:third-party`) and checked, not hand-written.
|
||||
- **Copyright years** (`scripts/lib/copyright.ts`, v1.1.0): NOTICE, REUSE.toml and `bundle.copyright` in `tauri.conf.json` must state `copyrightYears(<year of HEAD's commit>)` from `src/config/brand.ts` — "2026", then "2026-2027" from the first commit of 2027. The commit year rather than the clock keeps old commits green; `npm run update:copyright` rewrites the three files. The `/legal` pages' footer uses the same helper at build time.
|
||||
- **Wrangler dry run** validates `wrangler.jsonc` and bundles the Worker exactly as Workers Builds will, without deploying.
|
||||
- **SonarCloud** (CI-based; Automatic Analysis is off in the project's settings): `sonar-project.properties` makes the whole repository main code except the tests (`tests/**` and any `src/**/*.test.ts(x)`, analysed as tests) and the binary files (icons, the Gradle wrapper's jar), imports `coverage/lcov.info` and excludes from coverage everything Vitest does not measure (see [Testing Strategy](#6-testing-strategy)). The scan waits for the quality gate — Sonar way: A security, reliability and maintainability ratings, every security hotspot reviewed, ≤ 3 % duplication and ≥ 80 % coverage on new code — and fails the job when it fails. New code is "since the previous version": the job reads `package.json`'s version into `sonar.projectVersion`, so every release starts a new period. The scan runs in a job of its own so that `SONAR_TOKEN` never shares a job with npm packages. PRs from forks and from Dependabot get no repository secrets and skip it; the condition checks the PR author, not `github.actor` (zizmor's `bot-conditions`).
|
||||
- **Qodana** (v1.6.0; JetBrains, Ultimate licence — the account runs the trial): `qodana.yml` runs Qodana for JS in native mode, on the runner's Node 26 and `node_modules` (`qodana.yaml`), and Qodana for Rust (Early Access, Docker only) on `src-tauri/` (`src-tauri/qodana.yaml`: its `bootstrap` installs the packages `rust.yml` installs, and a stand-in `dist/index.html` lets `generate_context!` expand). Both use the `qodana.recommended` profile and a quality gate of zero problems; every exclusion in a `qodana.yaml` says why. Every run analyses the whole project (`pr-mode: false`). Results go to Qodana Cloud (projects `yt-ts-js` and `yt-rust`), the run's annotations and the `qodana-report-*` artifacts — no PR comment. A `tokens` job checks for `QODANA_TOKEN_TS_JS` and `QODANA_TOKEN_RUST`, which Dependabot and fork PRs don't get, so the analysis is skipped there; the token reaches only the scan step, never the `npm ci` one. Not a required check. When the licence lapses, both jobs fail at the licence check.
|
||||
- Every workflow declares least-privilege `permissions`, checks out with `persist-credentials: false`, and pins actions by commit SHA (Dependabot keeps the SHAs and version comments current). The exceptions are the actionlint Docker image (pinned by version tag) and the maintainer's own `poli0981/.github` reusable workflows (tracked at `main`, allowed in `.github/zizmor.yml`). CI, Security, Compliance, Rust and Qodana cancel superseded runs through a `concurrency` group, except on `main`, where each commit's result is a record the release process reads back.
|
||||
- **Wrangler dry run** validates `wrangler.jsonc` and bundles the Worker exactly as `deploy` will, without deploying.
|
||||
- **Security scan** (the ops `security.yml`): gitleaks over the whole history, Opengrep (SAST, report only), osv-scanner over `package-lock.json` and `src-tauri/Cargo.lock`, cargo-deny (advisories, licences, sources). Reports are artifacts (Gitea has no code-scanning UI). An advisory no release fixes yet is listed with its reason and an expiry date in `osv-scanner.toml` next to the lockfile, and for crates in `src-tauri/deny.toml` too. SonarCloud, which ran here until v1.6.0, was dropped with the move (ops decision D1).
|
||||
- **Qodana** (v1.6.0; JetBrains, Ultimate licence — the account runs the trial): `qodana.yml` calls the ops `reusable-qodana.yml` (the Qodana CLI) twice: Qodana for JS in native mode, on the runner's Node 26 and `node_modules` (`qodana.yaml`), and Qodana for Rust (Early Access, Docker only, so `windows-latest` + Docker Desktop on the runner PC) on `src-tauri/` (`src-tauri/qodana.yaml`: its `bootstrap` pins the image's dhi.io apt repository and installs the packages `rust.yml` installs, a stand-in `dist/index.html` lets `generate_context!` expand, and the project gets 25 minutes to open). Both use the `qodana.recommended` profile and a quality gate of zero problems; every exclusion in a `qodana.yaml` says why. Results go to Qodana Cloud (projects `yt-ts-js` and `yt-rust`) and the `qodana-report-*` artifacts. A `tokens` job checks for `QODANA_TOKEN_TS_JS` and `QODANA_TOKEN_RUST`; without one that analysis is skipped. Not a required check. When the licence lapses, both jobs fail at the licence check.
|
||||
- Every workflow declares least-privilege `permissions`, checks out with `persist-credentials: false`, and pins actions by commit SHA (Renovate keeps the SHAs and version comments current); calls into the ops repo are pinned to a tag's commit too (bumped by hand). Linting tools are pinned binaries with SHA-256 checks or come from the hash-locked `.github/requirements-ci.txt`. CI, Security, Compliance, Rust and Qodana cancel superseded runs through a `concurrency` group, except on `main`, where every run deploys or is a record.
|
||||
|
||||
**Web deployment is not a GitHub workflow.** Cloudflare Workers Builds builds and deploys the Worker and `dist/` on every push to `main` (preview versions for other branches). The old `deploy-web.yml` (GitHub Pages) is gone; `pages-migration.yml` only serves the moving notice, which hands visitors the data their browser saved on the old address as a `_format: 2` backup file. See [HOSTING.md](HOSTING.md).
|
||||
**Web deployment** is the `deploy` job of `ci.yml` (`wrangler deploy` with the user-level secrets `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`). Cloudflare Workers Builds deployed from GitHub until November 2026; the GitHub Pages notice and its `pages-migration.yml` went with the account. See [HOSTING.md](HOSTING.md).
|
||||
|
||||
**Why these gates exist (v0.35.0).** Several gates were installed and configured long before they ran: `knip` had a `knip.json`, Prettier had a config and a `format` script. Turning them on found real problems at once — most notably that `tsconfig.json` covers only `src/`, so `tests/` and `scripts/` had never been type-checked, which hid three fields missing from the editor → engine parity fixture.
|
||||
|
||||
@@ -697,7 +696,7 @@ describe("buildTitle", () => {
|
||||
});
|
||||
```
|
||||
|
||||
`npm run test:coverage` (what CI runs) measures the logic layers with V8 — `src/engine/**`, `src/config/**`, `src/store/**`, `src/utils/**`, `worker/**` (except `worker/index.ts`, the runtime wiring) and `build-plugins/**` — and writes `coverage/lcov.info` for SonarCloud. Components, pages and hooks are checked in the running app, `src/i18n` is i18next set-up and `scripts/` is tooling; SonarCloud would count a file missing from the report as 0 % covered, so `sonar.coverage.exclusions` lists all of them, and a new source folder goes into one list or the other. The run fails below these thresholds — the engine is what the whole app trusts, the Worker is what guards the site:
|
||||
`npm run test:coverage` (what CI runs) measures the logic layers with V8 — `src/engine/**`, `src/config/**`, `src/store/**`, `src/utils/**`, `worker/**` (except `worker/index.ts`, the runtime wiring) and `build-plugins/**` — the layers the unit tests are for. Components, pages and hooks are checked in the running app, `src/i18n` is i18next set-up and `scripts/` is tooling. The run fails below these thresholds — the engine is what the whole app trusts, the Worker is what guards the site:
|
||||
|
||||
| Scope | Statements | Branches | Functions | Lines |
|
||||
| ----------------------------------------- | ---------- | -------- | --------- | ----- |
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
> **Lưu ý dịch thuật:** Tiếng Anh là phiên bản chính ([`ACCESSIBILITY.md` ở root](../../../ACCESSIBILITY.md)). Bản tiếng Việt này có thể chậm cập nhật một vài commit.
|
||||
|
||||
**Cập nhật lần cuối:** 2026-11-09
|
||||
**Cập nhật lần cuối:** 2026-11-25
|
||||
|
||||
YTDescGen hướng tới việc ai làm video cũng dùng được, kể cả người dùng bàn phím thay chuột, trình đọc màn hình, phóng to hoặc kính lúp, chế độ tương phản cao, điều khiển bằng giọng nói hay màn hình cảm ứng. Văn bản này nói rõ những gì đang hoạt động, cách kiểm tra, những gì chưa ổn, và cách báo cho chúng tôi khi bạn gặp rào cản.
|
||||
|
||||
Văn bản áp dụng cho trang web [ytgenerator.stream](https://ytgenerator.stream), ứng dụng desktop (Windows, macOS, Linux) và ứng dụng Android. Các bản này dùng chung một giao diện, nên mọi điều dưới đây áp dụng cho tất cả, trừ khi có nêu tên nền tảng.
|
||||
Văn bản áp dụng cho trang web [ytgenerator.stream](https://ytgenerator.stream), ứng dụng desktop (Windows và Linux; bản macOS đến 1.6.0, phiên bản cuối cùng được build cho macOS) và ứng dụng Android. Các bản này dùng chung một giao diện, nên mọi điều dưới đây áp dụng cho tất cả, trừ khi có nêu tên nền tảng.
|
||||
|
||||
## Mục tiêu
|
||||
|
||||
@@ -88,7 +88,7 @@ Chúng tôi hướng tới [WCAG 2.2](https://www.w3.org/TR/WCAG22/) mức **AA*
|
||||
|
||||
Nếu có điều gì trong YTDescGen cản trở bạn, hãy cho chúng tôi biết. Bạn không cần biết nguyên nhân kỹ thuật.
|
||||
|
||||
- **Nên dùng:** mở một [issue về khả năng tiếp cận](https://github.com/poli0981/youtube-generator/issues/new?template=accessibility.yml). Biểu mẫu sẽ hỏi nền tảng, công nghệ hỗ trợ bạn dùng và chuyện gì đã xảy ra.
|
||||
- **Nên dùng:** mở một [issue về khả năng tiếp cận](https://gitlab.com/poli0981/youtube-generator/-/issues/new?issuable_template=Accessibility) trên bản mirror GitLab (nơi nhận issue của dự án từ tháng 11/2026). Mẫu sẽ hỏi nền tảng, công nghệ hỗ trợ bạn dùng và chuyện gì đã xảy ra.
|
||||
- **Không muốn đăng công khai?** Gửi email tới **contact@poli0981.dev**, tiêu đề bắt đầu bằng `[Accessibility]`.
|
||||
- **Câu hỏi nhanh?** Hỏi trên [Discord](https://discord.gg/kDM9GMu5vm).
|
||||
|
||||
@@ -126,4 +126,4 @@ Mẫu pull request có cùng danh sách kiểm tra này.
|
||||
|
||||
## Góp ý cho văn bản này
|
||||
|
||||
Mọi ý tưởng để cải thiện văn bản này hay cách xử lý khả năng tiếp cận đều được hoan nghênh trên [GitHub Discussions](https://github.com/poli0981/youtube-generator/discussions). Còn rào cản thì hãy báo qua [quy trình báo lỗi](#báo-một-rào-cản) để được theo dõi.
|
||||
Mọi ý tưởng để cải thiện văn bản này hay cách xử lý khả năng tiếp cận đều được hoan nghênh qua một [issue trên bản mirror GitLab](https://gitlab.com/poli0981/youtube-generator/-/issues) hoặc email tới **contact@poli0981.dev**. Còn rào cản thì hãy báo qua [quy trình báo lỗi](#báo-một-rào-cản) để được theo dõi.
|
||||
+12
-10
@@ -25,7 +25,7 @@ Cài theo thứ tự:
|
||||
|
||||
| Công cụ | Phiên bản | Lý do |
|
||||
| ----------------------- | --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **Node.js** | **26** — đúng phiên bản trong `.node-version` | CI, các workflow release và Cloudflare Workers Builds đều đọc `.node-version`, và `package.json` khai báo `engines.node >= 26`. Dùng [nvm](https://github.com/nvm-sh/nvm) hoặc [fnm](https://github.com/Schniz/fnm) (fnm đọc được `.node-version`). |
|
||||
| **Node.js** | **26** — đúng phiên bản trong `.node-version` | CI, workflow release và job deploy đều đọc `.node-version`, và `package.json` khai báo `engines.node >= 26`. Dùng [nvm](https://github.com/nvm-sh/nvm) hoặc [fnm](https://github.com/Schniz/fnm) (fnm đọc được `.node-version`). |
|
||||
| **npm** | 11, đi kèm Node 26 | Dự án dùng npm; `pnpm` và `yarn` chưa test. |
|
||||
| **Rust** | stable, `>= 1.90` | Bắt buộc cho bản build Tauri desktop và Android (Tauri 2.12 cần Rust 1.90). Cài qua [rustup](https://rustup.rs/); profile mặc định đã có sẵn `rustfmt` và `clippy`. |
|
||||
| **Python** | `3.12` | Tùy chọn — chỉ cần cho một số tooling Tauri trên Windows. |
|
||||
@@ -70,7 +70,7 @@ Extension đề xuất (không có `.vscode/extensions.json` được commit —
|
||||
|
||||
```bash
|
||||
# 1. Clone
|
||||
git clone https://github.com/poli0981/youtube-generator.git
|
||||
git clone https://git.poli0981.dev/poli0981/youtube-generator.git
|
||||
cd youtube-generator
|
||||
|
||||
# 2. Cài web dependencies
|
||||
@@ -85,11 +85,13 @@ Dev server chỉ chạy riêng app: không có cổng Turnstile, không có anal
|
||||
|
||||
## Nhánh và Pull Request
|
||||
|
||||
- Tạo nhánh từ `main` (`feat/…`, `fix/…`, `docs/…`, `chore/…`) và mở pull request vào `main`. Không có nhánh dài hạn nào khác, và mỗi lần merge vào `main` đều deploy bản web.
|
||||
Repo nằm trên Gitea ([`git.poli0981.dev/poli0981/youtube-generator`](https://git.poli0981.dev/poli0981/youtube-generator)); người ngoài mở issue và merge request trên bản mirror GitLab ([`gitlab.com/poli0981/youtube-generator`](https://gitlab.com/poli0981/youtube-generator)) hoặc gửi patch tới `code@poli0981.dev`. CI là Gitea Actions (`.gitea/workflows/`), chạy bằng runner trên máy của maintainer.
|
||||
|
||||
- Tạo nhánh từ `main` (`feat/…`, `fix/…`, `docs/…`, `chore/…`) và mở pull request vào `main`. Không có nhánh dài hạn nào khác, và mỗi lần merge vào `main` đều deploy bản web (job `deploy` của `ci.yml`).
|
||||
- Tiêu đề PR theo định dạng commit `type(scope): message`; CI có kiểm tra.
|
||||
- Mỗi PR đều chạy job `check` (xem bên dưới), `dependency-review`, `workflow-lint`, `reuse` và `pr-title`; hai job Rust `lint-and-test` và `cargo-deny` chạy khi có thay đổi trong `src-tauri/`.
|
||||
- Sau `check`, job `sonarcloud` gửi mã nguồn và báo cáo coverage lên [SonarCloud](https://sonarcloud.io/project/overview?id=poli0981_youtube-generator) (cấu hình trong `sonar-project.properties`) và fail khi quality gate fail: code mới phải đạt hạng A, mọi security hotspot đã được review, trùng lặp tối đa 3 % và coverage tối thiểu 80 %. PR từ fork và từ Dependabot bỏ qua job này — chúng không có `SONAR_TOKEN` — còn `main` được phân tích sau mỗi lần merge.
|
||||
- Workflow `Qodana` chạy JetBrains [Qodana](https://www.jetbrains.com/qodana/) trên mọi PR và mọi lần push vào `main`: Qodana for JS cho cả repo (`qodana.yaml`) và Qodana for Rust cho `src-tauri/` (`src-tauri/qodana.yaml`). Cả hai fail khi có bất kỳ lỗi nào. Giống SonarCloud, PR từ fork và từ Dependabot bỏ qua phân tích vì không có token Qodana. Đây không phải check bắt buộc.
|
||||
- Mỗi PR đều chạy job `check` (xem bên dưới), `workflow-lint` (actionlint, zizmor), `reuse`, `pr-title` và bộ quét bảo mật dùng chung (gitleaks, Opengrep, osv-scanner, cargo-deny); job Rust `lint-and-test` chạy khi có thay đổi trong `src-tauri/`.
|
||||
- Workflow `Qodana` chạy JetBrains [Qodana](https://www.jetbrains.com/qodana/) trên mọi PR và mọi lần push vào `main`: Qodana for JS cho cả repo (`qodana.yaml`) và Qodana for Rust cho `src-tauri/` (`src-tauri/qodana.yaml`, chạy trong Docker trên máy runner). Cả hai fail khi có bất kỳ lỗi nào. Đây không phải check bắt buộc.
|
||||
- Cập nhật dependency do Renovate lo (`renovate.json`), gộp nhóm, sau khi bản mới ra được 3 ngày.
|
||||
|
||||
Quy định đầy đủ: [CONTRIBUTING.md](../../../CONTRIBUTING.md).
|
||||
|
||||
@@ -119,13 +121,13 @@ Quy định đầy đủ: [CONTRIBUTING.md](../../../CONTRIBUTING.md).
|
||||
| `npm run validate:locales` | Bắt buộc cả 8 locale khớp chính xác với `_schema.json`. **Phải pass trước khi merge PR động đến locale.** |
|
||||
| `npm run test` | Vitest chế độ watch. |
|
||||
| `npm run test:run` | Vitest chạy một lần. |
|
||||
| `npm run test:coverage` | Chạy một lần kèm báo cáo coverage vào `coverage/` — các tầng logic, SonarCloud đọc `lcov.info`; fail nếu thấp hơn ngưỡng đặt cho `src/engine/` và `worker/` trong `vitest.config.ts`. CI chạy lệnh này. |
|
||||
| `npm run test:coverage` | Chạy một lần kèm báo cáo coverage vào `coverage/` — các tầng logic; fail nếu thấp hơn ngưỡng đặt cho `src/engine/` và `worker/` trong `vitest.config.ts`. CI chạy lệnh này. |
|
||||
| `npm run check:version` | Kiểm tra cả **sáu** trường version khớp nhau (`package.json`, hai chỗ trong `package-lock.json`, `tauri.conf.json`, `Cargo.toml`, `Cargo.lock`). Đây là thứ duy nhất phát hiện khi bỏ sót một chỗ. |
|
||||
| `npm run check:tauri` | Các package npm `@tauri-apps/*` và các crate Tauri phải cùng major.minor. Tauri CLI sẽ từ chối build nếu lệch, mà CI thì không chạy build Tauri. |
|
||||
| `npm run check:licenses` | Mọi package được bundle đều có license nằm trong danh sách cho phép, và `THIRD_PARTY_NOTICES.md` khớp với những gì đang cài. |
|
||||
| `npm run check:copyright` | NOTICE, REUSE.toml và chuỗi copyright của bộ cài (`tauri.conf.json`) phải ghi đúng năm theo năm của commit HEAD — "2026", rồi "2026-2027" từ commit đầu tiên của năm 2027. Gate của CI (v1.1.0). |
|
||||
| `npm run check:bundle` | Chạy sau `npm run build`: lần tải đầu phải ≤ 280 KB gzip và không chunk JS nào vượt 500 KB (chưa nén). |
|
||||
| `npm run cf:check` | `wrangler deploy --dry-run`: kiểm tra `wrangler.jsonc` và bundle Worker y như Workers Builds sẽ làm, nhưng không deploy. |
|
||||
| `npm run cf:check` | `wrangler deploy --dry-run`: kiểm tra `wrangler.jsonc` và bundle Worker y như job deploy sẽ làm, nhưng không deploy. |
|
||||
|
||||
### Sinh file
|
||||
|
||||
@@ -178,7 +180,7 @@ Xem [PACKAGING.md](../../PACKAGING.md) cho pipeline release đầy đủ. Build
|
||||
```bash
|
||||
npm run tauri:build
|
||||
# Output: src-tauri/target/release/bundle/
|
||||
# Windows: bộ cài MSI + NSIS · Linux: deb, rpm, AppImage · macOS: .app + DMG
|
||||
# Windows: bộ cài MSI + NSIS · Linux: deb, rpm, AppImage · macOS (chỉ build tại máy, không phát hành): .app + DMG
|
||||
```
|
||||
|
||||
Build đầu tiên mất khoảng 5–10 phút (Cargo cache rỗng). Build sau đó là incremental.
|
||||
@@ -187,7 +189,7 @@ Vite dev server không theo dõi `src-tauri/**` và `.wrangler/**` (`server.watc
|
||||
|
||||
### Kiểm tra Rust
|
||||
|
||||
Giống các bước của job `lint-and-test` trong `.github/workflows/rust.yml` (chạy khi `src-tauri/` thay đổi, và hằng tuần):
|
||||
Giống các bước của job `lint-and-test` trong `.gitea/workflows/rust.yml` (chạy khi `src-tauri/` thay đổi, và hằng tuần):
|
||||
|
||||
```bash
|
||||
npm run build # tauri::generate_context!() nhúng dist/, nên clippy và test cần có bản build
|
||||
|
||||
@@ -13,7 +13,7 @@ Tuyên bố này áp dụng cho:
|
||||
- Mã nguồn trong `src/` và `src-tauri/`.
|
||||
- Tài liệu trong `docs/` và các file markdown ở root.
|
||||
- File locale trong `src/i18n/locales/`.
|
||||
- Workflow CI/CD trong `.github/workflows/`.
|
||||
- Workflow CI/CD trong `.gitea/workflows/`.
|
||||
- Cloudflare Worker trong `worker/` và các build plugin trong `build-plugins/`.
|
||||
|
||||
Xem thêm: [`THIRD_PARTY_NOTICES.md`](../../../THIRD_PARTY_NOTICES.md) § "AI-assisted development".
|
||||
|
||||
+2
-2
@@ -55,7 +55,7 @@
|
||||
"alternateName": "YouTube Description Generator",
|
||||
"url": "https://ytgenerator.stream/",
|
||||
"applicationCategory": "MultimediaApplication",
|
||||
"operatingSystem": "Web, Windows, macOS, Linux, Android",
|
||||
"operatingSystem": "Web, Windows, Linux, Android",
|
||||
"description": "Generate YouTube titles, descriptions, and tags for Gameplay No Commentary channels — eight languages, reusable profiles and presets, on the web or as a desktop and Android app.",
|
||||
"inLanguage": ["en", "vi", "ja", "es", "ko", "zh", "pt-BR", "id"],
|
||||
"offers": {
|
||||
@@ -68,7 +68,7 @@
|
||||
"name": "SkullMute",
|
||||
"url": "https://poli0981.dev/"
|
||||
},
|
||||
"license": "https://github.com/poli0981/youtube-generator/blob/main/LICENSE"
|
||||
"license": "https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/LICENSE"
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="noindex" />
|
||||
<meta name="color-scheme" content="dark light" />
|
||||
<title>YTDescGen has moved to ytgenerator.stream</title>
|
||||
<meta
|
||||
name="description"
|
||||
content="YTDescGen now lives at ytgenerator.stream. Download the data you saved here and restore it there."
|
||||
/>
|
||||
<link rel="canonical" href="https://ytgenerator.stream/" />
|
||||
<link rel="stylesheet" href="/youtube-generator/style.css" />
|
||||
<script src="/youtube-generator/app.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<main class="card">
|
||||
<p class="brand">YTDescGen</p>
|
||||
<h1 data-i18n="title">YTDescGen has moved to ytgenerator.stream</h1>
|
||||
<p data-i18n="lead">
|
||||
The app now lives at its own address. Everything you saved on this old address — profiles,
|
||||
presets, templates, history, settings — stays in this browser, so bring it along in two
|
||||
steps.
|
||||
</p>
|
||||
|
||||
<ol class="steps">
|
||||
<li>
|
||||
<strong data-i18n="step1">Download your data</strong>
|
||||
<p id="found" class="muted" data-i18n="searching">Looking for saved data…</p>
|
||||
<button id="download" type="button" disabled data-i18n="download">
|
||||
Download my data
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<strong data-i18n="step2">Restore it on the new site</strong>
|
||||
<p class="muted" data-i18n="step2Hint">
|
||||
Open Settings › Backup & restore, choose Restore and pick the file — or drop it
|
||||
there. You'll see what's new before anything changes.
|
||||
</p>
|
||||
<a class="button primary" href="https://ytgenerator.stream/settings" data-i18n="open">
|
||||
Open ytgenerator.stream
|
||||
</a>
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<p class="muted small" data-i18n="notice">
|
||||
This page stays until 29 November 2026. The desktop and Android apps aren't affected.
|
||||
</p>
|
||||
<p class="small">
|
||||
<button id="language" type="button" class="link" data-i18n="switch">Tiếng Việt</button>
|
||||
</p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,173 +0,0 @@
|
||||
// YTDescGen moved from poli0981.github.io/youtube-generator to
|
||||
// ytgenerator.stream. Browser storage belongs to a site, so data saved on the
|
||||
// old address can't follow on its own: this page reads it and hands it over
|
||||
// as a backup file (the format the new site's Settings › Restore reads).
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
// Store key, where a list section keeps its items, and the backup section.
|
||||
var STORES = [
|
||||
{ key: "ytdescgen-profiles", section: "profiles", list: "profiles" },
|
||||
{ key: "ytdescgen-presets", section: "presets", list: "presets" },
|
||||
{ key: "ytdescgen-templates", section: "templates", list: "templates" },
|
||||
{ key: "ytdescgen-history", section: "history", list: "entries" },
|
||||
{ key: "ytdescgen-settings", section: "settings", list: null },
|
||||
{ key: "ytdescgen-editor-draft", section: "draft", list: null },
|
||||
];
|
||||
|
||||
var TEXT = {
|
||||
en: {
|
||||
title: "YTDescGen has moved to ytgenerator.stream",
|
||||
lead: "The app now lives at its own address. Everything you saved on this old address — profiles, presets, templates, history, settings — stays in this browser, so bring it along in two steps.",
|
||||
step1: "Download your data",
|
||||
searching: "Looking for saved data…",
|
||||
found: "Found: {list}.",
|
||||
none: "Nothing was saved in this browser — you can go straight to the new site.",
|
||||
unavailable:
|
||||
"This browser won't let the page read its storage (private mode?). Open the page in the browser you used before.",
|
||||
download: "Download my data",
|
||||
step2: "Restore it on the new site",
|
||||
step2Hint:
|
||||
"Open Settings › Backup & restore, choose Restore and pick the file — or drop it there. You'll see what's new before anything changes.",
|
||||
open: "Open ytgenerator.stream",
|
||||
notice:
|
||||
"This page stays until 29 November 2026. The desktop and Android apps aren't affected.",
|
||||
switch: "Tiếng Việt",
|
||||
profiles: "Profiles ({n})",
|
||||
presets: "Game presets ({n})",
|
||||
templates: "Templates ({n})",
|
||||
history: "History ({n})",
|
||||
settings: "Settings",
|
||||
draft: "Editor draft",
|
||||
},
|
||||
vi: {
|
||||
title: "YTDescGen đã chuyển sang ytgenerator.stream",
|
||||
lead: "Ứng dụng giờ có địa chỉ riêng. Mọi thứ bạn đã lưu ở địa chỉ cũ này — hồ sơ, preset, template, lịch sử, cài đặt — vẫn nằm trong trình duyệt này, hãy mang theo bằng hai bước.",
|
||||
step1: "Tải dữ liệu của bạn",
|
||||
searching: "Đang tìm dữ liệu đã lưu…",
|
||||
found: "Tìm thấy: {list}.",
|
||||
none: "Trình duyệt này chưa lưu gì — bạn có thể sang thẳng trang mới.",
|
||||
unavailable:
|
||||
"Trình duyệt không cho trang đọc bộ nhớ (chế độ ẩn danh?). Hãy mở trang bằng trình duyệt bạn đã dùng trước đây.",
|
||||
download: "Tải dữ liệu của tôi",
|
||||
step2: "Khôi phục trên trang mới",
|
||||
step2Hint:
|
||||
"Mở Cài đặt › Sao lưu & khôi phục, chọn Khôi phục rồi chọn tệp — hoặc thả tệp vào đó. Bạn sẽ xem trước những gì mới trước khi có thay đổi nào.",
|
||||
open: "Mở ytgenerator.stream",
|
||||
notice:
|
||||
"Trang này tồn tại đến ngày 29/11/2026. Ứng dụng desktop và Android không bị ảnh hưởng.",
|
||||
switch: "English",
|
||||
profiles: "Hồ sơ ({n})",
|
||||
presets: "Preset game ({n})",
|
||||
templates: "Template ({n})",
|
||||
history: "Lịch sử ({n})",
|
||||
settings: "Cài đặt",
|
||||
draft: "Bản nháp editor",
|
||||
},
|
||||
};
|
||||
|
||||
var lang = /^vi\b/i.test(navigator.language || "") ? "vi" : "en";
|
||||
var found = null; // { data, parts } once read
|
||||
var readFailed = false;
|
||||
|
||||
function format(template, values) {
|
||||
return template.replace(/\{(\w+)\}/g, function (_, name) {
|
||||
return String(values[name]);
|
||||
});
|
||||
}
|
||||
|
||||
function readStores() {
|
||||
var data = {};
|
||||
var parts = [];
|
||||
STORES.forEach(function (store) {
|
||||
var raw = localStorage.getItem(store.key);
|
||||
if (!raw) return;
|
||||
var saved;
|
||||
try {
|
||||
saved = JSON.parse(raw);
|
||||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
// Zustand's saved shape: { state, version }.
|
||||
var state = saved && saved.state ? saved.state : saved;
|
||||
var version = saved && typeof saved.version === "number" ? saved.version : 0;
|
||||
if (!state || typeof state !== "object") return;
|
||||
if (store.list) {
|
||||
var items = state[store.list];
|
||||
if (!Array.isArray(items) || items.length === 0) return;
|
||||
data[store.section] = { version: version, items: items };
|
||||
parts.push({ section: store.section, n: items.length });
|
||||
} else {
|
||||
data[store.section] = { version: version, value: state };
|
||||
parts.push({ section: store.section, n: 1 });
|
||||
}
|
||||
});
|
||||
return { data: data, parts: parts };
|
||||
}
|
||||
|
||||
function render() {
|
||||
var text = TEXT[lang];
|
||||
document.documentElement.lang = lang;
|
||||
document.title = text.title;
|
||||
Array.prototype.forEach.call(document.querySelectorAll("[data-i18n]"), function (el) {
|
||||
var key = el.getAttribute("data-i18n");
|
||||
if (text[key] && key !== "searching") el.textContent = text[key];
|
||||
});
|
||||
var status = document.getElementById("found");
|
||||
var button = document.getElementById("download");
|
||||
if (readFailed) {
|
||||
status.textContent = text.unavailable;
|
||||
button.disabled = true;
|
||||
} else if (!found || found.parts.length === 0) {
|
||||
status.textContent = text.none;
|
||||
button.disabled = true;
|
||||
} else {
|
||||
var list = found.parts.map(function (part) {
|
||||
return format(text[part.section], { n: part.n });
|
||||
});
|
||||
status.textContent = format(text.found, { list: list.join(", ") });
|
||||
button.disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
function download() {
|
||||
if (!found) return;
|
||||
var now = new Date();
|
||||
var envelope = {
|
||||
_app: "ytdescgen",
|
||||
_format: 2,
|
||||
_type: "backup",
|
||||
_schemaVersion: 1,
|
||||
_appVersion: "0.38.0",
|
||||
_exportedAt: now.toISOString(),
|
||||
_source: "poli0981.github.io/youtube-generator",
|
||||
data: found.data,
|
||||
};
|
||||
var blob = new Blob([JSON.stringify(envelope, null, 2)], { type: "application/json" });
|
||||
var url = URL.createObjectURL(blob);
|
||||
var link = document.createElement("a");
|
||||
var day = now.toISOString().slice(0, 10);
|
||||
link.href = url;
|
||||
link.download = "ytdescgen-legacy-backup-" + day + ".json";
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
link.remove();
|
||||
setTimeout(function () {
|
||||
URL.revokeObjectURL(url);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
try {
|
||||
found = readStores();
|
||||
} catch (e) {
|
||||
readFailed = true;
|
||||
}
|
||||
document.getElementById("download").addEventListener("click", download);
|
||||
document.getElementById("language").addEventListener("click", function () {
|
||||
lang = lang === "vi" ? "en" : "vi";
|
||||
render();
|
||||
});
|
||||
render();
|
||||
});
|
||||
})();
|
||||
@@ -1,55 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="noindex" />
|
||||
<meta name="color-scheme" content="dark light" />
|
||||
<title>YTDescGen has moved to ytgenerator.stream</title>
|
||||
<meta
|
||||
name="description"
|
||||
content="YTDescGen now lives at ytgenerator.stream. Download the data you saved here and restore it there."
|
||||
/>
|
||||
<link rel="canonical" href="https://ytgenerator.stream/" />
|
||||
<link rel="stylesheet" href="/youtube-generator/style.css" />
|
||||
<script src="/youtube-generator/app.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<main class="card">
|
||||
<p class="brand">YTDescGen</p>
|
||||
<h1 data-i18n="title">YTDescGen has moved to ytgenerator.stream</h1>
|
||||
<p data-i18n="lead">
|
||||
The app now lives at its own address. Everything you saved on this old address — profiles,
|
||||
presets, templates, history, settings — stays in this browser, so bring it along in two
|
||||
steps.
|
||||
</p>
|
||||
|
||||
<ol class="steps">
|
||||
<li>
|
||||
<strong data-i18n="step1">Download your data</strong>
|
||||
<p id="found" class="muted" data-i18n="searching">Looking for saved data…</p>
|
||||
<button id="download" type="button" disabled data-i18n="download">
|
||||
Download my data
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<strong data-i18n="step2">Restore it on the new site</strong>
|
||||
<p class="muted" data-i18n="step2Hint">
|
||||
Open Settings › Backup & restore, choose Restore and pick the file — or drop it
|
||||
there. You'll see what's new before anything changes.
|
||||
</p>
|
||||
<a class="button primary" href="https://ytgenerator.stream/settings" data-i18n="open">
|
||||
Open ytgenerator.stream
|
||||
</a>
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<p class="muted small" data-i18n="notice">
|
||||
This page stays until 29 November 2026. The desktop and Android apps aren't affected.
|
||||
</p>
|
||||
<p class="small">
|
||||
<button id="language" type="button" class="link" data-i18n="switch">Tiếng Việt</button>
|
||||
</p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,122 +0,0 @@
|
||||
:root {
|
||||
color-scheme: dark light;
|
||||
--bg: #0b0b12;
|
||||
--surface: #151522;
|
||||
--border: #2a2a3d;
|
||||
--text: #ececf4;
|
||||
--muted: #a0a0b8;
|
||||
--accent: #7c6cf6;
|
||||
--accent-text: #ffffff;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
--bg: #f5f5fa;
|
||||
--surface: #ffffff;
|
||||
--border: #dcdce8;
|
||||
--text: #16161f;
|
||||
--muted: #5c5c70;
|
||||
--accent: #5b4de0;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100dvh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 24px 16px;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font:
|
||||
15px/1.6 system-ui,
|
||||
-apple-system,
|
||||
"Segoe UI",
|
||||
Roboto,
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: 100%;
|
||||
max-width: 34rem;
|
||||
padding: 28px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.brand {
|
||||
margin: 0 0 8px;
|
||||
color: var(--accent);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0 0 12px;
|
||||
font-size: 1.45rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.steps {
|
||||
margin: 20px 0;
|
||||
padding-left: 1.2rem;
|
||||
}
|
||||
|
||||
.steps li {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.steps p {
|
||||
margin: 4px 0 10px;
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.small {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
button,
|
||||
.button {
|
||||
display: inline-block;
|
||||
padding: 9px 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.primary,
|
||||
#download:not(:disabled) {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: var(--accent-text);
|
||||
}
|
||||
|
||||
.link {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
color: var(--accent);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
# OSV-Scanner exceptions for package-lock.json (security.yml → the ops repo's
|
||||
# security.yml, `deps` job): the scanner reads this file because it sits next
|
||||
# to the lockfile. Every entry expires, so the weekly scan turns red again.
|
||||
|
||||
[[IgnoredVulns]]
|
||||
id = "GHSA-g3hv-75wg-m249"
|
||||
effectiveUntil = 2026-12-15
|
||||
reason = "minimatch < 11.0.1 (ReDoS via glob patterns), dev-only: ESLint 10.14 and typescript-eslint 8.72 match their own config globs, never input from users. ESLint 10.15 and typescript-eslint 8.73 take minimatch 11; the dependency update right after the move to Gitea removes this entry."
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 178 KiB After Width: | Height: | Size: 177 KiB |
+4
-5
@@ -1,7 +1,8 @@
|
||||
# Qodana for JavaScript / TypeScript: the web app (src/), the Worker, the
|
||||
# build plugins, scripts, tests and workflows. Run by
|
||||
# .github/workflows/qodana.yml (job `typescript`, native mode), reported to
|
||||
# the Qodana Cloud project yt-ts-js (secret QODANA_TOKEN_TS_JS).
|
||||
# .gitea/workflows/qodana.yml (job `typescript`: the ops repo's
|
||||
# reusable-qodana.yml, native mode), reported to the Qodana Cloud project
|
||||
# yt-ts-js (secret QODANA_TOKEN_TS_JS).
|
||||
version: "1.0"
|
||||
linter: qodana-js
|
||||
profile:
|
||||
@@ -20,14 +21,12 @@ exclude:
|
||||
- coverage
|
||||
- node_modules
|
||||
- .wrangler
|
||||
# The GitHub Pages moving notice, removed on 2026-11-29 (issue #177).
|
||||
- migration-page
|
||||
# `${{ secrets.DISCORD_RELEASE_PIPELINE_WEBHOOK }}` is a reference to a
|
||||
# repository secret, not a secret: the "discord-client-secret" rule only
|
||||
# sees the word.
|
||||
- name: HardcodedPasswords
|
||||
paths:
|
||||
- .github/workflows/notify-release-pipeline.yml
|
||||
- .gitea/workflows/notify-release-pipeline.yml
|
||||
# `\]` and `\}` outside a character class stay escaped: they read as the
|
||||
# literal brackets they are, and the patterns stay valid if they ever get
|
||||
# the `u` or `v` flag, where a lone `]` or `}` is a syntax error. ESLint's
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["local>poli0981/renovate-config"],
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "Maintenance mode: a major lands only in a planned release with its migration (Vitest 5, i18next 27, …). It waits on the Dependency Dashboard until it is ticked there; minor and patch updates come in the preset's grouped pull request.",
|
||||
"matchUpdateTypes": ["major"],
|
||||
"dependencyDashboardApproval": true
|
||||
},
|
||||
{
|
||||
"description": "Tauri, its JS packages and its Rust crates in ONE pull request: the tauri CLI refuses to build when the @tauri-apps/* npm packages and the tauri crates differ in major.minor (`npm run check:tauri` catches a one-sided bump). Outside the preset's all-non-major group, so it never waits behind an unrelated bump.",
|
||||
"matchManagers": ["npm", "cargo"],
|
||||
"matchPackageNames": ["@tauri-apps/**", "tauri", "tauri-build", "tauri-plugin-*"],
|
||||
"groupName": "Tauri (JS + Rust)",
|
||||
"groupSlug": "tauri"
|
||||
},
|
||||
{
|
||||
"description": "@vitest/coverage-v8 needs vitest's exact version.",
|
||||
"matchManagers": ["npm"],
|
||||
"matchPackageNames": ["vitest", "@vitest/**"],
|
||||
"groupName": "Vitest",
|
||||
"groupSlug": "vitest"
|
||||
},
|
||||
{
|
||||
"description": "i18next stays on 26.6.x: 26.7 adds ~1.9 KB gzip of debug-mode warnings to the initial load, over the 280 KB budget (`npm run check:bundle`). Lift this with the planned i18next 27 migration (docs/TECH-SPEC.md).",
|
||||
"matchManagers": ["npm"],
|
||||
"matchPackageNames": ["i18next"],
|
||||
"allowedVersions": "<26.7.0"
|
||||
},
|
||||
{
|
||||
"description": "TypeScript is two npm aliases: `typescript` is the 6.0 API package typescript-eslint loads (@typescript/typescript6), `@typescript/native` is TypeScript 7, whose tsc builds the app. Their majors are taken by hand, never by a bot; @types/node follows .node-version, not the newest Node.",
|
||||
"matchManagers": ["npm"],
|
||||
"matchDepNames": ["typescript", "@typescript/native", "@types/node"],
|
||||
"matchUpdateTypes": ["major"],
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"description": "Runtimes are bumped by hand, every copy at once: Node is .node-version (+ engines and @types/node); the Android job's JDK (setup-java in release.yml) moves with Tauri's Gradle template, and only a release build would show a break.",
|
||||
"matchDepNames": ["node", "java-jdk"],
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"description": "glib 0.18 comes with Tauri's gtk-rs 0.18 Linux stack; its fix (0.20) is a major the tree cannot take until Tauri moves (src-tauri/deny.toml, src-tauri/osv-scanner.toml).",
|
||||
"matchManagers": ["cargo"],
|
||||
"matchPackageNames": ["glib"],
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"description": "src-tauri/gen/android is Tauri's generated Gradle project: the Android Gradle Plugin, Kotlin and the wrapper move with Tauri's template, not on their own. Kotlin 2.2+ refuses the template's `kotlinOptions {}` block, and only a release build would show it (free-steam-games-list's held update).",
|
||||
"matchManagers": ["gradle", "gradle-wrapper"],
|
||||
"enabled": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* The tauri CLI refuses to build a release when they differ ("Found version
|
||||
* mismatched Tauri packages"), but nothing in CI runs `tauri build` — so a
|
||||
* Dependabot bump of one side merges green and the break only shows up after
|
||||
* bot bump of one side merges green and the break only shows up after
|
||||
* a release tag. This runs in CI instead. Run via `npm run check:tauri`.
|
||||
*/
|
||||
import { readFileSync } from "fs";
|
||||
|
||||
@@ -61,7 +61,7 @@ export function headCommitYear(): number {
|
||||
const options = { cwd: ROOT, encoding: "utf8" } as const;
|
||||
// A dev/CI script: `git` is whichever one the developer's PATH or the CI
|
||||
// image provides, by design — there is no fixed install path to pin.
|
||||
const iso = execFileSync("git", ["log", "-1", "--format=%cI"], options); // NOSONAR
|
||||
const iso = execFileSync("git", ["log", "-1", "--format=%cI"], options);
|
||||
const year = Number(iso.trim().slice(0, 4));
|
||||
if (Number.isInteger(year) && year >= 2000) return year;
|
||||
} catch {
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
# SonarCloud, CI-based analysis. Automatic Analysis is off in the project's
|
||||
# settings: the scanner runs in the `sonarcloud` job of
|
||||
# .github/workflows/ci.yml, on every PR and every push to main, and reads this
|
||||
# file. The version (package.json) is passed on the command line there.
|
||||
sonar.organization=poli0981
|
||||
sonar.projectKey=poli0981_youtube-generator
|
||||
sonar.sourceEncoding=UTF-8
|
||||
|
||||
# Main code is the whole repository: the app, the Worker, the build plugins,
|
||||
# the scripts, the Tauri shell (Rust, and the Android project, which is
|
||||
# committed and edited), the migration page and the workflows. The tests are
|
||||
# analysed as tests: the same files Vitest runs (vitest.config.ts) plus
|
||||
# tests/helpers. Files git ignores are left out on their own; binary files
|
||||
# (the icons, the Gradle wrapper's jar) are left out here — there is nothing
|
||||
# in them to analyse, and the scanner warns about each one it reads as text.
|
||||
sonar.sources=.
|
||||
sonar.exclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx,**/*.png,**/*.ico,**/*.icns,**/*.jar
|
||||
sonar.tests=.
|
||||
sonar.test.inclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx
|
||||
|
||||
# Coverage is Vitest's LCOV report (`npm run test:coverage` in the `check`
|
||||
# job), which measures the logic layers: src/engine, src/config, src/store,
|
||||
# src/utils, worker/ and build-plugins/. SonarCloud would count a file missing
|
||||
# from the report as 0 % covered, so everything else is excluded here. Keep
|
||||
# this list in step with `coverage.include` in vitest.config.ts.
|
||||
# - No test renders a component or page (there is no DOM environment); the
|
||||
# hooks and i18n are React and i18next glue, checked in the running app.
|
||||
# - worker/index.ts only wires the router to the Workers runtime.
|
||||
# - scripts/ and the config files are tooling; the migration page and
|
||||
# public/theme-init.js are static pages' scripts.
|
||||
# - The Rust and Android code have no coverage tooling.
|
||||
sonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||
sonar.coverage.exclusions=\
|
||||
src/App.tsx,\
|
||||
src/main.tsx,\
|
||||
src/components/**,\
|
||||
src/pages/**,\
|
||||
src/hooks/**,\
|
||||
src/i18n/**,\
|
||||
worker/index.ts,\
|
||||
scripts/**,\
|
||||
*.config.js,\
|
||||
*.config.ts,\
|
||||
migration-page/**,\
|
||||
public/**,\
|
||||
src-tauri/**
|
||||
|
||||
# The scan waits for the quality gate and fails the job when it fails, so the
|
||||
# result is in CI as well as in SonarCloud's own check on the PR.
|
||||
sonar.qualitygate.wait=true
|
||||
Generated
+19
-20
@@ -43,9 +43,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "anyhow"
|
||||
version = "1.0.102"
|
||||
version = "1.0.103"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
||||
checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3"
|
||||
|
||||
[[package]]
|
||||
name = "async-broadcast"
|
||||
@@ -493,9 +493,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cookie"
|
||||
version = "0.18.1"
|
||||
version = "0.18.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747"
|
||||
checksum = "d55f2d6c30eeec7d5c6f98bd4395d4abb1895629eab97ee6522d340623615f8a"
|
||||
dependencies = [
|
||||
"time",
|
||||
"version_check",
|
||||
@@ -717,7 +717,7 @@ dependencies = [
|
||||
"libc",
|
||||
"option-ext",
|
||||
"redox_users",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -888,16 +888,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "event-listener"
|
||||
version = "5.4.1"
|
||||
version = "5.4.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab"
|
||||
checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2"
|
||||
dependencies = [
|
||||
"concurrent-queue",
|
||||
"parking",
|
||||
"pin-project-lite",
|
||||
]
|
||||
@@ -1000,9 +999,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
|
||||
|
||||
[[package]]
|
||||
name = "form_urlencoded"
|
||||
version = "1.2.2"
|
||||
version = "1.2.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
|
||||
checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e"
|
||||
dependencies = [
|
||||
"percent-encoding",
|
||||
]
|
||||
@@ -2780,15 +2779,15 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rustix"
|
||||
version = "1.1.4"
|
||||
version = "1.1.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
|
||||
checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
|
||||
dependencies = [
|
||||
"bitflags 2.11.0",
|
||||
"errno",
|
||||
"libc",
|
||||
"linux-raw-sys",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3643,7 +3642,7 @@ dependencies = [
|
||||
"getrandom 0.4.2",
|
||||
"once_cell",
|
||||
"rustix",
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3754,9 +3753,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
||||
|
||||
[[package]]
|
||||
name = "tokio"
|
||||
version = "1.51.0"
|
||||
version = "1.51.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2bd1c4c0fc4a7ab90fc15ef6daaa3ec3b893f004f915f2392557ed23237820cd"
|
||||
checksum = "a13e32eacd0222f9658be2ccbd83b718bfd9bfb0d54b5921913c184cb86124a5"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"libc",
|
||||
@@ -4046,9 +4045,9 @@ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
|
||||
|
||||
[[package]]
|
||||
name = "url"
|
||||
version = "2.5.8"
|
||||
version = "2.5.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
|
||||
checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a"
|
||||
dependencies = [
|
||||
"form_urlencoded",
|
||||
"idna",
|
||||
@@ -4402,7 +4401,7 @@ version = "0.1.11"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
|
||||
dependencies = [
|
||||
"windows-sys 0.61.2",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
+7
-2
@@ -1,6 +1,7 @@
|
||||
# cargo-deny configuration for the Tauri shell. Run by
|
||||
# .github/workflows/rust.yml (on changes under src-tauri/, and weekly for new
|
||||
# RustSec advisories): `cargo deny check advisories licenses sources`.
|
||||
# .gitea/workflows/security.yml through the ops repo's security.yml (job
|
||||
# `rust`: `cargo deny --all-features check`), on every push and pull request
|
||||
# and weekly for new RustSec advisories.
|
||||
|
||||
[graph]
|
||||
all-features = false
|
||||
@@ -12,6 +13,10 @@ all-features = false
|
||||
# on, and would otherwise keep this job permanently red. Vulnerabilities
|
||||
# always fail, whatever the depth.
|
||||
unmaintained = "workspace"
|
||||
# Transitive unsound / unmaintained advisories with no fix yet (glib 0.18, the
|
||||
# zbus crates, chrono — all under Tauri's Linux stack) stay out of this check
|
||||
# by the scopes above; osv-scanner, which reports them, lists each with its
|
||||
# reason and an expiry date in src-tauri/osv-scanner.toml.
|
||||
|
||||
[licenses]
|
||||
confidence-threshold = 0.9
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
# OSV-Scanner exceptions for Cargo.lock (security.yml → the ops repo's
|
||||
# security.yml, `deps` job): the scanner reads this file because it sits next
|
||||
# to the lockfile.
|
||||
#
|
||||
# Only advisories that NO release of our dependency chain fixes yet — a fixed
|
||||
# one is taken (Cargo.lock), not listed here. Every entry expires, so the
|
||||
# weekly scan turns red again and someone looks. cargo-deny doesn't need them
|
||||
# (deny.toml scopes unsound / unmaintained to direct dependencies). Reviewed
|
||||
# 2026-11-25 with Tauri 2.12 (the same Linux stack as free-steam-games-list
|
||||
# and free-games-itchio-list).
|
||||
|
||||
[[IgnoredVulns]]
|
||||
id = "GHSA-wrw7-89jp-8q8g"
|
||||
effectiveUntil = 2027-03-01
|
||||
reason = "glib 0.18 VariantStrIter unsoundness. Linux only, via gtk 0.18 under tao/wry/webkit2gtk; the shell never iterates GVariant strings. Fixed in glib 0.20, which Tauri 2's Linux stack does not use yet."
|
||||
|
||||
[[IgnoredVulns]]
|
||||
id = "RUSTSEC-2024-0370"
|
||||
effectiveUntil = 2027-03-01
|
||||
reason = "proc-macro-error is unmaintained. Build-time only (a proc-macro of the gtk 0.18 macros); nothing of it ships."
|
||||
|
||||
[[IgnoredVulns]]
|
||||
id = "RUSTSEC-2026-0370"
|
||||
effectiveUntil = 2027-03-01
|
||||
reason = "zvariant (zbus, Linux D-Bus via Tauri's plugins): no release of the dependants takes the fix yet."
|
||||
|
||||
[[IgnoredVulns]]
|
||||
id = "RUSTSEC-2026-0371"
|
||||
effectiveUntil = 2027-03-01
|
||||
reason = "zbus_names: as zvariant."
|
||||
|
||||
[[IgnoredVulns]]
|
||||
id = "RUSTSEC-2026-0372"
|
||||
effectiveUntil = 2027-03-01
|
||||
reason = "zvariant_derive: as zvariant; a derive macro, build-time."
|
||||
|
||||
[[IgnoredVulns]]
|
||||
id = "RUSTSEC-2026-0543"
|
||||
effectiveUntil = 2027-03-01
|
||||
reason = "chrono is unmaintained (informational, no fixed release). Pulled in by Tauri's dependencies; no unsound API reported."
|
||||
+29
-3
@@ -1,6 +1,7 @@
|
||||
# Qodana for Rust (Early Access): the Tauri 2 shell of the desktop and
|
||||
# Android apps. Run by .github/workflows/qodana.yml (job `rust`, Docker),
|
||||
# reported to the Qodana Cloud project yt-rust (secret QODANA_TOKEN_RUST).
|
||||
# Android apps. Run by .gitea/workflows/qodana.yml (job `rust`: the ops repo's
|
||||
# reusable-qodana.yml, Docker Desktop on the maintainer's PC), reported to the
|
||||
# Qodana Cloud project yt-rust (secret QODANA_TOKEN_RUST).
|
||||
version: "1.0"
|
||||
linter: qodana-rust
|
||||
profile:
|
||||
@@ -13,9 +14,21 @@ failureConditions:
|
||||
# and its image has neither a C toolchain nor the libraries Tauri links
|
||||
# against (the same packages rust.yml installs). Needs root in the container:
|
||||
# the workflow passes `-u root`.
|
||||
#
|
||||
# The image is a Docker Hardened Image: its libraries are installed as
|
||||
# `<v>+dhi0`, which sorts above the `<v>+deb13u0+dhi0` its own repository
|
||||
# (dhi.io) ships, so every -dev package reads as a downgrade and apt stops
|
||||
# ("held broken packages"). Pinning dhi.io and allowing downgrades lets the
|
||||
# install through (found on free-steam-games-list, ops migration notes).
|
||||
bootstrap: |
|
||||
printf 'Package: *\nPin: origin dhi.io\nPin-Priority: 1001\n' > /etc/apt/preferences.d/dhi
|
||||
apt-get update -qq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends build-essential pkg-config libssl-dev libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --allow-downgrades --no-install-recommends build-essential pkg-config libssl-dev libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
|
||||
# Opening the project (crates, build scripts, macro expansion) takes longer
|
||||
# than the linter's default 10 minutes in Docker Desktop on the runner PC on a
|
||||
# cold cache ("failed to configure the project: timeout reached").
|
||||
properties:
|
||||
qd.rust.configuration.timeout.minutes: "25"
|
||||
exclude:
|
||||
- name: All
|
||||
paths:
|
||||
@@ -30,3 +43,16 @@ exclude:
|
||||
- name: RsUnnecessaryQualifications
|
||||
paths:
|
||||
- src/lib.rs
|
||||
# The linter's own type and borrow checker, which re-implement rustc's.
|
||||
# rustc is the checker of record: rust.yml builds the crate and runs clippy
|
||||
# with -D warnings, so a real error of these kinds cannot merge. The
|
||||
# 2026.3 Early Access linter reports errors rustc does not have — its
|
||||
# first run on Gitea (2026-11-25) found 9, all false: `20 * 1024 * 1024`
|
||||
# in a `u64` const read as a `Duration` (E0308, file_dialog.rs and
|
||||
# storage.rs), `file.metadata()` then `file.take()` read as a use after
|
||||
# move (E0382), a `usize` in a test read as a toml_parser `Span`, plus the
|
||||
# unresolved paths of what tauri::generate_context!() and the
|
||||
# #[tauri::command] macros expand to.
|
||||
- name: RsTypeCheck
|
||||
- name: RsBorrowChecker
|
||||
- name: RsUnresolvedPath
|
||||
@@ -4,7 +4,8 @@ import {
|
||||
siBuymeacoffee,
|
||||
siDiscord,
|
||||
siFacebook,
|
||||
siGithub,
|
||||
siGitea,
|
||||
siGitlab,
|
||||
siInstagram,
|
||||
siKofi,
|
||||
siMastodon,
|
||||
@@ -53,7 +54,8 @@ export const MastodonIcon = brandIcon(siMastodon);
|
||||
export const DiscordIcon = brandIcon(siDiscord);
|
||||
export const SteamIcon = brandIcon(siSteam);
|
||||
export const TelegramIcon = brandIcon(siTelegram);
|
||||
export const GithubIcon = brandIcon(siGithub);
|
||||
export const GiteaIcon = brandIcon(siGitea);
|
||||
export const GitlabIcon = brandIcon(siGitlab);
|
||||
export const KofiIcon = brandIcon(siKofi);
|
||||
export const BuyMeACoffeeIcon = brandIcon(siBuymeacoffee);
|
||||
export const PatreonIcon = brandIcon(siPatreon);
|
||||
|
||||
@@ -2,7 +2,6 @@ import { useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Command } from "cmdk";
|
||||
import {
|
||||
BookOpen,
|
||||
Bug,
|
||||
ClipboardCopy,
|
||||
Contrast,
|
||||
@@ -211,9 +210,6 @@ function PaletteBody({
|
||||
<Item icon={<Keyboard />} onSelect={run(onShowShortcuts)}>
|
||||
{t("shortcuts.title")}
|
||||
</Item>
|
||||
<Item icon={<BookOpen />} onSelect={run(() => void openExternal(ABOUT.wikiUrl))}>
|
||||
{t("command.wiki")}
|
||||
</Item>
|
||||
<Item icon={<Bug />} onSelect={run(() => void openExternal(ABOUT.bugReportUrl))}>
|
||||
{t("tabs.reportBug")}
|
||||
</Item>
|
||||
|
||||
+9
-7
@@ -14,15 +14,17 @@ export const ABOUT = {
|
||||
version: pkg.version,
|
||||
license: "Apache-2.0",
|
||||
website: "https://ytgenerator.stream",
|
||||
repo: "https://github.com/poli0981/youtube-generator",
|
||||
issuesUrl: "https://github.com/poli0981/youtube-generator/issues",
|
||||
bugReportUrl: "https://github.com/poli0981/youtube-generator/issues/new?template=bug_report.yml",
|
||||
discussionsUrl: "https://github.com/poli0981/youtube-generator/discussions",
|
||||
wikiUrl: "https://github.com/poli0981/youtube-generator/wiki",
|
||||
securityAdvisoryUrl: "https://github.com/poli0981/youtube-generator/security/advisories/new",
|
||||
/** The canonical source (Gitea). Outsiders cannot sign up there. */
|
||||
repo: "https://git.poli0981.dev/poli0981/youtube-generator",
|
||||
/**
|
||||
* Issues and merge requests go to the GitLab mirror, which Gitea pushes
|
||||
* to. The bug form is `.gitlab/issue_templates/Bug.md`.
|
||||
*/
|
||||
issuesUrl: "https://gitlab.com/poli0981/youtube-generator/-/issues",
|
||||
bugReportUrl: "https://gitlab.com/poli0981/youtube-generator/-/issues/new?issuable_template=Bug",
|
||||
author: {
|
||||
name: "SkullMute",
|
||||
github: "https://github.com/poli0981",
|
||||
profile: "https://git.poli0981.dev/poli0981",
|
||||
website: "https://poli0981.dev/",
|
||||
links: "https://poli0981.dev/links/",
|
||||
},
|
||||
|
||||
@@ -2,11 +2,9 @@
|
||||
* Donate / support links surfaced on the About page and via the persistent
|
||||
* Donate button in the Header.
|
||||
*
|
||||
* Mirrors `.github/FUNDING.yml` so GitHub's "Sponsor this project" picker
|
||||
* and the in-app surface stay aligned. Update both files together.
|
||||
* GitHub Sponsors went with the suspended GitHub account (2026-11).
|
||||
*/
|
||||
export const DONATE = {
|
||||
githubSponsors: "https://github.com/sponsors/poli0981",
|
||||
kofi: "https://ko-fi.com/skullmute",
|
||||
buyMeACoffee: "https://buymeacoffee.com/skullmute",
|
||||
patreon: "https://www.patreon.com/skullmute",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"repoHeading",
|
||||
"repoLabel",
|
||||
"reportBugLabel",
|
||||
"discussionsLabel",
|
||||
"issuesLabel",
|
||||
"authorLabel",
|
||||
"donateHeading",
|
||||
"donateHelp",
|
||||
@@ -30,13 +30,12 @@
|
||||
"thirdPartyHelp",
|
||||
"legalHeading",
|
||||
"websiteLabel",
|
||||
"wikiLabel",
|
||||
"contactHeading",
|
||||
"contactHelp",
|
||||
"authorWebsite",
|
||||
"authorLinks"
|
||||
],
|
||||
"about.donate": ["githubSponsors", "kofi", "buyMeACoffee", "patreon", "paypal"],
|
||||
"about.donate": ["kofi", "buyMeACoffee", "patreon", "paypal"],
|
||||
"about.socials": [
|
||||
"youtube",
|
||||
"x",
|
||||
@@ -1097,7 +1096,7 @@
|
||||
"conduct"
|
||||
],
|
||||
"nav": ["create", "library", "system", "main", "more", "skipToContent"],
|
||||
"command": ["open", "title", "placeholder", "empty", "interfaceIn", "outputIn", "wiki"],
|
||||
"command": ["open", "title", "placeholder", "empty", "interfaceIn", "outputIn"],
|
||||
"command.groups": [
|
||||
"navigate",
|
||||
"copy",
|
||||
|
||||
@@ -30,15 +30,14 @@
|
||||
"about": {
|
||||
"tagline": "YouTube title, description, and tag generator for Gameplay No Commentary channels.",
|
||||
"repoHeading": "Repository & License",
|
||||
"repoLabel": "GitHub Repo",
|
||||
"repoLabel": "Source code (Gitea)",
|
||||
"reportBugLabel": "Report a Bug",
|
||||
"discussionsLabel": "Discussions",
|
||||
"issuesLabel": "Issues & merge requests (GitLab)",
|
||||
"authorLabel": "Author",
|
||||
"donateHeading": "Donate / Support",
|
||||
"donateHelp": "If YTDescGen saves you time, consider buying me a coffee. Every bit helps keep the project going.",
|
||||
"legalHeading": "Legal",
|
||||
"donate": {
|
||||
"githubSponsors": "GitHub Sponsors",
|
||||
"kofi": "Ko-fi",
|
||||
"buyMeACoffee": "Buy Me a Coffee",
|
||||
"patreon": "Patreon",
|
||||
@@ -58,7 +57,6 @@
|
||||
"telegramUser": "Telegram"
|
||||
},
|
||||
"websiteLabel": "Website",
|
||||
"wikiLabel": "Wiki & guides",
|
||||
"contactHeading": "Contact",
|
||||
"contactHelp": "Pick the address for your topic so it reaches the right inbox.",
|
||||
"authorWebsite": "Personal website",
|
||||
@@ -1400,8 +1398,7 @@
|
||||
"help": "Help"
|
||||
},
|
||||
"interfaceIn": "Interface language: {{language}}",
|
||||
"outputIn": "Output language: {{language}}",
|
||||
"wiki": "Open the wiki"
|
||||
"outputIn": "Output language: {{language}}"
|
||||
},
|
||||
"library": {
|
||||
"profileApplied": "Profile “{{name}}” applied",
|
||||
|
||||
@@ -30,15 +30,14 @@
|
||||
"about": {
|
||||
"tagline": "Generador de título, descripción y etiquetas de YouTube para canales de Gameplay sin comentarios.",
|
||||
"repoHeading": "Repositorio y Licencia",
|
||||
"repoLabel": "Repositorio en GitHub",
|
||||
"repoLabel": "Código fuente (Gitea)",
|
||||
"reportBugLabel": "Reportar un bug",
|
||||
"discussionsLabel": "Discusiones",
|
||||
"issuesLabel": "Incidencias y merge requests (GitLab)",
|
||||
"authorLabel": "Autor",
|
||||
"donateHeading": "Donar / Apoyar",
|
||||
"donateHelp": "Si YTDescGen te ahorra tiempo, considera invitarme un café. Cada aporte ayuda al proyecto.",
|
||||
"legalHeading": "Legal",
|
||||
"donate": {
|
||||
"githubSponsors": "GitHub Sponsors",
|
||||
"kofi": "Ko-fi",
|
||||
"buyMeACoffee": "Buy Me a Coffee",
|
||||
"patreon": "Patreon",
|
||||
@@ -58,7 +57,6 @@
|
||||
"telegramUser": "Telegram"
|
||||
},
|
||||
"websiteLabel": "Sitio web",
|
||||
"wikiLabel": "Wiki y guías",
|
||||
"contactHeading": "Contacto",
|
||||
"contactHelp": "Elige la dirección según el tema para que llegue al buzón correcto.",
|
||||
"authorWebsite": "Sitio personal",
|
||||
@@ -1400,8 +1398,7 @@
|
||||
"help": "Ayuda"
|
||||
},
|
||||
"interfaceIn": "Idioma de la interfaz: {{language}}",
|
||||
"outputIn": "Idioma de salida: {{language}}",
|
||||
"wiki": "Abrir la wiki"
|
||||
"outputIn": "Idioma de salida: {{language}}"
|
||||
},
|
||||
"library": {
|
||||
"profileApplied": "Perfil «{{name}}» aplicado",
|
||||
|
||||
@@ -30,15 +30,14 @@
|
||||
"about": {
|
||||
"tagline": "Generator judul, deskripsi, dan tag YouTube untuk channel Gameplay Tanpa Komentar.",
|
||||
"repoHeading": "Repositori & Lisensi",
|
||||
"repoLabel": "Repo GitHub",
|
||||
"repoLabel": "Kode sumber (Gitea)",
|
||||
"reportBugLabel": "Laporkan Bug",
|
||||
"discussionsLabel": "Diskusi",
|
||||
"issuesLabel": "Isu & merge request (GitLab)",
|
||||
"authorLabel": "Penulis",
|
||||
"donateHeading": "Donasi / Dukungan",
|
||||
"donateHelp": "Kalau YTDescGen menghemat waktumu, pertimbangkan traktir kopi. Setiap dukungan membantu proyek ini terus jalan.",
|
||||
"legalHeading": "Legal",
|
||||
"donate": {
|
||||
"githubSponsors": "GitHub Sponsors",
|
||||
"kofi": "Ko-fi",
|
||||
"buyMeACoffee": "Buy Me a Coffee",
|
||||
"patreon": "Patreon",
|
||||
@@ -58,7 +57,6 @@
|
||||
"telegramUser": "Telegram"
|
||||
},
|
||||
"websiteLabel": "Situs web",
|
||||
"wikiLabel": "Wiki & panduan",
|
||||
"contactHeading": "Kontak",
|
||||
"contactHelp": "Pilih alamat sesuai topik agar sampai ke kotak masuk yang tepat.",
|
||||
"authorWebsite": "Situs pribadi",
|
||||
@@ -1400,8 +1398,7 @@
|
||||
"help": "Bantuan"
|
||||
},
|
||||
"interfaceIn": "Bahasa antarmuka: {{language}}",
|
||||
"outputIn": "Bahasa keluaran: {{language}}",
|
||||
"wiki": "Buka wiki"
|
||||
"outputIn": "Bahasa keluaran: {{language}}"
|
||||
},
|
||||
"library": {
|
||||
"profileApplied": "Profil “{{name}}” diterapkan",
|
||||
|
||||
@@ -30,15 +30,14 @@
|
||||
"about": {
|
||||
"tagline": "ゲームプレイ実況なしチャンネル向けのタイトル・説明文・タグ生成ツール。",
|
||||
"repoHeading": "リポジトリ & ライセンス",
|
||||
"repoLabel": "GitHub リポジトリ",
|
||||
"repoLabel": "ソースコード (Gitea)",
|
||||
"reportBugLabel": "バグを報告",
|
||||
"discussionsLabel": "ディスカッション",
|
||||
"issuesLabel": "Issue とマージリクエスト (GitLab)",
|
||||
"authorLabel": "作者",
|
||||
"donateHeading": "寄付 / サポート",
|
||||
"donateHelp": "YTDescGenが時短に役立ったら、コーヒー一杯分でも支援していただけると嬉しいです。",
|
||||
"legalHeading": "法的事項",
|
||||
"donate": {
|
||||
"githubSponsors": "GitHub Sponsors",
|
||||
"kofi": "Ko-fi",
|
||||
"buyMeACoffee": "Buy Me a Coffee",
|
||||
"patreon": "Patreon",
|
||||
@@ -58,7 +57,6 @@
|
||||
"telegramUser": "Telegram"
|
||||
},
|
||||
"websiteLabel": "ウェブサイト",
|
||||
"wikiLabel": "Wiki とガイド",
|
||||
"contactHeading": "お問い合わせ",
|
||||
"contactHelp": "内容に合ったアドレスを選ぶと、適切な窓口に届きます。",
|
||||
"authorWebsite": "個人サイト",
|
||||
@@ -1400,8 +1398,7 @@
|
||||
"help": "ヘルプ"
|
||||
},
|
||||
"interfaceIn": "表示言語: {{language}}",
|
||||
"outputIn": "出力言語: {{language}}",
|
||||
"wiki": "Wiki を開く"
|
||||
"outputIn": "出力言語: {{language}}"
|
||||
},
|
||||
"library": {
|
||||
"profileApplied": "プロフィール「{{name}}」を適用しました",
|
||||
|
||||
@@ -30,15 +30,14 @@
|
||||
"about": {
|
||||
"tagline": "게임플레이 무편집 채널을 위한 YouTube 제목, 설명, 태그 생성기.",
|
||||
"repoHeading": "저장소 및 라이선스",
|
||||
"repoLabel": "GitHub 저장소",
|
||||
"repoLabel": "소스 코드 (Gitea)",
|
||||
"reportBugLabel": "버그 신고",
|
||||
"discussionsLabel": "디스커션",
|
||||
"issuesLabel": "이슈 및 머지 리퀘스트 (GitLab)",
|
||||
"authorLabel": "저자",
|
||||
"donateHeading": "후원 / 지원",
|
||||
"donateHelp": "YTDescGen이 시간을 아껴드렸다면 커피 한 잔으로 응원 부탁드립니다.",
|
||||
"legalHeading": "법적 고지",
|
||||
"donate": {
|
||||
"githubSponsors": "GitHub Sponsors",
|
||||
"kofi": "Ko-fi",
|
||||
"buyMeACoffee": "Buy Me a Coffee",
|
||||
"patreon": "Patreon",
|
||||
@@ -58,7 +57,6 @@
|
||||
"telegramUser": "텔레그램"
|
||||
},
|
||||
"websiteLabel": "웹사이트",
|
||||
"wikiLabel": "위키 및 가이드",
|
||||
"contactHeading": "연락처",
|
||||
"contactHelp": "주제에 맞는 주소를 선택하면 담당자에게 바로 전달됩니다.",
|
||||
"authorWebsite": "개인 웹사이트",
|
||||
@@ -1400,8 +1398,7 @@
|
||||
"help": "도움말"
|
||||
},
|
||||
"interfaceIn": "인터페이스 언어: {{language}}",
|
||||
"outputIn": "출력 언어: {{language}}",
|
||||
"wiki": "위키 열기"
|
||||
"outputIn": "출력 언어: {{language}}"
|
||||
},
|
||||
"library": {
|
||||
"profileApplied": "프로필 “{{name}}” 적용됨",
|
||||
|
||||
@@ -30,15 +30,14 @@
|
||||
"about": {
|
||||
"tagline": "Gerador de títulos, descrições e tags do YouTube para canais de Gameplay Sem Comentários.",
|
||||
"repoHeading": "Repositório e Licença",
|
||||
"repoLabel": "Repositório no GitHub",
|
||||
"repoLabel": "Código-fonte (Gitea)",
|
||||
"reportBugLabel": "Reportar um bug",
|
||||
"discussionsLabel": "Discussões",
|
||||
"issuesLabel": "Issues e merge requests (GitLab)",
|
||||
"authorLabel": "Autor",
|
||||
"donateHeading": "Doar / Apoiar",
|
||||
"donateHelp": "Se o YTDescGen te poupa tempo, considere me pagar um café. Cada ajuda mantém o projeto vivo.",
|
||||
"legalHeading": "Jurídico",
|
||||
"donate": {
|
||||
"githubSponsors": "GitHub Sponsors",
|
||||
"kofi": "Ko-fi",
|
||||
"buyMeACoffee": "Buy Me a Coffee",
|
||||
"patreon": "Patreon",
|
||||
@@ -58,7 +57,6 @@
|
||||
"telegramUser": "Telegram"
|
||||
},
|
||||
"websiteLabel": "Site",
|
||||
"wikiLabel": "Wiki e guias",
|
||||
"contactHeading": "Contato",
|
||||
"contactHelp": "Escolha o endereço do assunto para chegar à caixa certa.",
|
||||
"authorWebsite": "Site pessoal",
|
||||
@@ -1400,8 +1398,7 @@
|
||||
"help": "Ajuda"
|
||||
},
|
||||
"interfaceIn": "Idioma da interface: {{language}}",
|
||||
"outputIn": "Idioma de saída: {{language}}",
|
||||
"wiki": "Abrir a wiki"
|
||||
"outputIn": "Idioma de saída: {{language}}"
|
||||
},
|
||||
"library": {
|
||||
"profileApplied": "Perfil “{{name}}” aplicado",
|
||||
|
||||
@@ -30,15 +30,14 @@
|
||||
"about": {
|
||||
"tagline": "Công cụ tạo title, description, tag cho kênh YouTube Gameplay No Commentary.",
|
||||
"repoHeading": "Repository & License",
|
||||
"repoLabel": "GitHub Repo",
|
||||
"repoLabel": "Mã nguồn (Gitea)",
|
||||
"reportBugLabel": "Báo lỗi",
|
||||
"discussionsLabel": "Thảo luận",
|
||||
"issuesLabel": "Issue & merge request (GitLab)",
|
||||
"authorLabel": "Tác giả",
|
||||
"donateHeading": "Ủng hộ / Donate",
|
||||
"donateHelp": "Nếu YTDescGen giúp bạn tiết kiệm thời gian, mời mình một ly cà phê nhé. Mọi ủng hộ đều giúp dự án tiếp tục.",
|
||||
"legalHeading": "Pháp lý",
|
||||
"donate": {
|
||||
"githubSponsors": "GitHub Sponsors",
|
||||
"kofi": "Ko-fi",
|
||||
"buyMeACoffee": "Buy Me a Coffee",
|
||||
"patreon": "Patreon",
|
||||
@@ -58,7 +57,6 @@
|
||||
"telegramUser": "Telegram"
|
||||
},
|
||||
"websiteLabel": "Trang web",
|
||||
"wikiLabel": "Wiki & hướng dẫn",
|
||||
"contactHeading": "Liên hệ",
|
||||
"contactHelp": "Chọn địa chỉ đúng chủ đề để thư đến đúng người.",
|
||||
"authorWebsite": "Trang cá nhân",
|
||||
@@ -1400,8 +1398,7 @@
|
||||
"help": "Trợ giúp"
|
||||
},
|
||||
"interfaceIn": "Ngôn ngữ giao diện: {{language}}",
|
||||
"outputIn": "Ngôn ngữ đầu ra: {{language}}",
|
||||
"wiki": "Mở wiki"
|
||||
"outputIn": "Ngôn ngữ đầu ra: {{language}}"
|
||||
},
|
||||
"library": {
|
||||
"profileApplied": "Đã áp dụng hồ sơ “{{name}}”",
|
||||
|
||||
@@ -30,15 +30,14 @@
|
||||
"about": {
|
||||
"tagline": "为游戏实况无解说频道生成 YouTube 标题、描述和标签的工具。",
|
||||
"repoHeading": "仓库与许可",
|
||||
"repoLabel": "GitHub 仓库",
|
||||
"repoLabel": "源代码 (Gitea)",
|
||||
"reportBugLabel": "报告 Bug",
|
||||
"discussionsLabel": "讨论区",
|
||||
"issuesLabel": "议题与合并请求 (GitLab)",
|
||||
"authorLabel": "作者",
|
||||
"donateHeading": "赞助 / 支持",
|
||||
"donateHelp": "如果 YTDescGen 帮你省下了时间,欢迎请我喝一杯咖啡。每份支持都让项目走得更远。",
|
||||
"legalHeading": "法律",
|
||||
"donate": {
|
||||
"githubSponsors": "GitHub Sponsors",
|
||||
"kofi": "Ko-fi",
|
||||
"buyMeACoffee": "Buy Me a Coffee",
|
||||
"patreon": "Patreon",
|
||||
@@ -58,7 +57,6 @@
|
||||
"telegramUser": "Telegram"
|
||||
},
|
||||
"websiteLabel": "网站",
|
||||
"wikiLabel": "Wiki 与指南",
|
||||
"contactHeading": "联系方式",
|
||||
"contactHelp": "按主题选择邮箱,邮件会直达负责的人。",
|
||||
"authorWebsite": "个人网站",
|
||||
@@ -1400,8 +1398,7 @@
|
||||
"help": "帮助"
|
||||
},
|
||||
"interfaceIn": "界面语言:{{language}}",
|
||||
"outputIn": "输出语言:{{language}}",
|
||||
"wiki": "打开 Wiki"
|
||||
"outputIn": "输出语言:{{language}}"
|
||||
},
|
||||
"library": {
|
||||
"profileApplied": "已应用配置“{{name}}”",
|
||||
|
||||
+8
-15
@@ -2,7 +2,6 @@ import type { ReactNode } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom";
|
||||
import {
|
||||
BookOpen,
|
||||
Bug,
|
||||
ChevronRight,
|
||||
ExternalLink,
|
||||
@@ -11,7 +10,6 @@ import {
|
||||
HandHeart,
|
||||
Link2,
|
||||
Mail,
|
||||
MessagesSquare,
|
||||
Scale,
|
||||
Send,
|
||||
Sparkles,
|
||||
@@ -31,7 +29,8 @@ import {
|
||||
BlueskyIcon,
|
||||
BuyMeACoffeeIcon,
|
||||
DiscordIcon,
|
||||
GithubIcon,
|
||||
GiteaIcon,
|
||||
GitlabIcon,
|
||||
KofiIcon,
|
||||
MastodonIcon,
|
||||
PatreonIcon,
|
||||
@@ -55,7 +54,6 @@ const SOCIAL_ICONS: Record<AboutSocialId, IconComponent> = {
|
||||
};
|
||||
|
||||
const DONATE_ICONS: Record<DonateId, IconComponent> = {
|
||||
githubSponsors: Sparkles,
|
||||
kofi: KofiIcon,
|
||||
buyMeACoffee: BuyMeACoffeeIcon,
|
||||
patreon: PatreonIcon,
|
||||
@@ -154,8 +152,8 @@ export function AboutPage() {
|
||||
<div className="flex flex-wrap gap-2">
|
||||
<Button asChild variant="secondary" size="sm">
|
||||
<a href={ABOUT.repo} target="_blank" rel="noopener noreferrer">
|
||||
<GithubIcon aria-hidden />
|
||||
GitHub
|
||||
<GiteaIcon aria-hidden />
|
||||
{t("about.repoLabel")}
|
||||
</a>
|
||||
</Button>
|
||||
<Button asChild variant="secondary" size="sm">
|
||||
@@ -169,22 +167,17 @@ export function AboutPage() {
|
||||
</Card>
|
||||
|
||||
<div className="grid gap-4 md:grid-cols-2">
|
||||
<Section title={t("about.repoHeading")} icon={<GithubIcon aria-hidden />}>
|
||||
<Section title={t("about.repoHeading")} icon={<GiteaIcon aria-hidden />}>
|
||||
<ExternalRow
|
||||
href={ABOUT.website}
|
||||
icon={Globe}
|
||||
label={t("about.websiteLabel")}
|
||||
hint="ytgenerator.stream"
|
||||
/>
|
||||
<ExternalRow href={ABOUT.repo} icon={GithubIcon} label={t("about.repoLabel")} />
|
||||
<ExternalRow href={ABOUT.wikiUrl} icon={BookOpen} label={t("about.wikiLabel")} />
|
||||
<ExternalRow href={ABOUT.repo} icon={GiteaIcon} label={t("about.repoLabel")} />
|
||||
<ExternalRow href={ABOUT.issuesUrl} icon={GitlabIcon} label={t("about.issuesLabel")} />
|
||||
<ExternalRow
|
||||
href={ABOUT.discussionsUrl}
|
||||
icon={MessagesSquare}
|
||||
label={t("about.discussionsLabel")}
|
||||
/>
|
||||
<ExternalRow
|
||||
href={ABOUT.author.github}
|
||||
href={ABOUT.author.profile}
|
||||
icon={Users}
|
||||
label={t("about.authorLabel")}
|
||||
hint={ABOUT.author.name}
|
||||
|
||||
@@ -16,12 +16,12 @@ describe("rewriteHref", () => {
|
||||
[
|
||||
"CONTRIBUTING.md",
|
||||
"TERMS.md",
|
||||
"https://github.com/poli0981/youtube-generator/blob/main/CONTRIBUTING.md",
|
||||
"https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/CONTRIBUTING.md",
|
||||
],
|
||||
[
|
||||
"./docs/I18N.md#adding",
|
||||
"README.md",
|
||||
"https://github.com/poli0981/youtube-generator/blob/main/docs/I18N.md#adding",
|
||||
"https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/docs/I18N.md#adding",
|
||||
],
|
||||
["https://example.com/x", "TERMS.md", "https://example.com/x"],
|
||||
["mailto:legal@poli0981.dev", "TERMS.md", "mailto:legal@poli0981.dev"],
|
||||
@@ -92,11 +92,11 @@ describe("renderAllLegalDocs (the real repository files)", () => {
|
||||
expect(docs.privacy.effective).toMatch(/^\d{4}-\d{2}-\d{2}$/);
|
||||
});
|
||||
|
||||
it("no longer sends readers to GitHub for another legal document", () => {
|
||||
it("never sends readers to the forge for another legal document", () => {
|
||||
for (const id of LEGAL_DOC_IDS) {
|
||||
const html = docs[id].html.en ?? "";
|
||||
expect(html, id).not.toMatch(
|
||||
/github\.com\/[^"]+\/blob\/main\/(TERMS|PRIVACY|DISCLAIMER|SECURITY|LICENSE)/,
|
||||
/(?:github\.com\/[^"]+\/blob|\/src\/branch)\/main\/(TERMS|PRIVACY|DISCLAIMER|SECURITY|LICENSE)/,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -15,11 +15,8 @@ describe("security.txt", () => {
|
||||
.filter((line) => line.startsWith(`${name}: `))
|
||||
.map((line) => line.slice(name.length + 2));
|
||||
|
||||
it("names the security mailbox and GitHub advisories as contacts", () => {
|
||||
expect(field("Contact")).toEqual([
|
||||
"mailto:security@poli0981.dev",
|
||||
"https://github.com/poli0981/youtube-generator/security/advisories/new",
|
||||
]);
|
||||
it("names the security mailbox as the only contact (reports go by e-mail)", () => {
|
||||
expect(field("Contact")).toEqual(["mailto:security@poli0981.dev"]);
|
||||
});
|
||||
|
||||
it("expires under a year after the build, as RFC 9116 recommends", () => {
|
||||
|
||||
@@ -49,7 +49,7 @@ describe("checkNotices", () => {
|
||||
it("reports a notice whose years are behind", () => {
|
||||
const read = (file: string) =>
|
||||
file === "NOTICE"
|
||||
? "YTDescGen\nCopyright 2026 poli0981 (https://github.com/poli0981)\n"
|
||||
? "YTDescGen\nCopyright 2026 poli0981 (https://git.poli0981.dev/poli0981)\n"
|
||||
: "nothing here";
|
||||
const [notice, reuse] = checkNotices(2027, read);
|
||||
expect(notice).toMatchObject({ found: "2026", expected: "2026-2027" });
|
||||
|
||||
@@ -1,109 +0,0 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { readBackupText } from "@utils/backup/detect";
|
||||
import { sanitizeSections } from "@utils/backup/sanitize";
|
||||
import { initialSettings } from "@store/settings-heal";
|
||||
|
||||
/**
|
||||
* The page left on poli0981.github.io/youtube-generator hands users their
|
||||
* old data as a backup file. This is the file it writes for a typical
|
||||
* v0.38 browser (zustand's `{ state, version }` per store), byte for byte.
|
||||
*/
|
||||
const FROM_MIGRATION_PAGE = JSON.stringify({
|
||||
_app: "ytdescgen",
|
||||
_format: 2,
|
||||
_type: "backup",
|
||||
_schemaVersion: 1,
|
||||
_appVersion: "0.38.0",
|
||||
_exportedAt: "2026-09-30T15:32:31.505Z",
|
||||
_source: "poli0981.github.io/youtube-generator",
|
||||
data: {
|
||||
profiles: {
|
||||
version: 2,
|
||||
items: [
|
||||
{
|
||||
id: "old-1",
|
||||
name: "Old main",
|
||||
channelName: "Skullmute",
|
||||
social: {},
|
||||
rig: { gpu: "nvidia|rtx_40|RTX 4070" },
|
||||
resolution: "1080p",
|
||||
fps: "60",
|
||||
graphicsPreset: "Ultra",
|
||||
thirdPartyAdText: "",
|
||||
createdAt: "2026-05-01T00:00:00.000Z",
|
||||
updatedAt: "2026-05-01T00:00:00.000Z",
|
||||
},
|
||||
],
|
||||
},
|
||||
history: {
|
||||
version: 2,
|
||||
items: [
|
||||
{
|
||||
id: "h1",
|
||||
gameName: "Hades",
|
||||
videoType: "part",
|
||||
language: "en",
|
||||
genres: ["action"],
|
||||
title: "Hades Part 1",
|
||||
description: "d",
|
||||
tags: "t",
|
||||
createdAt: "2026-05-02T00:00:00.000Z",
|
||||
},
|
||||
{
|
||||
id: "h2",
|
||||
gameName: "Hades",
|
||||
videoType: "part",
|
||||
language: "en",
|
||||
genres: ["action"],
|
||||
title: "Hades Part 1",
|
||||
description: "d2",
|
||||
tags: "t",
|
||||
createdAt: "2026-05-03T00:00:00.000Z",
|
||||
},
|
||||
],
|
||||
},
|
||||
settings: { version: 12, value: { theme: "light", appLanguage: "vi", legalConsentVersion: 1 } },
|
||||
},
|
||||
});
|
||||
|
||||
describe("GitHub Pages migration page", () => {
|
||||
it("writes a file the restore reads, migrating the old data", () => {
|
||||
const result = readBackupText(FROM_MIGRATION_PAGE);
|
||||
if (!result.ok || result.file.kind !== "data") throw new Error("not restorable");
|
||||
const clean = sanitizeSections(result.file.sections, {
|
||||
...initialSettings,
|
||||
legalConsentVersion: 2,
|
||||
});
|
||||
expect(clean.profiles?.[0]).toMatchObject({
|
||||
name: "Old main",
|
||||
rig: { gpu: "gpu:nvidia-rtx-4070" },
|
||||
graphicsPreset: "ultra",
|
||||
});
|
||||
// v0.38 history piled up one entry per Output visit; v3 keeps one per video.
|
||||
expect(clean.history).toHaveLength(1);
|
||||
expect(clean.settings).toMatchObject({
|
||||
theme: "light",
|
||||
appLanguage: "vi",
|
||||
legalConsentVersion: 2,
|
||||
});
|
||||
});
|
||||
|
||||
it("reads every store the app saved, under the keys the app used", () => {
|
||||
const script = fs.readFileSync(
|
||||
path.resolve(import.meta.dirname, "../../migration-page/app.js"),
|
||||
"utf8",
|
||||
);
|
||||
for (const key of [
|
||||
"ytdescgen-profiles",
|
||||
"ytdescgen-presets",
|
||||
"ytdescgen-templates",
|
||||
"ytdescgen-history",
|
||||
"ytdescgen-settings",
|
||||
"ytdescgen-editor-draft",
|
||||
]) {
|
||||
expect(script).toContain(`"${key}"`);
|
||||
}
|
||||
});
|
||||
});
|
||||
+2
-5
@@ -21,10 +21,7 @@ export default defineConfig({
|
||||
// `npm run test:coverage` (what CI runs). It measures the logic layers —
|
||||
// what the unit tests are for. Components, pages and hooks are checked in
|
||||
// the running app (no test renders one), i18n is i18next set-up, and
|
||||
// scripts/ is CI tooling. SonarCloud reads the LCOV file (the `sonarcloud`
|
||||
// job in ci.yml) and counts a file missing from it as 0 % covered, so
|
||||
// `sonar.coverage.exclusions` in sonar-project.properties lists everything
|
||||
// outside this scope — keep the two in step.
|
||||
// scripts/ is CI tooling.
|
||||
//
|
||||
// Thresholds sit just under the measured coverage so they catch
|
||||
// regressions without blocking work; raise them as tests are added. The
|
||||
@@ -41,7 +38,7 @@ export default defineConfig({
|
||||
"build-plugins/**",
|
||||
],
|
||||
exclude: ["worker/index.ts"],
|
||||
reporter: ["text-summary", "json-summary", "lcovonly"],
|
||||
reporter: ["text-summary", "json-summary"],
|
||||
thresholds: {
|
||||
"src/engine/**": { statements: 88, branches: 85, functions: 60, lines: 88 },
|
||||
"worker/**": { statements: 95, branches: 85, functions: 95, lines: 95 },
|
||||
|
||||
+4
-5
@@ -1,12 +1,11 @@
|
||||
// Cloudflare Workers configuration for https://ytgenerator.stream.
|
||||
//
|
||||
// This is the only deployment file in the repo: Workers Builds (connected to
|
||||
// this GitHub repository in the Cloudflare dashboard) runs `npx wrangler
|
||||
// deploy` on every push to `main`, and `build.command` below produces `dist/`.
|
||||
// There is no GitHub Actions deploy workflow. See docs/HOSTING.md.
|
||||
// This is the only deployment file in the repo: the `deploy` job of
|
||||
// .gitea/workflows/ci.yml runs `wrangler deploy` after every green push to
|
||||
// `main`, and `build.command` below produces `dist/`. See docs/HOSTING.md.
|
||||
{
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
// Must match the Worker the repository is connected to in the dashboard.
|
||||
// Must match the Worker in the Cloudflare dashboard.
|
||||
"name": "youtube-generator",
|
||||
// The Turnstile gate + security headers in front of the static build.
|
||||
"main": "worker/index.ts",
|
||||
|
||||
Reference in new issue
Block a user