Files
grafana/pkg/build/daggerbuild/msi/builder.go
Kevin Minehart 8b370bb6a5 CI: Build pre-release artifacts in GhA on merge to release branches and main. (#106779)
* Add grafana-build action and workflow

* Fix the --verify flag stalling on tar.gz builds

* Add event sources for main / release branches

* Update CODEOWNERS
2025-06-16 22:54:50 +02:00

28 lines
959 B
Go

package msi
import (
"dagger.io/dagger"
)
func Builder(d *dagger.Client, src *dagger.Directory) *dagger.Container {
nssm := d.Container().From("busybox").
WithExec([]string{"wget", "-q", "https://dl.grafana.com/ci/nssm-2.24.zip"}).
WithExec([]string{"unzip", "nssm-2.24.zip"}).
Directory("nssm-2.24")
wix3 := d.Container().From("busybox").
WithWorkdir("/src").
WithExec([]string{"wget", "-q", "https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip"}).
WithExec([]string{"unzip", "wix314-binaries.zip"}).
WithExec([]string{"rm", "wix314-binaries.zip"}).
Directory("/src")
builder := d.Container().From("scottyhardy/docker-wine:stable-10.0-20250608").
WithEntrypoint([]string{}).
WithMountedDirectory("/src/nssm-2.24", nssm).
WithMountedDirectory("/src/wix3", wix3).
WithWorkdir("/src")
return builder.WithMountedDirectory("/src/resources", src.Directory("pkg/build/daggerbuild/msi/resources"))
}