mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 15:11:53 +08:00
default directory option
This commit is contained in:
parent
732c70777b
commit
fe8b7ac5c9
@ -263,7 +263,7 @@ func computeBinaryName(projectName string) string {
|
|||||||
func processOutputDirectory(po *ProjectOptions) error {
|
func processOutputDirectory(po *ProjectOptions) error {
|
||||||
// po.OutputDirectory
|
// po.OutputDirectory
|
||||||
if po.OutputDirectory == "" {
|
if po.OutputDirectory == "" {
|
||||||
po.OutputDirectory = PromptRequired("Project directory name")
|
po.OutputDirectory = PromptRequired("Project directory name", computeBinaryName(po.Name))
|
||||||
}
|
}
|
||||||
projectPath, err := filepath.Abs(po.OutputDirectory)
|
projectPath, err := filepath.Abs(po.OutputDirectory)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user