github.com/pojntfx/hydrapp/hydrapp@v0.0.0-20240516002902-d08759d6ca9f/pkg/renderers/msi/wix.go (about) 1 package msi 2 3 import ( 4 _ "embed" 5 6 "github.com/pojntfx/hydrapp/hydrapp/pkg/renderers" 7 ) 8 9 //go:embed wix.wxl 10 var wixTemplate string 11 12 type wixData struct { 13 AppID string 14 AppName string 15 AppReleases []renderers.Release 16 } 17 18 func NewWixRenderer( 19 appID string, 20 appName string, 21 appReleases []renderers.Release, 22 ) renderers.Renderer { 23 return renderers.NewRenderer( 24 appID+".wxl", 25 wixTemplate, 26 wixData{appID, appName, appReleases}, 27 ) 28 }