From 40dec3a8306e1867795ca9a13c3df65bfc079bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 13 Apr 2022 22:58:00 +0800 Subject: [PATCH] Update config.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 环境变量兼容一下狗日的windows --- src/lunar/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lunar/config.js b/src/lunar/config.js index 9ba11c1..0f6a731 100644 --- a/src/lunar/config.js +++ b/src/lunar/config.js @@ -508,4 +508,4 @@ export const SOLAR_FESTIVALS = { '12.25': '圣诞节' } -export const CACHE_FILE = join(process.env.HOME, '.festivals.json') +export const CACHE_FILE = join(process.env.HOME || process.env.LOCALAPPDATA, '.festivals.json')