mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-19 20:57:53 +02:00
1.5 KiB
1.5 KiB
App Bundles
GoReleaser can create macOS App Bundles (a.k.a. .app
files).
The app_bundles
section specifies how the images should be created:
# .goreleaser.yaml
app_bundles:
- # ID of the resulting image.
#
# Default: the project name.
id: foo
# Filename of the image (without the extension).
#
# Default: '{{.ProjectName}}'.
# Templates: allowed.
name: "myproject"
# IDs of the archives to use.
# Empty means all IDs.
ids:
- foo
- bar
# Allows to further filter the artifacts.
#
# Artifacts that do not match this expression will be ignored.
#
# Templates: allowed.
if: '{{ eq .Os "linux" }}'
# More files that will be available in the context in which the image
# will be built.
extra_files:
- README.md
# Icon file to use in the app.
# Must be a `icns` file.
#
# Templates: allowed.
icon: ./static/myapp.icns
# App bundle name.
#
# Templates: allowed.
bundle: com.example.myapp
# Set the modified timestamp on the output image, typically
# you would do this to ensure a build was reproducible. Pass an
# empty string to skip modifying the output.
#
# Templates: allowed.
mod_timestamp: "{{ .CommitTimestamp }}"
Limitations
- As of v2.4, App Bundles can only be used together with DMGs. This might change in the future.