scripts/manifest.js
.. .. @@ -95,7 +95,8 @@ 95 95 96 96 if (exists) { 97 97 const prev = fs.readFileSync(TARGET, 'utf8'); 98 - if (prev === rendered) {98 + // 行尾差异(CRLF/LF)不算变化,避免无意义重写99 + if (prev.replace(/\r\n/g, '\n') === rendered.replace(/\r\n/g, '\n')) {99 100 console.log('[manifest] manifest.json 已是目标内容,无需重写'); 100 101 return { file: TARGET, changed: false }; 101 102 }