Nye Clock web source (tw_.html, manifest.json).
Use this short URL on Cloudflare Pages (same file as the long path under /website/downloads/):
https://nyeclock.pages.dev/download/nyeclock-mac-arm64.dmg
Copy-paste source of truth: DMG_DIRECT_LINK.txt in this repo.
本机首次配置远程并同步:
cd /path/to/Adonyth
bash scripts/setup-github-remote.sh之后每次改完代码,用一条命令提交并推送(Cloudflare Pages 会随 main 更新而部署):
bash scripts/git-push.sh "描述本次修改"说明:Git 不会在保存文件时自动上传;需要提交(commit)再推送(push)。上述脚本把两步合并成一条命令。首次 push 前请在终端登录 GitHub(推荐 brew install gh && gh auth login)。
This project now supports server-side cloud bootstrap:
- frontend calls
GET /api/cloud-config - backend returns
supabaseUrl+supabaseAnonKey - users can register/login directly in My account -> Cloud
cd backend
npm install
cp .env.example .env
# edit .env:
# SUPABASE_URL=https://YOUR_PROJECT.supabase.co
# SUPABASE_ANON_KEY=YOUR_ANON_PUBLIC_KEY
# OAUTH_REDIRECT=http://localhost:8787
npm startOpen: http://localhost:8787
One-time DB setup SQL: supabase/nye_user_data.sql.
If you want GitHub + Cloudflare + Supabase only (no VPS), use:
functions/api/cloud-config.jsfunctions/api/health.js_redirects(将/重写到index.html)CLOUDFLARE_SETUP.mdfor full setup steps
Important: tw_.html is the source of truth. Run npm run build (copies tw_.html → index.html) before deploy, or set Cloudflare Build command to npm run build so / always serves the latest app (Pages prefers index.html when present).
cd backend
cp .env.example .env
# fill SUPABASE_URL / SUPABASE_ANON_KEY / OAUTH_REDIRECT
docker compose up --build -dOpen: http://localhost:8787
Use backend/deploy/nginx.nye-clock.conf as a template, then:
- set
server_nameto your domain - keep upstream as
127.0.0.1:8787(or your container host port) - add TLS with certbot (recommended)
Server commands (Ubuntu/Debian):
cd /opt/nye-clock/Adonyth/backend
sudo cp deploy/nye-clock.service /etc/systemd/system/nye-clock.service
sudo systemctl daemon-reload
sudo systemctl enable --now nye-clock
sudo systemctl status nye-clock --no-pager -lIf your repo path or runtime user differs, edit:
WorkingDirectoryEnvironmentFileUser/Group
cd /opt/nye-clock/Adonyth/backend
sudo DOMAIN=your-domain.example.com EMAIL=you@example.com bash deploy/setup-https.shThis will:
- install nginx + certbot
- write nginx config from template
- issue TLS cert and force HTTPS redirect
Workflow file: .github/workflows/deploy-nye-backend.yml
Add these GitHub repository secrets:
NYE_DEPLOY_HOST(server IP/domain)NYE_DEPLOY_USER(SSH user, e.g.ubuntu)NYE_DEPLOY_SSH_KEY(private key content)NYE_DEPLOY_PORT(optional, default22)
On each push to main touching backend/web files, Actions will:
- SSH into server
git pull --rebase- install backend deps
- restart
nye-clockservice
On a fresh Ubuntu/Debian server:
cd /tmp
git clone <YOUR_REPO_URL> nye-clock
cd nye-clock/Adonyth/backend
sudo \
REPO_URL="<YOUR_REPO_URL>" \
DOMAIN="your-domain.example.com" \
EMAIL="you@example.com" \
SUPABASE_URL="https://YOUR_PROJECT.supabase.co" \
SUPABASE_ANON_KEY="YOUR_ANON_PUBLIC_KEY" \
OAUTH_REDIRECT="https://your-domain.example.com" \
bash deploy/bootstrap-server.shWhat it does:
- installs Node.js, Nginx, Certbot
- clones/updates repo under
/opt/nye-clock - writes backend
.env - installs and starts
systemdservice (nye-clock) - configures nginx reverse proxy
- enables HTTPS automatically when
DOMAIN+EMAILare provided
| 内容 | 文档 / 路径 |
|---|---|
| 总览(GitHub、Pages、官网路径、下载链接) | DISTRIBUTION.md |
| GitHub Releases、打 DMG、CI | RELEASES.md |
| 注册后欢迎邮件(Resend + Database Webhook) | supabase/WELCOME_EMAIL.md |
| 官网落地页(可选) | website/index.html |
| DMG 直链(推荐发信 / 书签) | https://nyeclock.pages.dev/download/nyeclock-mac-arm64.dmg · 见 DMG_DIRECT_LINK.txt |
Electron 桌面壳与 NYE_CLOCK_APP_URL |
desktop/README.md |
说明:纯手机号注册若无邮箱,欢迎邮件会跳过;需要短信欢迎需另接 Twilio 等。