commit 53f39c0056b10f322628fcc9817aa76561ea834b
parent 24043fcd0c1ee0d52cf31599ca74ec2c33d3cf95
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Wed, 15 Mar 2023 19:18:17 +0800
tmpl: fix powershell syntax
This string literal requires open and close to be
on separate lines.
Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tmpl/powershell.go.tmpl b/tmpl/powershell.go.tmpl
@@ -4,7 +4,9 @@
$APP_ID = '{{if .AppID}}{{.AppID}}{{else}}Windows App{{end}}'
-$template = @"{{template "toast-xml"}}"@
+$template = @"
+{{.XML}}
+"@
$xml = New-Object Windows.Data.Xml.Dom.XmlDocument
$xml.LoadXml($template)