fix: deploy the real build to freeitchgames.win + Phase 0 hotfixes (#81)
- Add webapp/wrangler.jsonc (Workers static assets from ./dist, SPA fallback, workers_dev/preview_urls off) and build the web app to webapp/dist. The config-less Workers Builds deploy was serving the raw webapp/ source tree (blank page, /package.json and /src/* public). - npm audit fix in-range (vite 8.3.0, react-router-dom 7.18.4, postcss 8.5.28, transitive fixes): closes all Dependabot alerts, audit = 0. Add wrangler as a pinned devDependency, engines node >=22.22, .node-version 24. - public/_headers: Referrer-Policy, frame denial, Permissions-Policy, COOP, CSP report-only; immutable cache for hashed /assets/*. - release_android.yml: Node 24 action majors (setup-java v6, upload-artifact v7, setup-android v4, checkout/setup-node v7), SHA-pinned, timeout + concurrency, tag via env. - GitHub Pages now publishes only a redirect stub (pages-redirect/) that keeps #/ routes and clears the old PAT/GPG localStorage keys; drop notify-deploy.yml. - .gitattributes: fix invalid '* text = auto' / '* eol = lf'; binary rules; stop export-ignoring README/policy docs. .gitignore: local contacts/QR assets, wrangler state, .dev.vars, keystores. - Scraper workflows: unbuffered UTF-8 logs; pause the schedules of check_paid/check_alive/update_reviews/update_status (full passes over 2,600+ games exceed their timeouts and lose all work). - Point canonical/og/manifest/sitemap/robots and doc links at freeitchgames.win; regenerate OG image (fit title); interim Cloudflare notice in the Privacy Policy. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
72da856714
commit
1c600586a4
46 files changed
+2154
-432
No files matched your search
+17
-9
@@ -1,7 +1,21 @@
|
||||
* text = auto
|
||||
* eol = lf
|
||||
* text=auto eol=lf
|
||||
|
||||
# Binary assets (never normalize)
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.gif binary
|
||||
*.webp binary
|
||||
*.ico binary
|
||||
*.icns binary
|
||||
*.tiff binary
|
||||
*.jks binary
|
||||
*.keystore binary
|
||||
*.rtf -text
|
||||
|
||||
# Generated catalog data: collapse in GitHub diffs / language stats
|
||||
data_game/*.json linguist-generated=true
|
||||
|
||||
/tests/ export-ignore
|
||||
/.github/* export-ignore
|
||||
.gitignore export-ignore
|
||||
.gitattributes export-ignore
|
||||
@@ -9,13 +23,7 @@
|
||||
.idea/ export-ignore
|
||||
.vscode/ export-ignore
|
||||
|
||||
CODE_OF_CONDUCT.md export-ignore
|
||||
CONTRIBUTING.md export-ignore
|
||||
SECURITY.md export-ignore
|
||||
/docs/My_Stuff.md export-ignore
|
||||
/docs/PrivacyPolicy.md export-ignore
|
||||
CHANGELOG.md export-ignore
|
||||
README.md export-ignore
|
||||
|
||||
*.csv export-ignore
|
||||
*.log export-ignore
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
# Schedule removed 2026-09: full passes over 2,600+ games exceed the job timeout
|
||||
# and lose all work. Replaced by the rotating refresh.yml in v4 Phase 1.
|
||||
name: Check dead game links
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 7 */2 * *' # Every 2 days at 07:00 UTC (3h after check_paid)
|
||||
workflow_dispatch:
|
||||
|
||||
# Unbuffered UTF-8 output so progress survives a timeout/cancel.
|
||||
env:
|
||||
PYTHONUNBUFFERED: '1'
|
||||
PYTHONUTF8: '1'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
# Schedule removed 2026-09: full passes over 2,600+ games exceed the job timeout
|
||||
# and lose all work. Replaced by the rotating refresh.yml in v4 Phase 1.
|
||||
name: Check paid games
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 4 */2 * *' # Every 2 days at 04:00 UTC
|
||||
workflow_dispatch:
|
||||
|
||||
# Unbuffered UTF-8 output so progress survives a timeout/cancel.
|
||||
env:
|
||||
PYTHONUNBUFFERED: '1'
|
||||
PYTHONUTF8: '1'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
name: Deploy webapp to GitHub Pages
|
||||
# LEGACY — the site now deploys from Cloudflare Workers Builds (webapp/wrangler.jsonc).
|
||||
# This workflow only publishes the pages-redirect/ stub so old
|
||||
# poli0981.github.io/free-games-itchio-list links forward to freeitchgames.win
|
||||
# (and the stub clears the old in-browser PAT/GPG keys). Delete in v4 Phase 1;
|
||||
# GitHub Pages keeps serving the last deployment.
|
||||
name: Publish GitHub Pages redirect
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'webapp/**'
|
||||
- 'pages-redirect/**'
|
||||
- '.github/workflows/deploy_webapp.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: pages
|
||||
@@ -20,41 +22,35 @@ concurrency:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 5
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v6
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
cache-dependency-path: webapp/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: webapp
|
||||
run: npm ci
|
||||
|
||||
- name: Build webapp
|
||||
working-directory: webapp
|
||||
run: npm run build
|
||||
persist-credentials: false
|
||||
sparse-checkout: pages-redirect
|
||||
|
||||
- name: Configure GitHub Pages
|
||||
uses: actions/configure-pages@v6
|
||||
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
|
||||
|
||||
- name: Upload Pages artifact
|
||||
uses: actions/upload-pages-artifact@v4
|
||||
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
|
||||
with:
|
||||
path: docs/app
|
||||
path: pages-redirect
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
permissions:
|
||||
pages: write
|
||||
id-token: write
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v5
|
||||
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
|
||||
@@ -7,6 +7,11 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
|
||||
# Unbuffered UTF-8 output so progress survives a timeout/cancel.
|
||||
env:
|
||||
PYTHONUNBUFFERED: '1'
|
||||
PYTHONUTF8: '1'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
name: Notify Deploy Status
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows:
|
||||
- "Deploy webapp to GitHub Pages"
|
||||
types: [completed]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
uses: poli0981/.github/.github/workflows/notify-deploy.yml@main
|
||||
secrets: inherit
|
||||
@@ -26,17 +26,26 @@ on:
|
||||
env:
|
||||
NDK_VERSION: '27.3.13750724'
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: release-android-${{ github.ref }}
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build-android:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 90
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v4
|
||||
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '17'
|
||||
@@ -46,9 +55,9 @@ jobs:
|
||||
# (it hard-errors otherwise). rust-cache + npm cache still apply.
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v6
|
||||
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 24
|
||||
cache: npm
|
||||
cache-dependency-path: webapp/package-lock.json
|
||||
|
||||
@@ -58,12 +67,12 @@ jobs:
|
||||
targets: aarch64-linux-android
|
||||
|
||||
- name: Cache cargo
|
||||
uses: Swatinem/rust-cache@v2
|
||||
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
||||
with:
|
||||
workspaces: webapp/src-tauri
|
||||
|
||||
- name: Set up Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
|
||||
|
||||
- name: Install NDK + build-tools + platform
|
||||
# Tauri 2.11 generates compileSdk/targetSdk = 36, so provision android-36
|
||||
@@ -122,7 +131,7 @@ jobs:
|
||||
echo "apk_name=$OUT" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload APK as workflow artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
with:
|
||||
name: ${{ steps.sign.outputs.apk_name }}
|
||||
path: ${{ steps.sign.outputs.apk_path }}
|
||||
@@ -132,11 +141,12 @@ jobs:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
REPO: ${{ github.repository }}
|
||||
APK_PATH: ${{ steps.sign.outputs.apk_path }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
TAG="${{ github.ref_name }}"
|
||||
REPO="${{ github.repository }}"
|
||||
# Create the draft if the desktop workflow hasn't yet (ordering-safe).
|
||||
gh release view "$TAG" --repo "$REPO" >/dev/null 2>&1 \
|
||||
|| gh release create "$TAG" --repo "$REPO" --draft --notes "Pending installers."
|
||||
gh release upload "$TAG" "${{ steps.sign.outputs.apk_path }}" --repo "$REPO" --clobber
|
||||
gh release upload "$TAG" "$APK_PATH" --repo "$REPO" --clobber
|
||||
@@ -9,6 +9,11 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
|
||||
# Unbuffered UTF-8 output so progress survives a timeout/cancel.
|
||||
env:
|
||||
PYTHONUNBUFFERED: '1'
|
||||
PYTHONUTF8: '1'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
# Schedule removed 2026-09: full passes over 2,600+ games exceed the job timeout
|
||||
# and lose all work. Replaced by the rotating refresh.yml in v4 Phase 1.
|
||||
name: Update reviews
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 5 1,15 * *' # 05:00 UTC on the 1st and 15th of each month
|
||||
workflow_dispatch:
|
||||
|
||||
# Unbuffered UTF-8 output so progress survives a timeout/cancel.
|
||||
env:
|
||||
PYTHONUNBUFFERED: '1'
|
||||
PYTHONUTF8: '1'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
# Schedule removed 2026-09: full passes over 2,600+ games exceed the job timeout
|
||||
# and lose all work. Replaced by the rotating refresh.yml in v4 Phase 1.
|
||||
name: Update status
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 6 1 * *' # 06:00 UTC on the 1st of each month
|
||||
workflow_dispatch:
|
||||
|
||||
# Unbuffered UTF-8 output so progress survives a timeout/cancel.
|
||||
env:
|
||||
PYTHONUNBUFFERED: '1'
|
||||
PYTHONUTF8: '1'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
|
||||
+15
-1
@@ -1,4 +1,18 @@
|
||||
/docs/app/
|
||||
# Local-only files (personal contacts, QR assets)
|
||||
/username.txt
|
||||
/assets/qr/
|
||||
|
||||
# Cloudflare Wrangler local state / secrets
|
||||
.wrangler/
|
||||
.dev.vars*
|
||||
!.dev.vars.example
|
||||
.env*
|
||||
!.env.example
|
||||
|
||||
# Android signing material
|
||||
*.jks
|
||||
*.keystore
|
||||
|
||||
/webapp/node_modules/
|
||||
/webapp/dist/
|
||||
/webapp/src-tauri/target/
|
||||
|
||||
@@ -2,6 +2,36 @@
|
||||
|
||||
All notable changes to this project will be documented here.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- **freeitchgames.win served the unbuilt `webapp/` source tree** (blank page; `/package.json`,
|
||||
`/src/*` publicly readable). Added [`webapp/wrangler.jsonc`](webapp/wrangler.jsonc) (Workers
|
||||
static assets, SPA fallback, `workers_dev`/`preview_urls` off) and moved the Vite web build to
|
||||
`webapp/dist` so Cloudflare Workers Builds deploys the real build.
|
||||
- **All 15 Dependabot alerts / npm audit** — lockfile refreshed in-range (vite 8.3.0,
|
||||
react-router-dom 7.18.4, postcss 8.5.28, patched transitive deps); `npm audit` reports 0.
|
||||
- **Android release workflow** moved off Node 20 actions (setup-java v6, upload-artifact v7,
|
||||
setup-android v4, checkout/setup-node v7), SHA-pinned, with a timeout and the tag passed via env.
|
||||
- **`.gitattributes`** — `* text = auto` / `* eol = lf` were invalid (spaces around `=`); now
|
||||
`* text=auto eol=lf` with binary rules, and legal/policy docs ship in source archives again.
|
||||
- OG image, manifest (`start_url`/`scope`/`id` = `/`), canonical/og URLs, sitemap and robots now
|
||||
point at freeitchgames.win; OG title no longer overflows.
|
||||
|
||||
### Changed
|
||||
|
||||
- GitHub Pages now only publishes a redirect stub ([`pages-redirect/`](pages-redirect)) that
|
||||
forwards to freeitchgames.win (keeping `#/` routes) and deletes the old app's PAT/GPG keys from
|
||||
that origin. `notify-deploy.yml` removed.
|
||||
- Static-asset security headers in [`webapp/public/_headers`](webapp/public/_headers)
|
||||
(Referrer-Policy, frame denial, Permissions-Policy, COOP; CSP in report-only mode for now) and
|
||||
immutable caching for hashed `/assets/*`.
|
||||
- Scraper workflows print unbuffered UTF-8 logs. The schedules of `check_paid`, `check_alive`,
|
||||
`update_reviews` and `update_status` are paused (manual dispatch only): full passes over 2,600+
|
||||
games exceed their timeouts and lose all work. A rotating refresh replaces them next.
|
||||
- Privacy Policy: interim Cloudflare hosting notice (§3a); dead `…/app/` links repointed.
|
||||
|
||||
## [3.9.0] - 2026-06-15 (Android minSdk → 11 / API 30)
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -20,7 +20,7 @@ Two layers stacked on the same JSON catalog of free itch.io games:
|
||||
cd webapp
|
||||
npm install
|
||||
npm run dev # http://localhost:5173
|
||||
npm run build # writes to ../docs/app/ (NOT webapp/dist — that path is Tauri-only)
|
||||
npm run build # writes to webapp/dist/ (web → Cloudflare Workers Builds; Tauri uses the same dir)
|
||||
npm run tauri:dev # native window; needs Rust toolchain
|
||||
npm run tauri:build # native installers
|
||||
npm run tauri icon -- path/to/source-1024.png # regenerate src-tauri/icons/
|
||||
@@ -70,7 +70,7 @@ Of the 23 fields per game, only **3** are user-editable: `safe_virus`, `notes`,
|
||||
| `force_update.yml` | `workflow_dispatch` ONLY (optional `url` input) | Emergency re-scrape. Empty input = re-scrape all. Always preserves `safe_virus` / `notes` / `nsfw`. Canonical tool for repairing mojibake. |
|
||||
| `generate_table.yml` | After update / check / refresh workflows succeed | Rebuilds `lists/*.md`. Chain list lives in this file under `workflow_run.workflows` — keep in sync when adding scrape workflows. |
|
||||
| `log_deleted.yml` | After check workflows | Exports `deleted_games.txt`. |
|
||||
| `deploy_webapp.yml` | Push to `main` touching `webapp/`, or manual | Builds → `docs/app/` → GitHub Pages. Requires repo Settings → Pages → Source = "GitHub Actions". |
|
||||
| `deploy_webapp.yml` | Push to `main` touching `pages-redirect/`, or manual | **Legacy.** Publishes only the `pages-redirect/` stub to GitHub Pages (github.io → freeitchgames.win). The real site deploys via Cloudflare Workers Builds from `webapp/wrangler.jsonc`. To be deleted in v4 Phase 1. |
|
||||
| `release_desktop.yml` | Tag `v*` push, or manual | Tauri build for Win + macOS aarch64 + macOS x86_64 (cross-compile) + Linux. Uploads `.dmg` / `.app.tar.gz` / `.pkg` (macOS), `.msi` / `.exe` (Windows), `.deb` / `.AppImage` (Linux). macOS `.pkg` `--identifier` reads `tauri.conf.json` so it never drifts from the bundle ID. |
|
||||
| `release_android.yml` | Tag `v*` push, or manual | Tauri **Android** build → arm64-v8a APK, **post-signed** with `zipalign`+`apksigner` (gen/ stays gitignored). Tag → attaches to the same draft Release; manual dispatch → uploads as a workflow artifact. Secrets: `ANDROID_KEYSTORE_BASE64` / `ANDROID_KEYSTORE_PASSWORD` / `ANDROID_KEY_ALIAS`. |
|
||||
|
||||
@@ -105,7 +105,7 @@ Fine-grained PAT scoped to **only this repo** with:
|
||||
7. **lucide-react v1+** removed/renamed brand icons (`Github` → not available). Use `Library`, `Database`, etc. for repo icons.
|
||||
8. **`/repos/.../contents` `content` is base64 with newlines AND base64-decoded data is UTF-8.** Strip newlines first, but `atob` alone returns a Latin-1 binary string — multi-byte UTF-8 sequences become mojibake. Go through `TextDecoder('utf-8')` via the `base64ToUtf8` helper in `webapp/src/lib/github/encoding.ts`. The matching `utf8ToBase64` is correct as-is.
|
||||
9. **`createWorkflowDispatch` returns 204 with no run id.** To track the run, list runs filtered by `event=workflow_dispatch` and a dispatch timestamp from a few seconds before.
|
||||
10. **`docs/app/` is gitignored.** CI builds it. Don't commit build output.
|
||||
10. **`webapp/dist/` is gitignored.** Cloudflare Workers Builds (root dir `webapp`, `npm run build`, `npx wrangler deploy`) builds and deploys it. Never point `assets.directory` at a source dir — in Sept 2026 a config-less deploy served the raw `webapp/` tree.
|
||||
11. **PUT `/repos/.../contents/{path}` can never be "Verified".** GitHub authors that commit itself from the PAT; there is no `signature` field. All webapp writes must go through the Git Data API (blob → tree → commit → updateRef) to allow GPG signing. `contents.ts` `putFile` was removed for this reason — use `commitSingleFile` (wraps `atomicCommit`).
|
||||
12. **GPG signing must use binary mode in openpgp.js.** `openpgp.createMessage({ text })` normalizes line endings before hashing → signature won't verify against the LF-only Git commit object. Use `createMessage({ binary: TextEncoder.encode(canonical) })`.
|
||||
13. **Commit object canonical timestamp must match Octokit's `author.date` exactly.** GitHub re-derives `<unix_ts> <±HHMM>` from the ISO date and recomputes the SHA. Use a single `ts + tzOffsetMin` source for both, derive `author.date` via `isoFromTs(ts, tzOffsetMin)`.
|
||||
@@ -125,4 +125,4 @@ Fine-grained PAT scoped to **only this repo** with:
|
||||
|
||||
## Current state (as of v3.9.0)
|
||||
|
||||
`main` is the trunk. Tags `v3.0.0` through `v3.8.0` are released (all GPG-signed); **v3.9.0 is implemented but pending release** (awaiting test + authorization). The webapp is published at `https://poli0981.github.io/free-games-itchio-list/app/`. v3.7.0 added the first-launch legal-acceptance gate, the Windows installer EULA page, and per-tab lazy-loading of the charts route; v3.7.1 was a desktop-build hotfix (installer EULA via `bundle.licenseFile` RTF — see gotcha #15). **v3.8.0** added the **Android APK** target: same React + Tauri app shipped as a sideloadable arm64-v8a `.apk` (`release_android.yml`, post-signed), attached to the same draft Release as the desktop installers. It also fixed the bundle `identifier` to be Android-valid (`com.poli0981.freegamesitchio`, gotcha #16) and realigned `tauri.conf.json`/`Cargo.toml`/`about.ts` versions to `3.8.0` (gotcha #18). Mobile UX: Android back button → router history (`useBackButton`), safe-area insets, and a platform-aware sidebar badge ("Desktop app" / "Mobile app"). Added dep: `@tauri-apps/api`. CI note: the Android JDK setup must NOT use `cache: gradle` — `gen/android` is gitignored and generated mid-job, so there are no gradle files at checkout to key on (it hard-fails); rust-cache + npm cache still apply. **v3.9.0** raises the Android APK floor from `minSdkVersion` 24 (Android 7.0) to **30 (Android 11)** — the OS-level install gate, chosen for security hardening + patch availability + our tested range, at ≈86.9% device reach (gotcha #19); docs (`TAURI.md`, both READMEs, `docs/pc_spec.md` + VI mirrors) updated with cited data, and the changelog backfilled the previously-missing `[3.8.0]` entry.
|
||||
`main` is the trunk. Tags `v3.0.0` through `v3.8.0` are released (all GPG-signed); **v3.9.0 is implemented but pending release** (awaiting test + authorization). The webapp is published at `https://freeitchgames.win/` (Cloudflare Workers Builds; the old github.io URL only redirects). v3.7.0 added the first-launch legal-acceptance gate, the Windows installer EULA page, and per-tab lazy-loading of the charts route; v3.7.1 was a desktop-build hotfix (installer EULA via `bundle.licenseFile` RTF — see gotcha #15). **v3.8.0** added the **Android APK** target: same React + Tauri app shipped as a sideloadable arm64-v8a `.apk` (`release_android.yml`, post-signed), attached to the same draft Release as the desktop installers. It also fixed the bundle `identifier` to be Android-valid (`com.poli0981.freegamesitchio`, gotcha #16) and realigned `tauri.conf.json`/`Cargo.toml`/`about.ts` versions to `3.8.0` (gotcha #18). Mobile UX: Android back button → router history (`useBackButton`), safe-area insets, and a platform-aware sidebar badge ("Desktop app" / "Mobile app"). Added dep: `@tauri-apps/api`. CI note: the Android JDK setup must NOT use `cache: gradle` — `gen/android` is gitignored and generated mid-job, so there are no gradle files at checkout to key on (it hard-fails); rust-cache + npm cache still apply. **v3.9.0** raises the Android APK floor from `minSdkVersion` 24 (Android 7.0) to **30 (Android 11)** — the OS-level install gate, chosen for security hardening + patch availability + our tested range, at ≈86.9% device reach (gotcha #19); docs (`TAURI.md`, both READMEs, `docs/pc_spec.md` + VI mirrors) updated with cited data, and the changelog backfilled the previously-missing `[3.8.0]` entry.
|
||||
+3
-3
@@ -17,7 +17,7 @@ Please use the issue/PR templates — they make my life easier and reduce "wtf"
|
||||
Faster batch path if you have many links and don't want to file an issue per
|
||||
batch. Privacy-conscious — your Telegram numeric ID never enters this repo.
|
||||
|
||||
1. **Contact owner** privately on Telegram ([@SkullMute0011](https://t.me/SkullMute0011)) — or via any channel listed in [About](https://poli0981.github.io/free-games-itchio-list/app/#/about) → Find me elsewhere.
|
||||
1. **Contact owner** privately on Telegram ([@SkullMute0011](https://t.me/SkullMute0011)) — or via any channel listed in [About](https://freeitchgames.win/#/about) → Find me elsewhere.
|
||||
2. **Find your Telegram numeric ID** — e.g. send `/start` to [@userinfobot](https://t.me/userinfobot) and copy the ID it returns.
|
||||
3. **DM your ID to the owner.** **Never** post your numeric ID into Discord, X, GitHub comments, or any public channel.
|
||||
4. Owner adds your ID to the bot's local whitelist (operator-side, not committed to this repo).
|
||||
@@ -73,7 +73,7 @@ The browse/edit UI lives in [`webapp/`](webapp/). Same MIT license, same PR temp
|
||||
cd webapp
|
||||
npm install
|
||||
npm run dev # http://localhost:5173
|
||||
npm run build # writes to docs/app/ (verify before pushing)
|
||||
npm run build # writes to webapp/dist/ (verify before pushing)
|
||||
npm run lint # eslint
|
||||
```
|
||||
|
||||
@@ -85,7 +85,7 @@ npm run tauri:build # produce installers in src-tauri/target/release/bundle/
|
||||
```
|
||||
|
||||
**House rules**:
|
||||
- Don't commit `webapp/dist/` or `docs/app/` — CI builds them on push to `main`.
|
||||
- Don't commit `webapp/dist/` — Cloudflare Workers Builds builds it on push to `main`.
|
||||
- Don't commit a real PAT into the repo (that's also a webapp Settings concern, not a CI concern).
|
||||
- Add new third-party deps? Update `webapp/src/lib/about.ts` so the About page lists them.
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ Local dev:
|
||||
cd webapp
|
||||
npm install
|
||||
npm run dev # http://localhost:5173
|
||||
npm run build # writes to docs/app/
|
||||
npm run build # writes to webapp/dist/
|
||||
npm run tauri:dev # native desktop (requires Rust)
|
||||
```
|
||||
|
||||
@@ -169,7 +169,7 @@ webapp/ # React + TS SPA + Tauri desktop & Android wrapper
|
||||
| Check paid games | Every 2 days 04:00 UTC | Remove games that became paid |
|
||||
| Check dead links | Every 2 days 07:00 UTC | Remove 404/410 game pages |
|
||||
| Log deleted games | After check workflows | Export deletion log to `deleted_games.txt` |
|
||||
| Deploy webapp | On push to main | Build `webapp/` → GitHub Pages (`docs/app/`) |
|
||||
| Deploy webapp | On push to main | Cloudflare Workers Builds (`webapp/wrangler.jsonc`) → freeitchgames.win |
|
||||
| Release desktop | On `v*` tag push | Build Tauri installers (Win/macOS/Linux) → draft Release |
|
||||
| Release Android | On `v*` tag push | Build signed APK (arm64-v8a) → draft Release |
|
||||
|
||||
@@ -231,7 +231,7 @@ Two Discord servers exist now (the "if I ever make one" disclaimer is officially
|
||||
- **Support** (totally optional, mirrors [`.github/FUNDING.yml`](.github/FUNDING.yml)): [GitHub Sponsors](https://github.com/sponsors/poli0981) · [Patreon](https://patreon.com/skullmute) · [Ko-fi](https://ko-fi.com/skullmute) · [Buy Me a Coffee](https://buymeacoffee.com/skullmute) · [PayPal](https://paypal.me/DungDang212)
|
||||
- **Gaming**: [Steam profile](https://steamcommunity.com/profiles/76561199544666292/)
|
||||
|
||||
DMs are open everywhere — replies slow, introvert max level. The About page in the [webapp](https://poli0981.github.io/free-games-itchio-list/app/#/about) has the same list with one-click buttons.
|
||||
DMs are open everywhere — replies slow, introvert max level. The About page in the [webapp](https://freeitchgames.win/#/about) has the same list with one-click buttons.
|
||||
|
||||
## Legal
|
||||
|
||||
|
||||
+3
-3
@@ -49,7 +49,7 @@ Dev cục bộ:
|
||||
cd webapp
|
||||
npm install
|
||||
npm run dev # http://localhost:5173
|
||||
npm run build # ghi vào docs/app/
|
||||
npm run build # ghi vào webapp/dist/
|
||||
npm run tauri:dev # native desktop (cần Rust)
|
||||
```
|
||||
|
||||
@@ -95,7 +95,7 @@ Xem [`README.md`](README.md#project-structure) phiên bản tiếng Anh để c
|
||||
| Check paid games | Mỗi 2 ngày 04:00 UTC | Gỡ game đã chuyển sang trả phí |
|
||||
| Check dead links | Mỗi 2 ngày 07:00 UTC | Gỡ trang game 404/410 |
|
||||
| Log deleted games | Sau check workflows | Xuất log gỡ ra `deleted_games.txt` |
|
||||
| Deploy webapp | Khi push vào main | Build `webapp/` → GitHub Pages (`docs/app/`) |
|
||||
| Deploy webapp | Khi push vào main | Cloudflare Workers Builds (`webapp/wrangler.jsonc`) → freeitchgames.win |
|
||||
| Release desktop | Khi push tag `v*` | Build installer Tauri (Win/macOS/Linux) → draft Release |
|
||||
| Release Android | Khi push tag `v*` | Build APK đã ký (arm64-v8a) → draft Release |
|
||||
|
||||
@@ -127,7 +127,7 @@ Hai server Discord giờ đã tồn tại (câu "if I ever make one" chính th
|
||||
- **Hỗ trợ** (hoàn toàn tùy chọn, mirror [`.github/FUNDING.yml`](.github/FUNDING.yml)): [GitHub Sponsors](https://github.com/sponsors/poli0981) · [Patreon](https://patreon.com/skullmute) · [Ko-fi](https://ko-fi.com/skullmute) · [Buy Me a Coffee](https://buymeacoffee.com/skullmute) · [PayPal](https://paypal.me/DungDang212)
|
||||
- **Gaming**: [Steam profile](https://steamcommunity.com/profiles/76561199544666292/)
|
||||
|
||||
DM mở khắp nơi — trả lời chậm, introvert max level. Trang About trong [webapp](https://poli0981.github.io/free-games-itchio-list/app/#/about) có cùng danh sách dạng nút bấm.
|
||||
DM mở khắp nơi — trả lời chậm, introvert max level. Trang About trong [webapp](https://freeitchgames.win/#/about) có cùng danh sách dạng nút bấm.
|
||||
|
||||
## Pháp lý
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ This repo wouldn't exist without a lot of help — mostly from tools and platfor
|
||||
|
||||
## Open-source libraries (webapp + desktop)
|
||||
|
||||
The webapp + Tauri desktop build on a stack of open-source libraries — full versioned list with licenses lives on the [About page](https://poli0981.github.io/free-games-itchio-list/app/#/about) and in [`webapp/src/lib/about.ts`](../webapp/src/lib/about.ts) (the `THIRD_PARTY` array). Highlights:
|
||||
The webapp + Tauri desktop build on a stack of open-source libraries — full versioned list with licenses lives on the [About page](https://freeitchgames.win/#/about) and in [`webapp/src/lib/about.ts`](../webapp/src/lib/about.ts) (the `THIRD_PARTY` array). Highlights:
|
||||
|
||||
- **Core**: React 19, TypeScript 6, Vite 8, React Router 7, Zustand 5
|
||||
- **UI**: Tailwind CSS 3, shadcn/ui (pattern), Radix UI primitives, lucide-react, sonner, class-variance-authority, tailwind-merge, clsx, Recharts
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ Game pages, screenshots, descriptions, tags, ratings, and thumbnails are the pro
|
||||
If you are a game developer and want your title removed from the index:
|
||||
|
||||
- File a **[Remove Games]** issue (`.github/ISSUE_TEMPLATE/remove_game.yml`) with the box "I'm the dev and don't want it listed" checked.
|
||||
- Or DM via any channel listed on the [About page](https://poli0981.github.io/free-games-itchio-list/app/#/about).
|
||||
- Or DM via any channel listed on the [About page](https://freeitchgames.win/#/about).
|
||||
|
||||
Removals are processed manually. Expect a few days (unemployed schedule, but not weeks).
|
||||
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@ This EULA applies to the **code and content of `free-games-itchio-list`** — th
|
||||
## 1. Definitions
|
||||
|
||||
- **"The Repository"** — `free-games-itchio-list` on GitHub at <https://github.com/poli0981/free-games-itchio-list>, including all source code, data files, markdown tables, and documentation.
|
||||
- **"The Webapp"** — the React + TypeScript application in `webapp/`, deployed at <https://poli0981.github.io/free-games-itchio-list/app/>.
|
||||
- **"The Webapp"** — the React + TypeScript application in `webapp/`, deployed at <https://freeitchgames.win/>.
|
||||
- **"The Desktop App"** — the Tauri 2 native build of the Webapp, distributed as installers via GitHub Releases.
|
||||
- **"The Catalog"** — the structured game metadata in `data_game/` and the rendered markdown tables in `lists/`.
|
||||
- **"The Maintainer"** — the GitHub user `poli0981` (a.k.a. SkullMute), the author of this Repository.
|
||||
@@ -33,7 +33,7 @@ The MIT license terms apply in full. Two practical reminders:
|
||||
This EULA does not grant any rights to:
|
||||
|
||||
- **The games indexed by the Catalog.** Each game is the intellectual property of its respective developer and is licensed by them via itch.io. The Catalog provides a link and metadata only; downloading, playing, modifying, or redistributing a game is governed by the developer's own terms and itch.io's terms.
|
||||
- **Third-party libraries.** The Webapp depends on numerous open-source packages (React, Tauri, shadcn/ui, etc.), each under its own license — see the **Third-party software** section of the [About page](https://poli0981.github.io/free-games-itchio-list/app/#/about).
|
||||
- **Third-party libraries.** The Webapp depends on numerous open-source packages (React, Tauri, shadcn/ui, etc.), each under its own license — see the **Third-party software** section of the [About page](https://freeitchgames.win/#/about).
|
||||
- **itch.io trademarks, logos, or service marks.** These belong to itch corp and are referenced for identification only.
|
||||
- **Thumbnails, screenshots, descriptions, or trailers** of indexed games. These are reproduced under fair-use principles for indexing/discovery and remain the property of their owners.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Privacy Policy
|
||||
|
||||
Last updated: 2026-05-10
|
||||
Last updated: 2026-09-18
|
||||
|
||||
This Privacy Policy describes how the Repository, the Webapp, and the Desktop App handle Your data. The short version: the Maintainer collects nothing on any server he controls. Everything that persists, persists locally on Your device.
|
||||
|
||||
@@ -30,6 +30,10 @@ GitHub's privacy policy: <https://docs.github.com/en/site-policy/privacy-policie
|
||||
|
||||
When You contribute (open an issue, comment, fork, submit a PR), You publish that information on GitHub under Your account. The Maintainer sees only what GitHub makes public.
|
||||
|
||||
### 3a. Cloudflare (interim notice)
|
||||
|
||||
Since September 2026 the Webapp is served from **https://freeitchgames.win** on Cloudflare (DNS, CDN and Workers static assets); the old GitHub Pages address only redirects there. To deliver and protect the site, Cloudflare processes standard request data (IP address, user agent, requested URL) and may send Network Error Logging reports or set strictly-necessary security cookies when its protections are active. See [Cloudflare's Privacy Policy](https://www.cloudflare.com/privacypolicy/). This section is an interim note; the Policy will be fully rewritten for the new architecture in v4.0.0.
|
||||
|
||||
## 4. itch.io
|
||||
|
||||
All game links in the Catalog point directly to itch.io pages. Clicking a link takes You to itch.io; what happens there is governed by itch.io's terms and privacy policy:
|
||||
@@ -53,7 +57,7 @@ The Webapp persists the following items locally and never transmits them to any
|
||||
You can erase all of the above at any time by:
|
||||
|
||||
- Clicking **Settings → Remove saved PAT** (clears the PAT entry only).
|
||||
- Using Your browser's "Clear site data" / "Clear cookies and storage" for `poli0981.github.io` (clears everything).
|
||||
- Using Your browser's "Clear site data" / "Clear cookies and storage" for `freeitchgames.win` (clears everything). The old `poli0981.github.io` address now only redirects, and that redirect page deletes any PAT/GPG data the old app left there.
|
||||
- Uninstalling the Desktop App and removing its WebView2 / WebKit profile directory (Desktop only; locations vary by OS).
|
||||
|
||||
## 6. PAT (Personal Access Token) handling — in depth
|
||||
@@ -125,7 +129,7 @@ The Maintainer may update this Policy. The `Last updated` date at the top reflec
|
||||
For questions about this Policy:
|
||||
|
||||
- Open a `[General]` or `[Feedback]` issue.
|
||||
- DM via any channel listed on the [About page](https://poli0981.github.io/free-games-itchio-list/app/#/about).
|
||||
- DM via any channel listed on the [About page](https://freeitchgames.win/#/about).
|
||||
|
||||
## 14. Final vibes
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# Third-party development tooling
|
||||
|
||||
Runtime libraries the webapp + desktop app ship with are listed on the
|
||||
[About page](https://poli0981.github.io/free-games-itchio-list/app/#/about)
|
||||
[About page](https://freeitchgames.win/#/about)
|
||||
and in [`webapp/src/lib/about.ts`](../webapp/src/lib/about.ts) (the
|
||||
`THIRD_PARTY` array). This file covers the **dev-only** tooling — stuff that
|
||||
never lands in a build but keeps the code honest.
|
||||
|
||||
+2
-2
@@ -84,7 +84,7 @@ The Maintainer never sees, transmits, or stores Your PAT. See [Privacy Policy](P
|
||||
|
||||
- The code, data structures, scripts, generated tables, webapp source, and documentation are © the Maintainer (poli0981 / SkullMute), licensed under the [MIT License](../LICENSE).
|
||||
- Games and game metadata (names, descriptions, screenshots, tags) belong to their respective developers and itch.io. See [DISCLAIMER §4](DISCLAIMER.md#4-third-party-content).
|
||||
- Third-party open-source dependencies are governed by their own licenses; see the **Third-party software** section of the [About page](https://poli0981.github.io/free-games-itchio-list/app/#/about).
|
||||
- Third-party open-source dependencies are governed by their own licenses; see the **Third-party software** section of the [About page](https://freeitchgames.win/#/about).
|
||||
|
||||
## 8. Termination
|
||||
|
||||
@@ -107,7 +107,7 @@ These Terms are governed by the laws of the **Socialist Republic of Vietnam**, w
|
||||
|
||||
Disputes are to be resolved as follows, in order:
|
||||
|
||||
1. **Informal first**: open a `[Feedback]` or `[General]` issue or DM via any channel listed on the [About page](https://poli0981.github.io/free-games-itchio-list/app/#/about). Most disagreements end here.
|
||||
1. **Informal first**: open a `[Feedback]` or `[General]` issue or DM via any channel listed on the [About page](https://freeitchgames.win/#/about). Most disagreements end here.
|
||||
2. **Mediation**: if informal contact fails, the parties may attempt mediation by mutual agreement.
|
||||
3. **Court**: if all else fails, the competent courts of Vietnam have exclusive jurisdiction.
|
||||
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ for the data layer overview.
|
||||
cd webapp
|
||||
npm install
|
||||
npm run dev # http://localhost:5173 with HMR
|
||||
npm run build # writes to ../docs/app/ (NOT webapp/dist)
|
||||
npm run build # writes to webapp/dist/ (web + Tauri)
|
||||
npm run lint
|
||||
```
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Vui lòng dùng các template issue/PR — chúng làm cuộc đời tôi dễ h
|
||||
Đường nhanh hơn cho batch nhiều link mà không muốn mở issue cho từng đợt.
|
||||
Riêng tư — Telegram ID dạng số của bạn không bao giờ vào repo này.
|
||||
|
||||
1. **Liên hệ owner** riêng tư qua Telegram ([@SkullMute0011](https://t.me/SkullMute0011)) — hoặc bất kỳ kênh nào liệt kê trong trang [About](https://poli0981.github.io/free-games-itchio-list/app/#/about) → Find me elsewhere.
|
||||
1. **Liên hệ owner** riêng tư qua Telegram ([@SkullMute0011](https://t.me/SkullMute0011)) — hoặc bất kỳ kênh nào liệt kê trong trang [About](https://freeitchgames.win/#/about) → Find me elsewhere.
|
||||
2. **Tìm Telegram numeric ID của bạn** — VD gửi `/start` cho [@userinfobot](https://t.me/userinfobot) và copy ID nó trả về.
|
||||
3. **DM ID đó cho owner.** **Tuyệt đối không** đăng numeric ID vào Discord, X, GitHub comment, hay bất kỳ kênh chung nào.
|
||||
4. Owner add ID của bạn vào whitelist cục bộ của bot (phía operator, không commit vào repo).
|
||||
@@ -75,7 +75,7 @@ UI duyệt/sửa nằm trong [`webapp/`](../../../webapp/). Cùng MIT, cùng PR
|
||||
cd webapp
|
||||
npm install
|
||||
npm run dev # http://localhost:5173
|
||||
npm run build # ghi vào docs/app/ (kiểm tra trước khi push)
|
||||
npm run build # ghi vào webapp/dist/ (kiểm tra trước khi push)
|
||||
npm run lint # eslint
|
||||
```
|
||||
|
||||
@@ -87,7 +87,7 @@ npm run tauri:build # tạo installer trong src-tauri/target/release/bundle/
|
||||
```
|
||||
|
||||
**Quy tắc nhà**:
|
||||
- Không commit `webapp/dist/` hoặc `docs/app/` — CI build chúng khi push vào `main`.
|
||||
- Không commit `webapp/dist/` — Cloudflare Workers Builds build nó khi push vào `main`.
|
||||
- Không commit PAT thật vào repo.
|
||||
- Thêm npm dep mới? Cập nhật `webapp/src/lib/about.ts` để trang About liệt kê.
|
||||
- Link external mới? Dùng `<ExtLink href="…">` từ `webapp/src/components/ext-link.tsx` — đừng dùng `<a href="…" target="_blank">` thuần. Anchor thuần hoạt động trên web nhưng im lặng vỡ trên Tauri desktop.
|
||||
|
||||
@@ -44,7 +44,7 @@ Trang game, ảnh chụp màn hình, mô tả, tag, đánh giá và thumbnail th
|
||||
Nếu bạn là nhà phát triển và muốn game của mình bị gỡ khỏi danh mục:
|
||||
|
||||
- Mở issue dạng **[Remove Games]** (`.github/ISSUE_TEMPLATE/remove_game.yml`) và tick ô "I'm the dev and don't want it listed".
|
||||
- Hoặc DM qua bất kỳ kênh nào liệt kê trên [trang About](https://poli0981.github.io/free-games-itchio-list/app/#/about).
|
||||
- Hoặc DM qua bất kỳ kênh nào liệt kê trên [trang About](https://freeitchgames.win/#/about).
|
||||
|
||||
Việc gỡ được xử lý thủ công. Dự kiến vài ngày (lịch của một dev thất nghiệp, nhưng không phải vài tuần).
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ EULA này áp dụng cho **mã nguồn và nội dung của `free-games-itchio-l
|
||||
## 1. Định nghĩa
|
||||
|
||||
- **"Repository"** — `free-games-itchio-list` trên GitHub tại <https://github.com/poli0981/free-games-itchio-list>, bao gồm toàn bộ mã nguồn, file dữ liệu, bảng markdown và tài liệu.
|
||||
- **"Webapp"** — ứng dụng React + TypeScript trong `webapp/`, deploy tại <https://poli0981.github.io/free-games-itchio-list/app/>.
|
||||
- **"Webapp"** — ứng dụng React + TypeScript trong `webapp/`, deploy tại <https://freeitchgames.win/>.
|
||||
- **"Desktop App"** — bản build native Tauri 2 của Webapp, phân phối dưới dạng installer qua GitHub Releases.
|
||||
- **"Catalog"** — metadata game có cấu trúc trong `data_game/` và các bảng markdown được tạo trong `lists/`.
|
||||
- **"Người duy trì"** — GitHub user `poli0981` (alias: SkullMute), tác giả của Repository này.
|
||||
@@ -35,7 +35,7 @@ Toàn bộ điều khoản MIT áp dụng. Hai nhắc nhở thực tế:
|
||||
EULA này không cấp quyền nào đối với:
|
||||
|
||||
- **Các game được Catalog liệt kê.** Mỗi game là sở hữu trí tuệ của nhà phát triển tương ứng và được cấp phép bởi họ thông qua itch.io. Catalog chỉ cung cấp link và metadata; việc tải về, chơi, sửa, hoặc phân phối lại game được điều chỉnh bởi điều khoản của nhà phát triển và của itch.io.
|
||||
- **Thư viện bên thứ ba.** Webapp phụ thuộc vào nhiều package open-source (React, Tauri, shadcn/ui, v.v.), mỗi cái có giấy phép riêng — xem mục **Third-party software** trong [trang About](https://poli0981.github.io/free-games-itchio-list/app/#/about).
|
||||
- **Thư viện bên thứ ba.** Webapp phụ thuộc vào nhiều package open-source (React, Tauri, shadcn/ui, v.v.), mỗi cái có giấy phép riêng — xem mục **Third-party software** trong [trang About](https://freeitchgames.win/#/about).
|
||||
- **Nhãn hiệu, logo, hoặc dấu hiệu dịch vụ của itch.io.** Chúng thuộc itch corp và được tham chiếu chỉ để nhận diện.
|
||||
- **Thumbnail, ảnh chụp màn hình, mô tả, hoặc trailer** của các game được liệt kê. Chúng được sao chép theo nguyên tắc fair-use cho mục đích lập chỉ mục/khám phá và vẫn thuộc sở hữu của chủ sở hữu.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Chính sách bảo mật (Privacy Policy)
|
||||
|
||||
Cập nhật lần cuối: 2026-05-10
|
||||
Cập nhật lần cuối: 2026-09-18
|
||||
|
||||
> **Lưu ý**: Đây là bản dịch tiếng Việt mang tính tham khảo cho cộng đồng. **Bản tiếng Anh tại [`docs/PrivacyPolicy.md`](../../PrivacyPolicy.md) là bản chính thức** và sẽ được dùng để giải thích trong trường hợp có khác biệt giữa hai phiên bản.
|
||||
|
||||
@@ -32,6 +32,10 @@ Chính sách Bảo mật của GitHub: <https://docs.github.com/en/site-policy/p
|
||||
|
||||
Khi Bạn đóng góp (mở issue, comment, fork, gửi PR), Bạn xuất bản thông tin đó trên GitHub dưới tài khoản của mình. Người duy trì chỉ thấy phần GitHub công khai.
|
||||
|
||||
### 3a. Cloudflare (thông báo tạm thời)
|
||||
|
||||
Từ tháng 9/2026, Webapp được phục vụ tại **https://freeitchgames.win** trên Cloudflare (DNS, CDN và static assets của Workers); địa chỉ GitHub Pages cũ chỉ chuyển hướng sang đây. Để phân phối và bảo vệ trang, Cloudflare xử lý dữ liệu request tiêu chuẩn (địa chỉ IP, user agent, URL được yêu cầu) và có thể gửi báo cáo Network Error Logging hoặc đặt cookie bảo mật thiết yếu khi các cơ chế bảo vệ được kích hoạt. Xem [Chính sách quyền riêng tư của Cloudflare](https://www.cloudflare.com/privacypolicy/). Đây là ghi chú tạm thời; Chính sách sẽ được viết lại toàn bộ cho kiến trúc mới ở v4.0.0.
|
||||
|
||||
## 4. itch.io
|
||||
|
||||
Tất cả link game trong Catalog trỏ trực tiếp tới trang itch.io. Click vào link sẽ đưa Bạn tới itch.io; những gì xảy ra ở đó được điều chỉnh bởi điều khoản và chính sách của itch.io:
|
||||
@@ -55,7 +59,7 @@ Webapp lưu các mục sau cục bộ và **không bao giờ** gửi chúng tớ
|
||||
Bạn có thể xóa toàn bộ những gì ở trên bất kỳ lúc nào bằng cách:
|
||||
|
||||
- Click **Settings → Remove saved PAT** (chỉ xóa entry PAT).
|
||||
- Dùng "Clear site data" / "Clear cookies and storage" của trình duyệt cho `poli0981.github.io` (xóa hết).
|
||||
- Dùng "Clear site data" / "Clear cookies and storage" của trình duyệt cho `freeitchgames.win` (xóa hết). Địa chỉ cũ `poli0981.github.io` giờ chỉ chuyển hướng, và trang chuyển hướng đó sẽ xoá mọi dữ liệu PAT/GPG mà app cũ còn để lại.
|
||||
- Gỡ Desktop App và xóa thư mục profile WebView2 / WebKit (chỉ Desktop; vị trí khác nhau theo OS).
|
||||
|
||||
## 6. Xử lý PAT — chi tiết
|
||||
@@ -127,7 +131,7 @@ Người duy trì có thể cập nhật Chính sách này. Ngày `Cập nhật
|
||||
Cho câu hỏi về Chính sách này:
|
||||
|
||||
- Mở issue `[General]` hoặc `[Feedback]`.
|
||||
- DM qua bất kỳ kênh nào liệt kê trên [trang About](https://poli0981.github.io/free-games-itchio-list/app/#/about).
|
||||
- DM qua bất kỳ kênh nào liệt kê trên [trang About](https://freeitchgames.win/#/about).
|
||||
|
||||
## 14. Lời cuối
|
||||
|
||||
|
||||
+2
-2
@@ -86,7 +86,7 @@ Người duy trì không bao giờ thấy, truyền, hoặc lưu PAT của Bạn
|
||||
|
||||
- Code, cấu trúc dữ liệu, script, các bảng được tạo, mã nguồn webapp và tài liệu là © Người duy trì (poli0981 / SkullMute), được cấp phép theo [Giấy phép MIT](../../../LICENSE).
|
||||
- Game và metadata game (tên, mô tả, screenshot, tag) thuộc các nhà phát triển tương ứng và itch.io. Xem [DISCLAIMER §4](DISCLAIMER.md#4-nội-dung-của-bên-thứ-ba).
|
||||
- Các thư viện open-source bên thứ ba được điều chỉnh bởi giấy phép riêng; xem mục **Third-party software** trong [trang About](https://poli0981.github.io/free-games-itchio-list/app/#/about).
|
||||
- Các thư viện open-source bên thứ ba được điều chỉnh bởi giấy phép riêng; xem mục **Third-party software** trong [trang About](https://freeitchgames.win/#/about).
|
||||
|
||||
## 8. Chấm dứt
|
||||
|
||||
@@ -109,7 +109,7 @@ Các Điều khoản này được điều chỉnh bởi pháp luật của **C
|
||||
|
||||
Tranh chấp được giải quyết theo thứ tự sau:
|
||||
|
||||
1. **Không chính thức trước**: mở issue `[Feedback]` hoặc `[General]`, hoặc DM qua bất kỳ kênh nào liệt kê trên [trang About](https://poli0981.github.io/free-games-itchio-list/app/#/about). Hầu hết bất đồng dừng ở đây.
|
||||
1. **Không chính thức trước**: mở issue `[Feedback]` hoặc `[General]`, hoặc DM qua bất kỳ kênh nào liệt kê trên [trang About](https://freeitchgames.win/#/about). Hầu hết bất đồng dừng ở đây.
|
||||
2. **Hòa giải**: nếu liên hệ không chính thức không thành, các bên có thể thử hòa giải theo thỏa thuận chung.
|
||||
3. **Tòa án**: nếu mọi cách đều thất bại, tòa án có thẩm quyền của Việt Nam có thẩm quyền độc quyền.
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ và ghi vào `data_game/game_info_NNN.json`.
|
||||
cd webapp
|
||||
npm install
|
||||
npm run dev # http://localhost:5173 với HMR
|
||||
npm run build # output vào ../docs/app/ (KHÔNG phải webapp/dist)
|
||||
npm run build # output vào webapp/dist/ (web + Tauri)
|
||||
npm run lint
|
||||
```
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<!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">
|
||||
<title>Moved to freeitchgames.win</title>
|
||||
<link rel="canonical" href="https://freeitchgames.win/">
|
||||
<noscript><meta http-equiv="refresh" content="0; url=https://freeitchgames.win/"></noscript>
|
||||
<script>
|
||||
(function () {
|
||||
// The old GitHub Pages app kept an encrypted PAT and GPG key in this
|
||||
// origin's localStorage. The new site has no sign-in, so clear them.
|
||||
try {
|
||||
[
|
||||
'webapp.pat.encrypted',
|
||||
'webapp.gpg.encrypted',
|
||||
'webapp.gpg.fingerprint',
|
||||
'webapp.gpg.uid',
|
||||
'webapp.gpg.emails',
|
||||
'webapp.gpg.enabled',
|
||||
].forEach(function (k) { localStorage.removeItem(k) })
|
||||
} catch (e) { /* storage blocked: nothing to clear */ }
|
||||
// Keep in-app hash routes (#/games/slug) so shared links still land on the right page.
|
||||
var hash = location.hash.indexOf('#/') === 0 ? location.hash : ''
|
||||
location.replace('https://freeitchgames.win/' + hash)
|
||||
})()
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>This site moved to <a href="https://freeitchgames.win/">freeitchgames.win</a>.</p>
|
||||
<p>Trang đã chuyển sang <a href="https://freeitchgames.win/">freeitchgames.win</a>.</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,34 @@
|
||||
<!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">
|
||||
<title>Moved to freeitchgames.win</title>
|
||||
<link rel="canonical" href="https://freeitchgames.win/">
|
||||
<noscript><meta http-equiv="refresh" content="0; url=https://freeitchgames.win/"></noscript>
|
||||
<script>
|
||||
(function () {
|
||||
// The old GitHub Pages app kept an encrypted PAT and GPG key in this
|
||||
// origin's localStorage. The new site has no sign-in, so clear them.
|
||||
try {
|
||||
[
|
||||
'webapp.pat.encrypted',
|
||||
'webapp.gpg.encrypted',
|
||||
'webapp.gpg.fingerprint',
|
||||
'webapp.gpg.uid',
|
||||
'webapp.gpg.emails',
|
||||
'webapp.gpg.enabled',
|
||||
].forEach(function (k) { localStorage.removeItem(k) })
|
||||
} catch (e) { /* storage blocked: nothing to clear */ }
|
||||
// Keep in-app hash routes (#/games/slug) so shared links still land on the right page.
|
||||
var hash = location.hash.indexOf('#/') === 0 ? location.hash : ''
|
||||
location.replace('https://freeitchgames.win/' + hash)
|
||||
})()
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>This site moved to <a href="https://freeitchgames.win/">freeitchgames.win</a>.</p>
|
||||
<p>Trang đã chuyển sang <a href="https://freeitchgames.win/">freeitchgames.win</a>.</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
24
|
||||
+9
-6
@@ -15,7 +15,7 @@ Requires Node 22+ and npm.
|
||||
```sh
|
||||
npm install
|
||||
npm run dev # http://localhost:5173
|
||||
npm run build # writes ../docs/app/ (NOT ./dist — that path is Tauri-only)
|
||||
npm run build # writes ./dist/ (web → Cloudflare Workers Builds; Tauri uses it too)
|
||||
npm run lint # ESLint
|
||||
npm run preview # serve the production build
|
||||
```
|
||||
@@ -81,10 +81,13 @@ explicit Lock or tab close. See [`../SECURITY.md`](../SECURITY.md).
|
||||
|
||||
## Deploy (web)
|
||||
|
||||
[`.github/workflows/deploy_webapp.yml`](../.github/workflows/deploy_webapp.yml)
|
||||
builds on push to `main` that touches `webapp/` and publishes to GitHub Pages.
|
||||
**One-time setup**: repo Settings → Pages → Source = "GitHub Actions". Live at
|
||||
<https://poli0981.github.io/free-games-itchio-list/app/>.
|
||||
Cloudflare **Workers Builds** deploys every push to `main`, driven by
|
||||
[`wrangler.jsonc`](wrangler.jsonc) (no GitHub Actions deploy). Dashboard settings
|
||||
for the Worker `free-games-itchio-list`: Root directory `webapp`, Build command
|
||||
`npm run build`, Deploy command `npx wrangler deploy`. Static-asset headers live in
|
||||
[`public/_headers`](public/_headers). Live at <https://freeitchgames.win/>.
|
||||
|
||||
The old GitHub Pages URL only serves a redirect stub (`../pages-redirect/`).
|
||||
|
||||
## Desktop (Tauri)
|
||||
|
||||
@@ -96,7 +99,7 @@ on `v*` tag push.
|
||||
|
||||
## House rules
|
||||
|
||||
- Don't commit `dist/`, `../docs/app/`, `src-tauri/target/`, `Cargo.lock`, or
|
||||
- Don't commit `dist/`, `src-tauri/target/`, `Cargo.lock`, or
|
||||
`src-tauri/icon-source.png`.
|
||||
- Never commit a real PAT.
|
||||
- New npm dep? Add it to [`src/lib/about.ts`](src/lib/about.ts) `THIRD_PARTY` so
|
||||
|
||||
+8
-8
@@ -8,7 +8,7 @@
|
||||
<meta name="color-scheme" content="dark light" />
|
||||
|
||||
<title>Itch.io Free Games Database</title>
|
||||
<meta name="description" content="A curated, auto-updating catalog of 500+ free games on itch.io. Browse, filter, and analyze the dataset; dispatch the scraper from the browser." />
|
||||
<meta name="description" content="A curated, auto-updating catalog of 2,600+ free games on itch.io. Browse, filter, and analyze the dataset; dispatch the scraper from the browser." />
|
||||
<meta name="application-name" content="Itch.io Free Games DB" />
|
||||
<meta name="author" content="poli0981 (SkullMute)" />
|
||||
<meta name="keywords" content="itch.io, free games, indie games, itch.io catalog, free game database, open source, GitHub Pages, React, Tauri" />
|
||||
@@ -17,7 +17,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="./icon-192.png" />
|
||||
<link rel="manifest" href="./manifest.webmanifest" />
|
||||
<link rel="canonical" href="https://poli0981.github.io/free-games-itchio-list/app/" />
|
||||
<link rel="canonical" href="https://freeitchgames.win/" />
|
||||
|
||||
<link rel="preconnect" href="https://img.itch.zone" crossorigin />
|
||||
<link rel="dns-prefetch" href="https://img.itch.zone" />
|
||||
@@ -28,13 +28,13 @@
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:site_name" content="Itch.io Free Games DB" />
|
||||
<meta property="og:title" content="Itch.io Free Games Database" />
|
||||
<meta property="og:description" content="A curated, auto-updating catalog of 500+ free games on itch.io. Browse, filter, and analyze." />
|
||||
<meta property="og:url" content="https://poli0981.github.io/free-games-itchio-list/app/" />
|
||||
<meta property="og:image" content="https://poli0981.github.io/free-games-itchio-list/og.png" />
|
||||
<meta property="og:description" content="A curated, auto-updating catalog of 2,600+ free games on itch.io. Browse, filter, and analyze." />
|
||||
<meta property="og:url" content="https://freeitchgames.win/" />
|
||||
<meta property="og:image" content="https://freeitchgames.win/og.png" />
|
||||
<meta property="og:image:type" content="image/png" />
|
||||
<meta property="og:image:width" content="1200" />
|
||||
<meta property="og:image:height" content="630" />
|
||||
<meta property="og:image:alt" content="Itch.io Free Games DB — 500+ free itch.io games, auto-updated" />
|
||||
<meta property="og:image:alt" content="Itch.io Free Games DB — 2,600+ free itch.io games, auto-updated" />
|
||||
<meta property="og:locale" content="en_US" />
|
||||
<meta property="og:locale:alternate" content="vi_VN" />
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
<meta name="twitter:site" content="@SkullMute0011" />
|
||||
<meta name="twitter:creator" content="@SkullMute0011" />
|
||||
<meta name="twitter:title" content="Itch.io Free Games Database" />
|
||||
<meta name="twitter:description" content="A curated, auto-updating catalog of 500+ free games on itch.io." />
|
||||
<meta name="twitter:image" content="https://poli0981.github.io/free-games-itchio-list/og.png" />
|
||||
<meta name="twitter:description" content="A curated, auto-updating catalog of 2,600+ free games on itch.io." />
|
||||
<meta name="twitter:image" content="https://freeitchgames.win/og.png" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
+10
-3
@@ -1,7 +1,14 @@
|
||||
{
|
||||
"$schema": "https://unpkg.com/knip@6/schema.json",
|
||||
"project": ["src/**/*.{ts,tsx}"],
|
||||
"project": [
|
||||
"src/**/*.{ts,tsx}"
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
]
|
||||
},
|
||||
"ignoreDependencies": [
|
||||
"wrangler"
|
||||
]
|
||||
}
|
||||
Generated
+1800
-282
File diff suppressed because it is too large.
Load diff
+7
-3
@@ -3,6 +3,9 @@
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"engines": {
|
||||
"node": ">=22.22"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
@@ -39,7 +42,7 @@
|
||||
"openpgp": "^6.3.0",
|
||||
"react": "^19.2.5",
|
||||
"react-dom": "^19.2.5",
|
||||
"react-router-dom": "^7.14.2",
|
||||
"react-router-dom": "^7.18.4",
|
||||
"recharts": "^3.8.1",
|
||||
"sonner": "^2.0.7",
|
||||
"tailwind-merge": "^3.5.0",
|
||||
@@ -58,11 +61,12 @@
|
||||
"eslint-plugin-react-refresh": "^0.5.2",
|
||||
"globals": "^17.5.0",
|
||||
"knip": "^6.14.2",
|
||||
"postcss": "^8.5.13",
|
||||
"postcss": "^8.5.28",
|
||||
"tailwindcss": "^3.4.19",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"typescript": "~6.0.2",
|
||||
"typescript-eslint": "^8.58.2",
|
||||
"vite": "^8.0.10"
|
||||
"vite": "^8.3.0",
|
||||
"wrangler": "^4.134.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
# Cloudflare Workers static-asset headers (applies to files in dist/ only).
|
||||
# HSTS and X-Content-Type-Options are already sent by the zone.
|
||||
/*
|
||||
Referrer-Policy: strict-origin-when-cross-origin
|
||||
X-Frame-Options: DENY
|
||||
Cross-Origin-Opener-Policy: same-origin
|
||||
Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=(), usb=(), browsing-topics=()
|
||||
Content-Security-Policy-Report-Only: default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https://img.itch.zone https://avatars.githubusercontent.com; connect-src 'self' https://raw.githubusercontent.com https://api.github.com; font-src 'self'; manifest-src 'self'; worker-src 'self' blob:; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'
|
||||
|
||||
/assets/*
|
||||
Cache-Control: public, max-age=31536000, immutable
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "Itch.io Free Games DB",
|
||||
"short_name": "Itch.io DB",
|
||||
"description": "A curated, auto-updating catalog of free games on itch.io. Browse 500+ titles, edit annotations, and dispatch the scraper from the browser.",
|
||||
"start_url": "/free-games-itchio-list/app/",
|
||||
"scope": "/free-games-itchio-list/app/",
|
||||
"id": "/free-games-itchio-list/app/",
|
||||
"description": "A curated, auto-updating catalog of free games on itch.io. Browse 2,600+ titles, edit annotations, and dispatch the scraper from the browser.",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"id": "/",
|
||||
"display": "standalone",
|
||||
"orientation": "any",
|
||||
"theme_color": "#863bff",
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 29 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 20 KiB |
@@ -5,4 +5,4 @@ Allow: /
|
||||
# behind a fine-grained PAT held in memory after passphrase unlock; nothing
|
||||
# crawler-accessible writes anything.
|
||||
|
||||
Sitemap: https://poli0981.github.io/free-games-itchio-list/sitemap.xml
|
||||
Sitemap: https://freeitchgames.win/sitemap.xml
|
||||
@@ -1,42 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://poli0981.github.io/free-games-itchio-list/app/</loc>
|
||||
<loc>https://freeitchgames.win/</loc>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://poli0981.github.io/free-games-itchio-list/app/#/games</loc>
|
||||
<loc>https://freeitchgames.win/#/games</loc>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>0.9</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://poli0981.github.io/free-games-itchio-list/app/#/charts</loc>
|
||||
<loc>https://freeitchgames.win/#/charts</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.7</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://poli0981.github.io/free-games-itchio-list/app/#/add</loc>
|
||||
<loc>https://freeitchgames.win/#/add</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.6</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://poli0981.github.io/free-games-itchio-list/app/#/workflows</loc>
|
||||
<loc>https://freeitchgames.win/#/workflows</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.4</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://poli0981.github.io/free-games-itchio-list/app/#/deleted</loc>
|
||||
<loc>https://freeitchgames.win/#/deleted</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.4</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://poli0981.github.io/free-games-itchio-list/app/#/settings</loc>
|
||||
<loc>https://freeitchgames.win/#/settings</loc>
|
||||
<changefreq>yearly</changefreq>
|
||||
<priority>0.2</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://poli0981.github.io/free-games-itchio-list/app/#/about</loc>
|
||||
<loc>https://freeitchgames.win/#/about</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
|
||||
@@ -61,16 +61,25 @@ def make_og(width: int = 1200, height: int = 630) -> Image.Image:
|
||||
for poly in lightning_path(glyph_scale * 0.96, 92, 160):
|
||||
draw.polygon(poly, fill=PURPLE_LIGHT)
|
||||
title = "Itch.io Free Games DB"
|
||||
subtitle = "500+ free itch.io games · auto-updated · webapp + desktop"
|
||||
footer = "poli0981.github.io/free-games-itchio-list"
|
||||
try:
|
||||
title_font = ImageFont.truetype("arial.ttf", 78)
|
||||
subtitle_font = ImageFont.truetype("arial.ttf", 32)
|
||||
footer_font = ImageFont.truetype("arialbd.ttf", 24)
|
||||
except OSError:
|
||||
title_font = ImageFont.load_default()
|
||||
subtitle_font = ImageFont.load_default()
|
||||
footer_font = ImageFont.load_default()
|
||||
subtitle = "2,600+ free itch.io games · auto-updated · web + desktop + Android"
|
||||
footer = "freeitchgames.win"
|
||||
max_w = width - 460 - 48 # text column: x=460 to the right margin
|
||||
|
||||
def fit(face: str, size: int, text: str) -> ImageFont.ImageFont:
|
||||
# Shrink until the line fits the text column (the title used to overflow).
|
||||
try:
|
||||
while size > 12:
|
||||
font = ImageFont.truetype(face, size)
|
||||
if draw.textlength(text, font=font) <= max_w:
|
||||
return font
|
||||
size -= 2
|
||||
return ImageFont.truetype(face, size)
|
||||
except OSError:
|
||||
return ImageFont.load_default()
|
||||
|
||||
title_font = fit("arial.ttf", 78, title)
|
||||
subtitle_font = fit("arial.ttf", 32, subtitle)
|
||||
footer_font = fit("arialbd.ttf", 24, footer)
|
||||
draw.text((460, 200), title, font=title_font, fill=WHITE)
|
||||
draw.text((460, 310), subtitle, font=subtitle_font, fill=PURPLE_LIGHT)
|
||||
draw.rectangle((460, 420, 462 + 220, 422), fill=CYAN_HL)
|
||||
|
||||
@@ -11,7 +11,8 @@ export default defineConfig({
|
||||
__BUILD_DATE__: JSON.stringify(new Date().toISOString().slice(0, 10)),
|
||||
},
|
||||
build: {
|
||||
outDir: isTauri ? 'dist' : '../docs/app',
|
||||
// Web (Cloudflare Workers Builds) and Tauri both build to webapp/dist.
|
||||
outDir: 'dist',
|
||||
emptyOutDir: true,
|
||||
sourcemap: false,
|
||||
target: isTauri ? 'es2022' : 'es2020',
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
// Cloudflare Workers Builds config for https://freeitchgames.win
|
||||
// Dashboard: Worker "free-games-itchio-list" → Settings → Build:
|
||||
// Root directory: webapp · Build command: npm run build · Deploy command: npx wrangler deploy
|
||||
// Phase 0 = static assets only (no Worker script yet). The custom domain stays
|
||||
// attached in the dashboard; it is declared here once verified (see v4 plan, A2).
|
||||
{
|
||||
"$schema": "./node_modules/wrangler/config-schema.json",
|
||||
// MUST match the Worker name in the dashboard or Workers Builds fails.
|
||||
"name": "free-games-itchio-list",
|
||||
"compatibility_date": "2026-09-15",
|
||||
// workers.dev / preview URLs would bypass Cloudflare Access once /admin exists.
|
||||
"workers_dev": false,
|
||||
"preview_urls": false,
|
||||
"assets": {
|
||||
// Vite build output. Never point this at a source directory.
|
||||
"directory": "./dist",
|
||||
"not_found_handling": "single-page-application",
|
||||
"html_handling": "auto-trailing-slash"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user