(password)
| 84 | |
| 85 | // update main.js defaultExitPassword |
| 86 | const updateMainJs = async (password) => { |
| 87 | const mainJs = await fs.readFile( |
| 88 | path.join(__dirname, '../', 'main.js'), |
| 89 | 'utf8' |
| 90 | ) |
| 91 | console.log('mainJs:', mainJs) |
| 92 | const newMainJs = mainJs.replace( |
| 93 | /const defaultExitPassword = '.*?'/, |
| 94 | `const defaultExitPassword = '${password}'` |
| 95 | ) |
| 96 | console.log('newMainJs:', newMainJs) |
| 97 | await fs.writeFile(path.join(__dirname, '../', 'main.js'), newMainJs) |
| 98 | console.log('main.js updated') |
| 99 | } |
| 100 | |
| 101 | // 给图片添加圆角并添加 padding |
| 102 | const createIcon = async (inputPath, tempOutputPath, icnsOutputPath) => { |
nothing calls this directly
no outgoing calls
no test coverage detected