Jacob
2026-10-12 254f055d485935c8408942987f38f75b78e2136d
scripts/manifest.js
....@@ -95,7 +95,8 @@
9595
9696 if (exists) {
9797 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')) {
99100 console.log('[manifest] manifest.json 已是目标内容,无需重写');
100101 return { file: TARGET, changed: false };
101102 }