Skip to content

Problem with cross compilation for Windows #22

Open
@es1o

Description

@es1o

Hello.
I'm trying to compile code for windows from MacOS and Linux and I've got an error:

app.Enable undefined (type *autostart.App has no field or method Enable)

My code:

     if runtime.GOOS == "windows" {
		exe, _ := os.Executable()
		app := &autostart.App{
			Name:        "test",
			DisplayName: "test",
			Exec:        []string{exe},
		}
		app.Enable()
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions