diff --git a/packages/launch-bosszhipin-login-page-with-preload-extension/utils.mjs b/packages/launch-bosszhipin-login-page-with-preload-extension/utils.mjs index 91d6474..16b9c03 100644 --- a/packages/launch-bosszhipin-login-page-with-preload-extension/utils.mjs +++ b/packages/launch-bosszhipin-login-page-with-preload-extension/utils.mjs @@ -47,7 +47,13 @@ export async function ensureEditThisCookie () { if (geekgeekrunEditVersion < APP_GEEKGEEKRUN_EDIT_VERSION) { isNeedExtractEditThisCookie = true } - + const isExtractDoneFlagFilePath = path.join(editThisCookieExtensionPath, 'EXTRACT_DONE') + if ( + !isNeedExtractEditThisCookie && + !fs.existsSync(isExtractDoneFlagFilePath) + ) { + isNeedExtractEditThisCookie = true + } if (isNeedExtractEditThisCookie) { if ( fs.existsSync( @@ -68,5 +74,9 @@ export async function ensureEditThisCookie () { dir: extensionDir } ) + await fs.promises.writeFile( + isExtractDoneFlagFilePath, + '' + ) } } \ No newline at end of file