diff --git a/v3/internal/commands/defaults/Info.dev.plist b/v3/internal/commands/defaults/Info.dev.plist
index 02e7358ee..28c8c4828 100644
--- a/v3/internal/commands/defaults/Info.dev.plist
+++ b/v3/internal/commands/defaults/Info.dev.plist
@@ -16,7 +16,7 @@
CFBundleShortVersionString
{{.Info.ProductVersion}}
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/commands/defaults/Info.plist b/v3/internal/commands/defaults/Info.plist
index e7819a7e8..24490f5c8 100644
--- a/v3/internal/commands/defaults/Info.plist
+++ b/v3/internal/commands/defaults/Info.plist
@@ -4,7 +4,7 @@
CFBundlePackageType
APPL
CFBundleName
- {{.Info.ProductName}}
+ My Productname
CFBundleExecutable
{{.Name}}
CFBundleIdentifier
@@ -16,7 +16,7 @@
CFBundleShortVersionString
{{.Info.ProductVersion}}
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/_base/default/Taskfile.tmpl.yml b/v3/internal/templates/_base/default/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/_base/default/Taskfile.tmpl.yml
+++ b/v3/internal/templates/_base/default/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/_base/default/build/Info.dev.plist.tmpl b/v3/internal/templates/_base/default/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/_base/default/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/_base/default/build/Info.plist.tmpl b/v3/internal/templates/_base/default/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/_base/default/build/Info.plist.tmpl
+++ b/v3/internal/templates/_base/default/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/_base/default/build/icons.icns b/v3/internal/templates/_base/default/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/_base/default/build/icons.icns differ
diff --git a/v3/internal/templates/_base/default/build/info.json b/v3/internal/templates/_base/default/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/_base/default/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/lit-ts/Taskfile.tmpl.yml b/v3/internal/templates/lit-ts/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/lit-ts/Taskfile.tmpl.yml
+++ b/v3/internal/templates/lit-ts/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/lit-ts/build/Info.dev.plist.tmpl b/v3/internal/templates/lit-ts/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/lit-ts/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/lit-ts/build/Info.plist.tmpl b/v3/internal/templates/lit-ts/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/lit-ts/build/Info.plist.tmpl
+++ b/v3/internal/templates/lit-ts/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/lit-ts/build/icons.icns b/v3/internal/templates/lit-ts/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/lit-ts/build/icons.icns differ
diff --git a/v3/internal/templates/lit-ts/build/info.json b/v3/internal/templates/lit-ts/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/lit-ts/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/lit/Taskfile.tmpl.yml b/v3/internal/templates/lit/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/lit/Taskfile.tmpl.yml
+++ b/v3/internal/templates/lit/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/lit/build/Info.dev.plist.tmpl b/v3/internal/templates/lit/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/lit/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/lit/build/Info.plist.tmpl b/v3/internal/templates/lit/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/lit/build/Info.plist.tmpl
+++ b/v3/internal/templates/lit/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/lit/build/icons.icns b/v3/internal/templates/lit/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/lit/build/icons.icns differ
diff --git a/v3/internal/templates/lit/build/info.json b/v3/internal/templates/lit/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/lit/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/preact-ts/Taskfile.tmpl.yml b/v3/internal/templates/preact-ts/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/preact-ts/Taskfile.tmpl.yml
+++ b/v3/internal/templates/preact-ts/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/preact-ts/build/Info.dev.plist.tmpl b/v3/internal/templates/preact-ts/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/preact-ts/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/preact-ts/build/Info.plist.tmpl b/v3/internal/templates/preact-ts/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/preact-ts/build/Info.plist.tmpl
+++ b/v3/internal/templates/preact-ts/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/preact-ts/build/icons.icns b/v3/internal/templates/preact-ts/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/preact-ts/build/icons.icns differ
diff --git a/v3/internal/templates/preact-ts/build/info.json b/v3/internal/templates/preact-ts/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/preact-ts/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/preact/Taskfile.tmpl.yml b/v3/internal/templates/preact/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/preact/Taskfile.tmpl.yml
+++ b/v3/internal/templates/preact/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/preact/build/Info.dev.plist.tmpl b/v3/internal/templates/preact/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/preact/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/preact/build/Info.plist.tmpl b/v3/internal/templates/preact/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/preact/build/Info.plist.tmpl
+++ b/v3/internal/templates/preact/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/preact/build/icons.icns b/v3/internal/templates/preact/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/preact/build/icons.icns differ
diff --git a/v3/internal/templates/preact/build/info.json b/v3/internal/templates/preact/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/preact/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/react-swc-ts/Taskfile.tmpl.yml b/v3/internal/templates/react-swc-ts/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/react-swc-ts/Taskfile.tmpl.yml
+++ b/v3/internal/templates/react-swc-ts/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/react-swc-ts/build/Info.dev.plist.tmpl b/v3/internal/templates/react-swc-ts/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/react-swc-ts/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/react-swc-ts/build/Info.plist.tmpl b/v3/internal/templates/react-swc-ts/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/react-swc-ts/build/Info.plist.tmpl
+++ b/v3/internal/templates/react-swc-ts/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/react-swc-ts/build/icons.icns b/v3/internal/templates/react-swc-ts/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/react-swc-ts/build/icons.icns differ
diff --git a/v3/internal/templates/react-swc-ts/build/info.json b/v3/internal/templates/react-swc-ts/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/react-swc-ts/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/react-swc/Taskfile.tmpl.yml b/v3/internal/templates/react-swc/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/react-swc/Taskfile.tmpl.yml
+++ b/v3/internal/templates/react-swc/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/react-swc/build/Info.dev.plist.tmpl b/v3/internal/templates/react-swc/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/react-swc/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/react-swc/build/Info.plist.tmpl b/v3/internal/templates/react-swc/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/react-swc/build/Info.plist.tmpl
+++ b/v3/internal/templates/react-swc/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/react-swc/build/icons.icns b/v3/internal/templates/react-swc/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/react-swc/build/icons.icns differ
diff --git a/v3/internal/templates/react-swc/build/info.json b/v3/internal/templates/react-swc/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/react-swc/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/react-ts/Taskfile.tmpl.yml b/v3/internal/templates/react-ts/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/react-ts/Taskfile.tmpl.yml
+++ b/v3/internal/templates/react-ts/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/react-ts/build/Info.dev.plist.tmpl b/v3/internal/templates/react-ts/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/react-ts/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/react-ts/build/Info.plist.tmpl b/v3/internal/templates/react-ts/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/react-ts/build/Info.plist.tmpl
+++ b/v3/internal/templates/react-ts/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/react-ts/build/icons.icns b/v3/internal/templates/react-ts/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/react-ts/build/icons.icns differ
diff --git a/v3/internal/templates/react-ts/build/info.json b/v3/internal/templates/react-ts/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/react-ts/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/react/Taskfile.tmpl.yml b/v3/internal/templates/react/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/react/Taskfile.tmpl.yml
+++ b/v3/internal/templates/react/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/react/build/Info.dev.plist.tmpl b/v3/internal/templates/react/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/react/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/react/build/Info.plist.tmpl b/v3/internal/templates/react/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/react/build/Info.plist.tmpl
+++ b/v3/internal/templates/react/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/react/build/icons.icns b/v3/internal/templates/react/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/react/build/icons.icns differ
diff --git a/v3/internal/templates/react/build/info.json b/v3/internal/templates/react/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/react/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/svelte-ts/Taskfile.tmpl.yml b/v3/internal/templates/svelte-ts/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/svelte-ts/Taskfile.tmpl.yml
+++ b/v3/internal/templates/svelte-ts/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/svelte-ts/build/Info.dev.plist.tmpl b/v3/internal/templates/svelte-ts/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/svelte-ts/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/svelte-ts/build/Info.plist.tmpl b/v3/internal/templates/svelte-ts/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/svelte-ts/build/Info.plist.tmpl
+++ b/v3/internal/templates/svelte-ts/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/svelte-ts/build/icons.icns b/v3/internal/templates/svelte-ts/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/svelte-ts/build/icons.icns differ
diff --git a/v3/internal/templates/svelte-ts/build/info.json b/v3/internal/templates/svelte-ts/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/svelte-ts/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/svelte/Taskfile.tmpl.yml b/v3/internal/templates/svelte/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/svelte/Taskfile.tmpl.yml
+++ b/v3/internal/templates/svelte/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/svelte/build/Info.dev.plist.tmpl b/v3/internal/templates/svelte/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/svelte/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/svelte/build/Info.plist.tmpl b/v3/internal/templates/svelte/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/svelte/build/Info.plist.tmpl
+++ b/v3/internal/templates/svelte/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/svelte/build/icons.icns b/v3/internal/templates/svelte/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/svelte/build/icons.icns differ
diff --git a/v3/internal/templates/svelte/build/info.json b/v3/internal/templates/svelte/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/svelte/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/vanilla-ts/Taskfile.tmpl.yml b/v3/internal/templates/vanilla-ts/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/vanilla-ts/Taskfile.tmpl.yml
+++ b/v3/internal/templates/vanilla-ts/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/vanilla-ts/build/Info.dev.plist.tmpl b/v3/internal/templates/vanilla-ts/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/vanilla-ts/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/vanilla-ts/build/Info.plist.tmpl b/v3/internal/templates/vanilla-ts/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/vanilla-ts/build/Info.plist.tmpl
+++ b/v3/internal/templates/vanilla-ts/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/vanilla-ts/build/icons.icns b/v3/internal/templates/vanilla-ts/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/vanilla-ts/build/icons.icns differ
diff --git a/v3/internal/templates/vanilla-ts/build/info.json b/v3/internal/templates/vanilla-ts/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/vanilla-ts/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/vanilla/Taskfile.tmpl.yml b/v3/internal/templates/vanilla/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/vanilla/Taskfile.tmpl.yml
+++ b/v3/internal/templates/vanilla/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/vanilla/build/Info.dev.plist.tmpl b/v3/internal/templates/vanilla/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/vanilla/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/vanilla/build/Info.plist.tmpl b/v3/internal/templates/vanilla/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/vanilla/build/Info.plist.tmpl
+++ b/v3/internal/templates/vanilla/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/vanilla/build/icons.icns b/v3/internal/templates/vanilla/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/vanilla/build/icons.icns differ
diff --git a/v3/internal/templates/vanilla/build/info.json b/v3/internal/templates/vanilla/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/vanilla/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/vue-ts/Taskfile.tmpl.yml b/v3/internal/templates/vue-ts/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/vue-ts/Taskfile.tmpl.yml
+++ b/v3/internal/templates/vue-ts/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/vue-ts/build/Info.dev.plist.tmpl b/v3/internal/templates/vue-ts/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/vue-ts/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/vue-ts/build/Info.plist.tmpl b/v3/internal/templates/vue-ts/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/vue-ts/build/Info.plist.tmpl
+++ b/v3/internal/templates/vue-ts/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/vue-ts/build/icons.icns b/v3/internal/templates/vue-ts/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/vue-ts/build/icons.icns differ
diff --git a/v3/internal/templates/vue-ts/build/info.json b/v3/internal/templates/vue-ts/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/vue-ts/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file
diff --git a/v3/internal/templates/vue/Taskfile.tmpl.yml b/v3/internal/templates/vue/Taskfile.tmpl.yml
index 4d3d4b22d..5e8c5f4aa 100644
--- a/v3/internal/templates/vue/Taskfile.tmpl.yml
+++ b/v3/internal/templates/vue/Taskfile.tmpl.yml
@@ -54,7 +54,10 @@ tasks:
build-app-prod-darwin:
summary: Creates a production build of the application
cmds:
+ - task: pre-build
+ - task: build-frontend
- GOOS=darwin GOARCH={{ "{{.ARCH}}" }} go build -tags production -ldflags="-w -s" -o build/bin/{{ "{{.APP_NAME}}" }}
+ - task: post-build
env:
CGO_CFLAGS: "-mmacosx-version-min=10.13"
CGO_LDFLAGS: "-mmacosx-version-min=10.13"
diff --git a/v3/internal/templates/vue/build/Info.dev.plist.tmpl b/v3/internal/templates/vue/build/Info.dev.plist.tmpl
new file mode 100644
index 000000000..7efa134f4
--- /dev/null
+++ b/v3/internal/templates/vue/build/Info.dev.plist.tmpl
@@ -0,0 +1,32 @@
+
+
+
+ CFBundlePackageType
+ APPL
+ CFBundleName
+ My Product Name
+ CFBundleExecutable
+ {{.ProjectName}}
+ CFBundleIdentifier
+ com.wails.{{.ProjectName}}
+ CFBundleVersion
+ v1.0.0
+ CFBundleGetInfoString
+ This is a comment
+ CFBundleShortVersionString
+ v1.0.0
+ CFBundleIconFile
+ icons
+ LSMinimumSystemVersion
+ 10.13.0
+ NSHighResolutionCapable
+ true
+ NSHumanReadableCopyright
+ (c) 2023 My Company Name
+ NSAppTransportSecurity
+
+ NSAllowsLocalNetworking
+
+
+
+
\ No newline at end of file
diff --git a/v3/internal/templates/vue/build/Info.plist.tmpl b/v3/internal/templates/vue/build/Info.plist.tmpl
index 93d9a5bf1..6bfa8c316 100644
--- a/v3/internal/templates/vue/build/Info.plist.tmpl
+++ b/v3/internal/templates/vue/build/Info.plist.tmpl
@@ -4,11 +4,11 @@
CFBundlePackageType
APPL
CFBundleName
- {{ "{{.Info.ProductName}}" }}
+ My Product Name
CFBundleExecutable
- {{ "{{.ProjectName}}" }}
+ {{.ProjectName}}
CFBundleIdentifier
- com.wails.{{ "{{.ProjectName}}" }}
+ com.wails.{{.ProjectName}}
CFBundleVersion
v1.0.0
CFBundleGetInfoString
@@ -16,7 +16,7 @@
CFBundleShortVersionString
v1.0.0
CFBundleIconFile
- iconfile
+ icons
LSMinimumSystemVersion
10.13.0
NSHighResolutionCapable
diff --git a/v3/internal/templates/vue/build/icons.icns b/v3/internal/templates/vue/build/icons.icns
new file mode 100644
index 000000000..1b5bd4c86
Binary files /dev/null and b/v3/internal/templates/vue/build/icons.icns differ
diff --git a/v3/internal/templates/vue/build/info.json b/v3/internal/templates/vue/build/info.json
deleted file mode 100644
index 1005eb5cb..000000000
--- a/v3/internal/templates/vue/build/info.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "fixed": {
- "file_version": "v1.0.0"
- },
- "info": {
- "0000": {
- "ProductVersion": "v1.0.0",
- "CompanyName": "My Company Name",
- "FileDescription": "A thing that does a thing",
- "LegalCopyright": "(c) 2023 My Company Name",
- "ProductName": "My Product Name",
- "Comments": "This is a comment"
- }
- }
-}
\ No newline at end of file