refactor: dcloud 目录改名为 unicloud

同步 README 中的 crontab 安装路径引用。

Co-Authored-By: AtomCode (deepseek-v4-flash) <noreply@atomgit.com>
This commit is contained in:
luk
2026-08-25 15:28:41 +08:00
parent 9742f6dab2
commit 5da38e128d
5 changed files with 2 additions and 2 deletions

26
unicloud/README.md Normal file
View File

@@ -0,0 +1,26 @@
Preparation:
```
npm i
npx playwright install-deps
npx playwright install chromium
```
Run the script with:
`node renew.mjs 'EMAIL' 'PASSWORD'`
you can also set environment variables directly:
`HEADLESS=true UNICLOUD_EMAIL=... UNICLOUD_PASSWORD=... node renew.mjs`
or set via `.env` file.
Add to crontab to run automatically:
```
# Renew DCloud uniCloud free-tier subscriptions.
# Runs at 1:00 on the 26th of every month.
#
# Install with: crontab /Users/Shared/product-产品/opx/sysconfig/unicloud/crontab.txt
# (That replaces your whole crontab; use `crontab -e` to merge with existing entries.)
0 1 26 * * source renew_all.sh >> /tmp/dcloud-renew.log 2>&1
```