From b960b5ed6c2ebe5d7ce67f85a5bb83c9f161afdd Mon Sep 17 00:00:00 2001 From: luk Date: Fri, 31 Jul 2026 08:34:32 +0800 Subject: [PATCH] add README.md --- dcloud-renew/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dcloud-renew/README.md diff --git a/dcloud-renew/README.md b/dcloud-renew/README.md new file mode 100644 index 0000000..bdc4200 --- /dev/null +++ b/dcloud-renew/README.md @@ -0,0 +1,17 @@ +``` +npm i +npx playwright install-deps +npx playwright install chromium +HEADLESS=true node renew.mjs 'email' 'password' +``` + +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-renew/crontab.txt +# (That replaces your whole crontab; use `crontab -e` to merge with existing entries.) +0 1 26 * * /Users/Shared/product-产品/opx/sysconfig/dcloud-renew/renew-all.sh >> /tmp/dcloud-renew.log 2>&1 +```