Skip to content

Commit

Permalink
feat: Relocated main.go to avoid renaming the binary after installati…
Browse files Browse the repository at this point in the history
…on (#18)

Co-authored-by: maimaiti <[email protected]>
  • Loading branch information
almas1992 and maimaiti authored Dec 29, 2024
1 parent bdb88c9 commit 3299448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,7 @@ Goravel Installer is a command-line tool that helps you to install the Goravel f

```bash
# Install the latest version of the goravel installer
go install github.com/goravel/installer@latest

# You can rename the executable file
# Linux / MacOS
mv "$GOBIN/installer" "$GOBIN/goravel"

# Windows
move "%GOBIN%\installer.exe" "%GOBIN%\goravel.exe"
# Windows Powershell
move "$Env:gopath\bin\installer.exe" "$Env:gopath\bin\goravel.exe"
go install github.com/goravel/installer/goravel@latest
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions main.go → goravel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
)

func main() {
name := "Goravel Installer"
usage := "A command-line tool to create Goravel projects."
name := "goravel"
usage := "Goravel Installer"
usageText := "goravel [global options] command [command options] [arguments...]"

cliApp := frameworkconsole.NewApplication(name, usage, usageText, support.Version, false)
Expand Down

0 comments on commit 3299448

Please sign in to comment.