refactor: 脚本及配置文件命名统一用 _ 分隔
将 .sh/.bat 脚本与 .js/.plist/.Dockerfile 等文件中以 - 分隔的文件名 改为 _ 分隔,dcloud-renew 目录改为 dcloud、script_nuance 目录改为 nuance,并同步更新脚本内部引用与 README 路径。 Co-Authored-By: AtomCode (deepseek-v4-flash) <noreply@atomgit.com>
This commit is contained in:
26
dcloud/README.md
Normal file
26
dcloud/README.md
Normal 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/dcloud/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
|
||||
```
|
||||
Reference in New Issue
Block a user