File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777 uses : softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
7878 with :
7979 generate_release_notes : true
80- files : mdterm-*
80+ files : |
81+ mdterm-*.zip
82+ mdterm-*.tar.gz
8183
8284 publish-packages :
8385 needs : release
Original file line number Diff line number Diff line change 66 <ImplicitUsings >enable</ImplicitUsings >
77 <Nullable >enable</Nullable >
88 <RestorePackagesWithLockFile >true</RestorePackagesWithLockFile >
9+ <DebugType >none</DebugType >
910 </PropertyGroup >
1011
1112 <ItemGroup >
1516 </ItemGroup >
1617
1718 <ItemGroup >
18- <None Update =" Fonts\*.flf" >
19- <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
20- </None >
19+ <EmbeddedResource Include =" Fonts\*.flf" />
2120 </ItemGroup >
2221
2322</Project >
Original file line number Diff line number Diff line change 1+ using System . Reflection ;
12using AngleSharp . Dom ;
23using Spectre . Console ;
34
@@ -13,10 +14,10 @@ public sealed class HeadingRenderer : INodeRenderer
1314
1415 public HeadingRenderer ( )
1516 {
16- var fontDir = Path . Combine ( AppContext . BaseDirectory , "Fonts" ) ;
17- _standardFont = FigletFont . Load ( Path . Combine ( fontDir , " standard.flf") ) ;
18- _smallFont = FigletFont . Load ( Path . Combine ( fontDir , " small.flf") ) ;
19- _miniFont = FigletFont . Load ( Path . Combine ( fontDir , " mini.flf") ) ;
17+ var asm = Assembly . GetExecutingAssembly ( ) ;
18+ _standardFont = FigletFont . Load ( asm . GetManifestResourceStream ( "MdTerm.Fonts. standard.flf") ! ) ;
19+ _smallFont = FigletFont . Load ( asm . GetManifestResourceStream ( "MdTerm.Fonts. small.flf") ! ) ;
20+ _miniFont = FigletFont . Load ( asm . GetManifestResourceStream ( "MdTerm.Fonts. mini.flf") ! ) ;
2021 }
2122
2223 public bool CanRender ( INode node )
You can’t perform that action at this time.
0 commit comments