()
| 154 | } |
| 155 | |
| 156 | function uninstallMacos(): void { |
| 157 | if (!fs.existsSync(PLIST_PATH)) { |
| 158 | console.log('No system service found.') |
| 159 | removeMeta() |
| 160 | return |
| 161 | } |
| 162 | launchctlUnload(PLIST_PATH) |
| 163 | fs.unlinkSync(PLIST_PATH) |
| 164 | removeMeta() |
| 165 | console.log(`ChatLab system service removed.`) |
| 166 | } |
| 167 | |
| 168 | function statusMacos(): ServiceStatus { |
| 169 | if (!fs.existsSync(PLIST_PATH)) return { installed: false, running: false } |
no test coverage detected