Skip to content

Commit 4d5b7e7

Browse files
Atualização de procedimento de instalação para Ubuntu e mensagem de ajuda.
1 parent 0311f42 commit 4d5b7e7

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

INSTALL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Para usar o CGD, você precisa ter instalado:
1818
sudo apt update -y
1919

2020
# Instalar LDC e DUB
21-
sudo apt install -y ldc dub
21+
sudo apt install -y ldc dub llvm-dev llvm
2222

2323
# Verificar instalação
2424
ldc2 --version
@@ -101,7 +101,7 @@ dub --version
101101
curl -fsSL https://raw.githubusercontent.com/FernandoTheDev/cgd/refs/heads/master/install.sh | sh
102102

103103
# Verificar instalação
104-
cgd --help
104+
cgd --ajuda
105105
```
106106

107107
> **Nota:** O script automático irá:
@@ -120,7 +120,7 @@ cd cgd
120120
dub build --build=release-fast
121121

122122
# 3. Testar o executável
123-
./cgd --help
123+
./cgd --ajuda
124124

125125
# 4. (Opcional) Instalar no diretório local
126126
mkdir -p ~/.local/bin
@@ -208,7 +208,7 @@ brew install ldc dub
208208
# Se a versão do LDC nos repositórios for muito antiga
209209
sudo add-apt-repository ppa:dlang/ldc
210210
sudo apt update
211-
sudo apt install ldc dub
211+
sudo apt install ldc dub llvm-dev llvm
212212
```
213213

214214
#### macOS com Apple Silicon (M1/M2)
@@ -268,5 +268,5 @@ brew uninstall ldc dub
268268
Após a instalação, consulte:
269269

270270
- [README.md](README.md) - Visão geral do projeto
271-
- `cgd --help` - Ajuda do comando
272-
- [Documentação da linguagem Delegua](https://github.com/DesignLiquido/delegua)
271+
- `cgd --ajuda` - Ajuda do comando
272+
- [Documentação da linguagem Delégua](https://github.com/DesignLiquido/delegua/wiki)

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ Compilador para a linguagem de programação [Delegua](https://github.com/Design
1515
### Instalação rápida
1616

1717
```bash
18+
# Pré-requisitos
19+
# Ubuntu
20+
sudo apt install llvm-dev llvm -y
21+
1822
# Linux/macOS - Instalação automática
1923
curl -fsSL https://raw.githubusercontent.com/FernandoTheDev/cgd/refs/heads/master/install.sh | sh
2024

2125
# Verificar instalação
22-
cgd --help
26+
cgd --ajuda
2327
```
2428

2529
### Pré-requisitos
@@ -78,7 +82,7 @@ cgd compilar meu_programa.delegua
7882
cgd --optimize meu_programa.delegua
7983

8084
# Ver ajuda completa
81-
cgd --help
85+
cgd --ajuda
8286
```
8387

8488
## Plataformas suportadas

src/app.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void main(string[] args)
8484
if (args.length < 3)
8585
{
8686
writeln("cgd: erro: arquivo não especificado");
87-
writeln("Digite 'cgd --help' para mais informações.");
87+
writeln("Digite 'cgd --ajuda' para mais informações.");
8888
return;
8989
}
9090

@@ -94,7 +94,7 @@ void main(string[] args)
9494
{
9595
writefln("cgd: erro: comando desconhecido '%s'", comando);
9696
writeln("Comandos disponíveis: compilar, transpilar, atualizar");
97-
writeln("Digite 'cgd --help' para mais informações.");
97+
writeln("Digite 'cgd --ajuda' para mais informações.");
9898
return;
9999
}
100100

0 commit comments

Comments
 (0)