feat(v0.1.1): 周期表五大分区 / 分区与单格改色 / 全屏视线跟随 / 窗口图标 / 跨平台打包

This commit is contained in:
TianXiaRi
2026-12-02 10:27:25 +08:00
parent a9adcd0088
commit 1faee09484
37 changed files with 2477 additions and 127 deletions
+15
View File
@@ -0,0 +1,15 @@
const fs = require('fs')
const p = 'E:/SodiumPet/WorkPlace/v0.1.1/src/main/index.ts'
let c = fs.readFileSync(p, 'utf8')
const from = ` const cfgNow = store.getConfig()
if (!cfgNow.eyeFollow || !mainWindow || mainWindow.isDestroyed()) return`
const to = ` const cfgNow = store.getConfig()
const forceLook = !!process.env.PET_FORCE_EYE_FOLLOW
if (!(cfgNow.eyeFollow || forceLook) || !mainWindow || mainWindow.isDestroyed()) return`
if (!c.includes(from)) {
console.log('MISS force look')
process.exit(1)
}
c = c.replace(from, to)
fs.writeFileSync(p, c, 'utf8')
console.log('force look debug added')