Skip to content

Change output directory from desktop/build to build/desktop #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ To create a standalone debug build run this command:
hover build
```

The output will be in `desktop/build/outputs/linux` or windows or darwin depending on your OS. Hover does not yet support cross-compilation.
The output will be in `build/desktop/linux` or windows or darwin depending on your OS. Hover does not yet support cross-compilation.

To start the binary: (replace `yourApplicationName` with your app name)

```bash
./desktop/build/outputs/linux/yourApplicationName
./build/desktop/linux/yourApplicationName
```

It's possible to zip the whole dir `desktop/build/outputs/linux` and ship it to a different machine.
Expand Down
2 changes: 1 addition & 1 deletion cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var buildCmd = &cobra.Command{
}

func build(projectName string, targetOS string, vmArguments []string) {
outputDirectoryPath, err := filepath.Abs(filepath.Join("desktop", "build", "outputs", targetOS))
outputDirectoryPath, err := filepath.Abs(filepath.Join("build", "desktop", targetOS))
if err != nil {
fmt.Printf("hover: Failed to resolve absolute path for output directory: %v\n", err)
os.Exit(1)
Expand Down