13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/ios/iosOption.rb', line 13
def install
puts "Verificando se existe Homebrew instalado"
brewExists = system('which -s brew')
if brewExists
puts "Atualizando Homebrew"
system('brew update')
else
puts "Instalando Homebrew"
system("/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"")
end
puts "Instalando swiftgen"
system("brew install swiftgen")
puts "✅ Instalado com sucesso"
install_hooks
end
|