diff --git a/v2/pkg/commands/build/internal/assets/README.md b/v2/pkg/commands/build/internal/assets/README.md index e7dc9a65..b8c1271f 100644 --- a/v2/pkg/commands/build/internal/assets/README.md +++ b/v2/pkg/commands/build/internal/assets/README.md @@ -49,4 +49,4 @@ Example: ## Mac -The `mac` directory holds files specific to Mac builds, such as `info.plist`. These may be edited and used as part of the build. +The `mac` directory holds files specific to Mac builds, such as `Info.plist`. These may be edited and used as part of the build. diff --git a/v2/pkg/commands/build/internal/packager/darwin/info.plist b/v2/pkg/commands/build/internal/packager/darwin/Info.plist similarity index 100% rename from v2/pkg/commands/build/internal/packager/darwin/info.plist rename to v2/pkg/commands/build/internal/packager/darwin/Info.plist diff --git a/v2/pkg/commands/build/packager_darwin.go b/v2/pkg/commands/build/packager_darwin.go index fcd6c3ea..6062b6d3 100644 --- a/v2/pkg/commands/build/packager_darwin.go +++ b/v2/pkg/commands/build/packager_darwin.go @@ -42,7 +42,7 @@ func packageApplication(options *Options) error { return errors.Wrap(err, "Cannot move file: "+options.ProjectData.OutputFilename) } - // Generate info.plist + // Generate Info.plist err = processPList(options, contentsDirectory) if err != nil { return err @@ -68,7 +68,7 @@ func packageApplication(options *Options) error { func processPList(options *Options, contentsDirectory string) error { // Check if plist already exists in project dir - plistFile := filepath.Join(options.ProjectData.AssetsDir, "mac", "info.plist") + plistFile := filepath.Join(options.ProjectData.AssetsDir, "mac", "Info.plist") // If the file doesn't exist, generate it if !fs.FileExists(plistFile) { @@ -79,7 +79,7 @@ func processPList(options *Options, contentsDirectory string) error { } // Copy it to the contents directory - targetFile := filepath.Join(contentsDirectory, "info.plist") + targetFile := filepath.Join(contentsDirectory, "Info.plist") return fs.CopyFile(plistFile, targetFile) } @@ -88,11 +88,11 @@ func generateDefaultPlist(options *Options, targetPlistFile string) error { exe := defaultString(options.OutputFile, name) version := "1.0.0" author := defaultString(options.ProjectData.Author.Name, "Anonymous") - packageID := strings.Join([]string{"wails", name, version}, ".") + packageID := strings.Join([]string{"wails", name}, ".") plistData := newPlistData(name, exe, packageID, version, author) tmpl := template.New("infoPlist") - plistTemplate := fs.RelativePath("./internal/packager/darwin/info.plist") + plistTemplate := fs.RelativePath("./internal/packager/darwin/Info.plist") infoPlist, err := ioutil.ReadFile(plistTemplate) if err != nil { return errors.Wrap(err, "Cannot open plist template") diff --git a/v2/test/kitchensink/.gitignore b/v2/test/kitchensink/.gitignore index 44f6bccd..26f469f4 100644 --- a/v2/test/kitchensink/.gitignore +++ b/v2/test/kitchensink/.gitignore @@ -1 +1 @@ -info.plist \ No newline at end of file +Info.plist \ No newline at end of file