Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.24 announcement, release planned for tomorrow. This also includes the updated docs generated from goreleaser pro source code. --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
- Loading branch information
Showing
15 changed files
with
566 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
date: 2024-02-05 | ||
slug: goreleaser-v1.24 | ||
categories: [announcements] | ||
authors: [caarlos0] | ||
--- | ||
|
||
# Announcing GoReleaser v1.24 - the first of 2024 | ||
|
||
Happy new year! | ||
The first release of 2024 is here! | ||
|
||
<!-- more --> | ||
|
||
## Highlights | ||
|
||
- **security**: goreleaser would log environment variables in some | ||
configurations when run with `--verbose`. Note that we only recommend using | ||
the `--verbose` flag locally, to debug possible issues. | ||
[CVE-2024-23840](https://nvd.nist.gov/vuln/detail/CVE-2024-23840) | ||
- **new**: create DMG images (with `hdutil`/`mkisofs`) (only on [Pro][pro]) | ||
- **new**: create MSI installers (with `wix`/`msitools`) (only on [Pro][pro]) | ||
- **blog**: we fully migrated our blog from Medium to [mkdocs](/blog) | ||
- **git**: options to ignore tag prefixes (only on [Pro][pro]) | ||
- **blob**: ACLs, cache control, and content disposition | ||
- **nfpm**: add libraries to packages | ||
- **artifactory**: allow to publish source archives | ||
- **brew**: improve handling of single OS | ||
- **nix**: improved generated derivations, use `stdenvNoCC` by default | ||
- **jsonschema**: we now validate our jsonschema every time it changes to make | ||
sure it is still valid | ||
- **deprecations**: we deprecated some options in the `changelog` and `blobs` | ||
sections. [Details](/deprecations) | ||
|
||
As always, bug fixes, dependency updates, housekeeping, and documentation | ||
updates are included in this release as well. | ||
|
||
## Other news | ||
|
||
- GoReleaser now has ~12.6k stars and 370 contributors! Thanks, everyone! | ||
- We eventually discuss new features in our Discord server. | ||
[Join the conversation][discord]! | ||
- nFPM had new releases as well, | ||
[check it out](https://github.com/goreleaser/nfpm/releases). | ||
|
||
## Download | ||
|
||
You can [install][] or upgrade using your favorite package manager, or see the | ||
full release notes and download the pre-compiled binaries [here][oss-rel] and | ||
[here (for Pro)][pro-rel]. | ||
|
||
## Helping out | ||
|
||
You can help by reporting issues, contributing features, documentation | ||
improvements, and bug fixes. | ||
You can also [sponsor the project](/sponsor), or get a | ||
[GoReleaser Pro licence][pro]. | ||
|
||
[pro]: /pro | ||
[install]: https://goreleaser.com/install | ||
[pro-rel]: https://github.com/goreleaser/goreleaser-pro/releases/tag/v1.24.0-pro | ||
[oss-rel]: https://github.com/goreleaser/goreleaser/releases/tag/v1.24.0 | ||
[discord]: https://goreleaser.com/discord |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# DMG | ||
|
||
> Since: v1.24 pro | ||
!!! success "GoReleaser Pro" | ||
|
||
The dmg feature is available only in [GoReleaser Pro feature](/pro/). | ||
|
||
GoReleaser can create DMG images for macOS using `mkisofs` or `hdiutil`. | ||
|
||
The `dmg` section specifies how the images should be created: | ||
|
||
```yaml | ||
# .goreleaser.yaml | ||
dmg: | ||
- # ID of the resulting image. | ||
# | ||
# Default: the project name | ||
id: foo | ||
|
||
# Filename of the image (without the extension). | ||
# | ||
# Default: '{{.ProjectName}}_{{.Arch}}' | ||
# Templates: allowed | ||
name: "myproject-{{.Arch}}" | ||
|
||
# IDs of the archives to use. | ||
# Empty means all IDs. | ||
ids: | ||
- foo | ||
- bar | ||
|
||
# GOAMD64 to specify which amd64 version to use if there are multiple | ||
# versions from the build section. | ||
# | ||
# Default: v1 | ||
goamd64: v1 | ||
|
||
# More files that will be available in the context in which the image | ||
# will be built. | ||
extra_files: | ||
- logo.ico | ||
|
||
# Whether to remove the archives from the artifact list. | ||
# If left as false, your end release will have both the archives and the | ||
# dmg files. | ||
replace: true | ||
|
||
# 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 | ||
|
||
1. Due to the way symbolic links are handled on Windows, the `/Applications` | ||
link inside the image might not work if the image was built on Windows. | ||
1. If running outside macOS, make sure to have `mkisofs` installed. | ||
|
||
!!! tip | ||
|
||
Learn more about the [name template engine](/customization/templates/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
# MSI | ||
|
||
> Since: v1.24 pro | ||
!!! success "GoReleaser Pro" | ||
|
||
The msi feature is available only in [GoReleaser Pro feature](/pro/). | ||
|
||
GoReleaser can create MSI installers for windows binaries using [msitools][]. | ||
|
||
The `msi` section specifies how the **installers** should be created: | ||
|
||
```yaml | ||
# .goreleaser.yaml | ||
msi: | ||
- # ID of the resulting installer. | ||
# | ||
# Default: the project name | ||
id: foo | ||
|
||
# Filename of the installer (without the extension). | ||
# | ||
# Default: '{{.ProjectName}}_{{.MsiArch}}' | ||
# Templates: allowed | ||
name: "myproject-{{.MsiArch}}" | ||
|
||
# The WXS file used to create the installers. | ||
# The file contents go through the templating engine, so you can do things | ||
# like `{{.Version}}` inside of it. | ||
# | ||
# Templates: allowed | ||
# Required. | ||
wxs: ./windows/app.wsx | ||
|
||
# IDs of the archives to use. | ||
# Empty means all IDs. | ||
ids: | ||
- foo | ||
- bar | ||
|
||
# GOAMD64 to specify which amd64 version to use if there are multiple | ||
# versions from the build section. | ||
# | ||
# Default: v1 | ||
goamd64: v1 | ||
|
||
# More files that will be available in the context in which the installer | ||
# will be built. | ||
extra_files: | ||
- logo.ico | ||
|
||
# Whether to remove the archives from the artifact list. | ||
# If left as false, your end release will have both the zip and the msi | ||
# files. | ||
replace: true | ||
|
||
# Set the modified timestamp on the output installer, 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 }}" | ||
``` | ||
|
||
On Windows, it'll try to use the `candle` and `light` binaries from the | ||
[Wix Toolkit][wix] instead. | ||
|
||
Here's an example `wsx` file that you can build upon: | ||
|
||
```xml | ||
<?xml version='1.0' encoding='windows-1252'?> | ||
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> | ||
<Product | ||
Name='{{.ProjectName}} {{.Version}}' | ||
Id='ABCDDCBA-86C7-4D14-AEC0-86413A69ABDE' | ||
UpgradeCode='ABCDDCBA-7349-453F-94F6-BCB5110BA8FD' | ||
Language='1033' | ||
Codepage='1252' | ||
Version='{{.Version}}' | ||
Manufacturer='My Company'> | ||
|
||
<Package | ||
Id='*' | ||
Keywords='Installer' | ||
Description="{{.ProjectName}} installer" | ||
Comments='' | ||
Manufacturer='My Company' | ||
InstallerVersion='200' | ||
Languages='1033' | ||
Compressed='yes' | ||
SummaryCodepage='1252' | ||
/> | ||
|
||
<Media | ||
Id='1' | ||
Cabinet='Sample.cab' | ||
EmbedCab='yes' | ||
DiskPrompt="CD-ROM #1" | ||
/> | ||
|
||
<Property | ||
Id='DiskPrompt' | ||
Value="{{.ProjectName}} {{.Version}} Installation [1]" | ||
/> | ||
|
||
<Directory Id='TARGETDIR' Name='SourceDir'> | ||
<Directory Id='ProgramFiles{{ if eq .Arch "amd64" }}64{{ end }}Folder' Name='PFiles'> | ||
<Directory Id='{{.ProjectName}}' Name='{{.ProjectName}}'> | ||
<Component | ||
Id='MainExecutable' | ||
Guid='ABCDDCBA-83F1-4F22-985B-FDB3C8ABD474' | ||
> | ||
<File | ||
Id='{{.Binary}}.exe' | ||
Name='{{.Binary}}.exe' | ||
DiskId='1' | ||
Source='{{.Binary}}.exe' | ||
KeyPath='yes' | ||
/> | ||
</Component> | ||
</Directory> | ||
</Directory> | ||
</Directory> | ||
|
||
<Feature Id='Complete' Level='1'> | ||
<ComponentRef Id='MainExecutable' /> | ||
</Feature> | ||
</Product> | ||
</Wix> | ||
``` | ||
|
||
## Limitations | ||
|
||
1. Some options available in the [Wix Toolset][wix] won't work with | ||
[msitools][], run a snapshot build and verify the generated installers. | ||
1. Only `amd64` and `386` are supported. | ||
|
||
!!! tip | ||
|
||
Learn more about the [name template engine](/customization/templates/). | ||
|
||
[msitools]: https://wiki.gnome.org/msitools | ||
[wix]: https://wixtoolset.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.