()
| 29 | } |
| 30 | |
| 31 | function installGettext() { |
| 32 | try { |
| 33 | console.log('Installing gettext via Homebrew...'); |
| 34 | execSync('brew install gettext', { stdio: 'inherit' }); |
| 35 | console.log('✓ gettext installed successfully'); |
| 36 | return true; |
| 37 | } catch (error) { |
| 38 | console.error('✗ Failed to install gettext'); |
| 39 | return false; |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | function main() { |
| 44 | // Only run on macOS |