19 Commits

Author SHA1 Message Date
e7e6f4b84f fix(android): enable camera permission for WebView getUserMedia
Declare CAMERA in AndroidManifest so RustWebChromeClient can show the system permission dialog. Inject Permissions-Policy meta for camera access in the Tauri shell.
2026-07-03 20:28:27 +08:00
0c48dc8897 fix(android): cross-origin Bearer auth in Tauri shell
Inject a Tauri shell script during CI prep to disable service workers and attach Bearer tokens on cross-origin API requests. Enable Android third-party cookies in MainActivity and eval the same script from Rust on page load.
2026-07-03 20:10:45 +08:00
85b9210221 fix: pass app_version to CI and ship Windows NSIS installer only
Add app_version to workflow_dispatch inputs and worker dispatch payload. Collect only setup.exe from bundle/nsis, prefer installer URLs in release lookup, and use git-tag-safe job IDs.
2026-07-03 16:55:41 +08:00
Cursor Agent
475face0d3 fix(android): write network_security_config.xml to res/xml
walk() only matches files, so ensureNetworkSecurityXml never found
app/src/main/res and skipped creating the XML. AndroidManifest still
referenced @xml/network_security_config, causing AAPT link failures.

Co-authored-by: ShuMengya <shumengya666@outlook.com>
2026-06-06 06:08:26 +00:00
f8b05c69d6 fix(android): allow network requests and relax WebView CSP
Enable cleartext HTTP in release APK, add network security config, and set connect-src CSP. Add CORS on Worker API for cross-origin fetches from packaged apps.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 13:53:05 +08:00
58d5dc8ae8 fix(android): keep content below status and navigation bars 2026-06-06 13:40:35 +08:00
Cursor Agent
0e6e546f44 fix(ci): center-crop non-square logos before tauri icon generation
tauri icon requires a square source image. Uploaded logos like 727x721
caused Prepare template to fail. Use sharp to center-crop to square
before generating platform icons.

Co-authored-by: ShuMengya <shumengya666@outlook.com>
2026-05-30 08:15:25 +00:00
fa083c5ddc fix: Android app icon after init and Windows in-app link navigation 2026-05-29 15:28:20 +08:00
Cursor Agent
85509e182b perf(ci): cut Android build time with single ABI and faster Rust profile
- Build Android APK for arm64-v8a only (covers modern devices; saves ~5 min)
- Disable release LTO and raise codegen-units in CI via env overrides
- Cache Android NDK and Gradle dependencies between runs
- Share rust-cache key across Windows/Android jobs

Co-authored-by: ShuMengya <shumengya666@outlook.com>
2026-05-29 06:00:36 +00:00
b69dfc4813 feat: migrate to Cloudflare Workers with icon and version upload
Replace Express/SQLite and web/ with frontend/, worker/, and wrangler deploy. Add optional app icon upload, date-based app_version, and build-app workflow input.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-29 13:30:16 +08:00
Cursor Agent
2f668a70da fix(android): auto-load signing env inside sign-android-apk.sh
sign-android-apk.sh now sources setup-android-signing.sh when
WEB2APP_ANDROID_KEYSTORE is unset, so signing works even when the
workflow invokes setup and sign as separate bash processes (e.g. CI re-runs
of older workflow definitions).

Co-authored-by: ShuMengya <shumengya666@outlook.com>
2026-05-28 02:11:44 +00:00
Cursor Agent
2db2db5856 fix(ci): skip server deps on build and source Android signing env
- Use workspace-scoped npm ci to avoid compiling better-sqlite3 on Windows
  (Node 24 has no prebuilt binaries and node-gyp fails in CI)
- Source setup-android-signing.sh so WEB2APP_ANDROID_* vars reach sign script

Co-authored-by: ShuMengya <shumengya666@outlook.com>
2026-05-28 01:57:28 +00:00
0a807bf18f fix(android): remove broken Gradle signing patch, sign APK with apksigner only
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-28 09:12:46 +08:00
3730b7df3b feat: sign Android APK and generate icons from logo.png or favicon.ico
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-28 09:01:58 +08:00
edf2bdada6 feat: separate Chinese display name and English packaging name
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-28 08:54:43 +08:00
aef449e0e4 fix(windows): use NSIS installer instead of WiX MSI on CI
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-28 08:47:36 +08:00
e4a0955a8e fix(android): patch android config identifier and avoid Java reserved words
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-28 08:36:34 +08:00
8c56dbc459 fix(ci): install npm deps before prepare-template script
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 22:23:12 +08:00
8298278c10 Initial commit: Web2App static site to Tauri platform
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 21:56:23 +08:00