@@ -24,6 +24,9 @@ namespace KuiperZone.PupNet.Test;
2424/// </summary>
2525public class DummyConf : ConfigurationReader
2626{
27+ public const string ExpectSignTool =
28+ "\" C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/signtool.exe\" sign /f \" {#GetEnv('SigningCertificate')}\" /p \" {#GetEnv('SigningCertificatePassword')}\" /tr http://timestamp.sectigo.com /td sha256 /fd sha256 $f" ;
29+
2730 public DummyConf ( )
2831 : base ( new ArgumentReader ( ) , Create ( ) )
2932 {
@@ -48,59 +51,59 @@ private static string[] Create(string? omit = null)
4851 var lines = new List < string > ( ) ;
4952
5053 // Quote variations
51- lines . Add ( $ "{ nameof ( ConfigurationReader . AppBaseName ) } = 'HelloWorld'") ;
52- lines . Add ( $ "{ nameof ( ConfigurationReader . AppFriendlyName ) } = Hello World") ;
53- lines . Add ( $ "{ nameof ( ConfigurationReader . AppId ) } = \" net.example.helloworld\" ") ;
54- lines . Add ( $ "{ nameof ( ConfigurationReader . AppVersionRelease ) } = 5.4.3[2]") ;
55- lines . Add ( $ "{ nameof ( ConfigurationReader . PackageName ) } = HelloWorld") ;
56- lines . Add ( $ "{ nameof ( ConfigurationReader . AppShortSummary ) } = Test <application> only") ;
57- lines . Add ( $ "{ nameof ( ConfigurationReader . AppDescription ) } = \n Para1-Line1\n <Para1-Line2>\n \n - Bullet1\n * Bullet2\n Para2-Line1 has ${{MACRO_VAR}}\n ") ;
58- lines . Add ( $ "{ nameof ( ConfigurationReader . AppLicenseId ) } = LicenseRef-LICENSE") ;
59- lines . Add ( $ "{ nameof ( ConfigurationReader . AppLicenseFile ) } = LICENSE") ;
60- lines . Add ( $ "{ nameof ( ConfigurationReader . AppChangeFile ) } = CHANGELOG") ;
61-
62- lines . Add ( $ "{ nameof ( ConfigurationReader . PublisherName ) } = Kuiper Zone") ;
63- lines . Add ( $ "{ nameof ( ConfigurationReader . PublisherCopyright ) } = Copyright Kuiper Zone") ;
64- lines . Add ( $ "{ nameof ( ConfigurationReader . PublisherLinkName ) } = kuiper.zone") ;
65- lines . Add ( $ "{ nameof ( ConfigurationReader . PublisherLinkUrl ) } = https://kuiper.zone") ;
66- lines . Add ( $ "{ nameof ( ConfigurationReader . PublisherEmail ) } = [email protected] ") ; 67-
68- lines . Add ( $ "{ nameof ( ConfigurationReader . StartCommand ) } = helloworld") ;
69- lines . Add ( $ "{ nameof ( ConfigurationReader . DesktopNoDisplay ) } = TRUE") ;
70- lines . Add ( $ "{ nameof ( ConfigurationReader . DesktopTerminal ) } = False") ;
71- lines . Add ( $ "{ nameof ( ConfigurationReader . PrimeCategory ) } = Development") ;
72- lines . Add ( $ "{ nameof ( ConfigurationReader . DesktopFile ) } = app.desktop") ;
73- lines . Add ( $ "{ nameof ( ConfigurationReader . IconFiles ) } = Assets/Icon.32x32.png; Assets/Icon.x48.png; Assets/Icon.64.png; Assets/Icon.ico; Assets/Icon.svg;") ;
74- lines . Add ( $ "{ nameof ( ConfigurationReader . MetaFile ) } = metainfo.xml") ;
75-
76- lines . Add ( $ "{ nameof ( ConfigurationReader . DotnetProjectPath ) } = HelloProject") ;
77- lines . Add ( $ "{ nameof ( ConfigurationReader . DotnetPublishArgs ) } = --self-contained true") ;
78- lines . Add ( $ "{ nameof ( ConfigurationReader . DotnetPostPublish ) } = PostPublishCommand.sh") ;
79- lines . Add ( $ "{ nameof ( ConfigurationReader . DotnetPostPublishOnWindows ) } = PostPublishCommandOnWindows.bat") ;
80-
81- lines . Add ( $ "{ nameof ( ConfigurationReader . OutputDirectory ) } = Deploy") ;
82-
83- lines . Add ( $ "{ nameof ( ConfigurationReader . AppImageArgs ) } = -appargs") ;
84- lines . Add ( $ "{ nameof ( ConfigurationReader . AppImageVersionOutput ) } = true") ;
85-
86- lines . Add ( $ "{ nameof ( ConfigurationReader . FlatpakPlatformRuntime ) } = org.freedesktop.Platform") ;
87- lines . Add ( $ "{ nameof ( ConfigurationReader . FlatpakPlatformSdk ) } = org.freedesktop.Sdk") ;
88- lines . Add ( $ "{ nameof ( ConfigurationReader . FlatpakPlatformVersion ) } = \" 18.00\" ") ;
89- lines . Add ( $ "{ nameof ( ConfigurationReader . FlatpakFinishArgs ) } = --socket=wayland;--socket=fallback-x11;--filesystem=host;--share=network") ;
90- lines . Add ( $ "{ nameof ( ConfigurationReader . FlatpakBuilderArgs ) } = -flatargs") ;
91-
92- lines . Add ( $ "{ nameof ( ConfigurationReader . RpmAutoReq ) } = true") ;
93- lines . Add ( $ "{ nameof ( ConfigurationReader . RpmAutoProv ) } = false") ;
94- lines . Add ( $ "{ nameof ( ConfigurationReader . RpmRequires ) } = rpm-requires1;rpm-requires2") ;
95-
96- lines . Add ( $ "{ nameof ( ConfigurationReader . DebianRecommends ) } = deb-depends1;deb-depends2") ;
97-
98- lines . Add ( $ "{ nameof ( ConfigurationReader . SetupAdminInstall ) } = true") ;
99- lines . Add ( $ "{ nameof ( ConfigurationReader . SetupCommandPrompt ) } = Command Prompt") ;
100- lines . Add ( $ "{ nameof ( ConfigurationReader . SetupMinWindowsVersion ) } = 6.9") ;
101- lines . Add ( $ "{ nameof ( ConfigurationReader . SetupSignTool ) } = signtool.exe ") ;
102- lines . Add ( $ "{ nameof ( ConfigurationReader . SetupSuffixOutput ) } = Setup") ;
103- lines . Add ( $ "{ nameof ( ConfigurationReader . SetupVersionOutput ) } = true") ;
54+ lines . Add ( $ "{ nameof ( AppBaseName ) } = 'HelloWorld'") ;
55+ lines . Add ( $ "{ nameof ( AppFriendlyName ) } = Hello World") ;
56+ lines . Add ( $ "{ nameof ( AppId ) } = \" net.example.helloworld\" ") ;
57+ lines . Add ( $ "{ nameof ( AppVersionRelease ) } = 5.4.3[2]") ;
58+ lines . Add ( $ "{ nameof ( PackageName ) } = HelloWorld") ;
59+ lines . Add ( $ "{ nameof ( AppShortSummary ) } = Test <application> only") ;
60+ lines . Add ( $ "{ nameof ( AppDescription ) } = \n Para1-Line1\n <Para1-Line2>\n \n - Bullet1\n * Bullet2\n Para2-Line1 has ${{MACRO_VAR}}\n ") ;
61+ lines . Add ( $ "{ nameof ( AppLicenseId ) } = LicenseRef-LICENSE") ;
62+ lines . Add ( $ "{ nameof ( AppLicenseFile ) } = LICENSE") ;
63+ lines . Add ( $ "{ nameof ( AppChangeFile ) } = CHANGELOG") ;
64+
65+ lines . Add ( $ "{ nameof ( PublisherName ) } = Kuiper Zone") ;
66+ lines . Add ( $ "{ nameof ( PublisherCopyright ) } = Copyright Kuiper Zone") ;
67+ lines . Add ( $ "{ nameof ( PublisherLinkName ) } = kuiper.zone") ;
68+ lines . Add ( $ "{ nameof ( PublisherLinkUrl ) } = https://kuiper.zone") ;
69+ lines . Add ( $ "{ nameof ( PublisherEmail ) } = [email protected] ") ; 70+
71+ lines . Add ( $ "{ nameof ( StartCommand ) } = helloworld") ;
72+ lines . Add ( $ "{ nameof ( DesktopNoDisplay ) } = TRUE") ;
73+ lines . Add ( $ "{ nameof ( DesktopTerminal ) } = False") ;
74+ lines . Add ( $ "{ nameof ( PrimeCategory ) } = Development") ;
75+ lines . Add ( $ "{ nameof ( DesktopFile ) } = app.desktop") ;
76+ lines . Add ( $ "{ nameof ( IconFiles ) } = Assets/Icon.32x32.png; Assets/Icon.x48.png; Assets/Icon.64.png; Assets/Icon.ico; Assets/Icon.svg;") ;
77+ lines . Add ( $ "{ nameof ( MetaFile ) } = metainfo.xml") ;
78+
79+ lines . Add ( $ "{ nameof ( DotnetProjectPath ) } = HelloProject") ;
80+ lines . Add ( $ "{ nameof ( DotnetPublishArgs ) } = --self-contained true") ;
81+ lines . Add ( $ "{ nameof ( DotnetPostPublish ) } = PostPublishCommand.sh") ;
82+ lines . Add ( $ "{ nameof ( DotnetPostPublishOnWindows ) } = PostPublishCommandOnWindows.bat") ;
83+
84+ lines . Add ( $ "{ nameof ( OutputDirectory ) } = Deploy") ;
85+
86+ lines . Add ( $ "{ nameof ( AppImageArgs ) } = -appargs") ;
87+ lines . Add ( $ "{ nameof ( AppImageVersionOutput ) } = true") ;
88+
89+ lines . Add ( $ "{ nameof ( FlatpakPlatformRuntime ) } = org.freedesktop.Platform") ;
90+ lines . Add ( $ "{ nameof ( FlatpakPlatformSdk ) } = org.freedesktop.Sdk") ;
91+ lines . Add ( $ "{ nameof ( FlatpakPlatformVersion ) } = \" 18.00\" ") ;
92+ lines . Add ( $ "{ nameof ( FlatpakFinishArgs ) } = --socket=wayland;--socket=fallback-x11;--filesystem=host;--share=network") ;
93+ lines . Add ( $ "{ nameof ( FlatpakBuilderArgs ) } = -flatargs") ;
94+
95+ lines . Add ( $ "{ nameof ( RpmAutoReq ) } = true") ;
96+ lines . Add ( $ "{ nameof ( RpmAutoProv ) } = false") ;
97+ lines . Add ( $ "{ nameof ( RpmRequires ) } = rpm-requires1;rpm-requires2") ;
98+
99+ lines . Add ( $ "{ nameof ( DebianRecommends ) } = deb-depends1;deb-depends2") ;
100+
101+ lines . Add ( $ "{ nameof ( SetupAdminInstall ) } = true") ;
102+ lines . Add ( $ "{ nameof ( SetupCommandPrompt ) } = Command Prompt") ;
103+ lines . Add ( $ "{ nameof ( SetupMinWindowsVersion ) } = 6.9") ;
104+ lines . Add ( $ "{ nameof ( SetupSignTool ) } = { ExpectSignTool } ") ;
105+ lines . Add ( $ "{ nameof ( SetupSuffixOutput ) } = Setup") ;
106+ lines . Add ( $ "{ nameof ( SetupVersionOutput ) } = true") ;
104107
105108 Remove ( lines , omit ) ;
106109
0 commit comments