diff --git a/v2/pkg/buildassets/build/darwin/Info.dev.plist b/v2/pkg/buildassets/build/darwin/Info.dev.plist
new file mode 100644
index 000000000..02e7358ee
--- /dev/null
+++ b/v2/pkg/buildassets/build/darwin/Info.dev.plist
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ {{.Info.ProductName}}
+ CFBundleExecutable
+ {{.Name}}
+ CFBundleIdentifier
+ com.wails.{{.Name}}
+ CFBundleVersion
+ {{.Info.ProductVersion}}
+ CFBundleGetInfoString
+ {{.Info.Comments}}
+ CFBundleShortVersionString
+ {{.Info.ProductVersion}}
+ CFBundleIconFile
+ iconfile
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ {{.Info.Copyright}}
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v2/pkg/buildassets/build/darwin/Info.plist b/v2/pkg/buildassets/build/darwin/Info.plist
index 303145e39..e7819a7e8 100644
--- a/v2/pkg/buildassets/build/darwin/Info.plist
+++ b/v2/pkg/buildassets/build/darwin/Info.plist
@@ -1,14 +1,27 @@
-
- CFBundlePackageTypeAPPL
- CFBundleName{{.Info.ProductName}}
- CFBundleExecutable{{.Name}}
- CFBundleIdentifiercom.wails.{{.Name}}
- CFBundleVersion{{.Info.ProductVersion}}
- CFBundleGetInfoString{{.Info.Comments}}
- CFBundleShortVersionString{{.Info.ProductVersion}}
- CFBundleIconFileiconfile
- LSMinimumSystemVersion10.13.0
- NSHighResolutionCapabletrue
- NSHumanReadableCopyright{{.Info.Copyright}}
-
\ No newline at end of file
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ {{.Info.ProductName}}
+ CFBundleExecutable
+ {{.Name}}
+ CFBundleIdentifier
+ com.wails.{{.Name}}
+ CFBundleVersion
+ {{.Info.ProductVersion}}
+ CFBundleGetInfoString
+ {{.Info.Comments}}
+ CFBundleShortVersionString
+ {{.Info.ProductVersion}}
+ CFBundleIconFile
+ iconfile
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ {{.Info.Copyright}}
+
+
\ No newline at end of file
diff --git a/v2/pkg/commands/build/packager.go b/v2/pkg/commands/build/packager.go
index 601f297f0..9e2681a20 100644
--- a/v2/pkg/commands/build/packager.go
+++ b/v2/pkg/commands/build/packager.go
@@ -114,8 +114,15 @@ func packageApplicationForDarwin(options *Options) error {
}
func processPList(options *Options, contentsDirectory string) error {
+
+ sourcePList := "Info.plist"
+ if options.Mode == Dev {
+ // Use Info.dev.plist if using build mode
+ sourcePList = "Info.dev.plist"
+ }
+
// Read the resolved BuildAssets file and copy it to the destination
- content, err := buildassets.ReadFileWithProjectData(options.ProjectData, "darwin/Info.plist")
+ content, err := buildassets.ReadFileWithProjectData(options.ProjectData, "darwin/"+sourcePList)
if err != nil {
return err
}
diff --git a/website/docs/reference/cli.mdx b/website/docs/reference/cli.mdx
index 7f5b33514..9c6714aa4 100644
--- a/website/docs/reference/cli.mdx
+++ b/website/docs/reference/cli.mdx
@@ -160,6 +160,7 @@ Your system is ready for Wails development!
- Javascript wrappers of your Go methods with autogenerated JSDoc, providing code hinting
- TypeScript versions of your Go structs, that can be constructed and passed to your go methods
- A second JS module is generated that provides a wrapper + TS declaration for the runtime
+- On macOS, it will bundle the application into a `.app` file and run it. It will use a `build/darwin/Info.dev.plist` for development.
| Flag | Description | Default |
| :--------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------- |