Skip to content

Commit 8be16bc

Browse files
committed
add version to metadata
1 parent 6d91d75 commit 8be16bc

4 files changed

+10
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -330,3 +330,4 @@ ASALocalRun/
330330
.mfractor/
331331
/*.qlplugin
332332
/GitVersion.cs
333+
/QuickLook.Plugin.Metadata.config

QuickLook.Plugin.EpubViewer.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
</ItemGroup>
127127
<ItemGroup>
128128
<None Include="packages.config" />
129+
<None Include="QuickLook.Plugin.Metadata.Base.config" />
129130
<None Include="QuickLook.Plugin.Metadata.config">
130131
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
131132
</None>
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
1+
<?xml version="1.0" encoding="utf-8"?>
32
<Metadata>
43
<Namespace>QuickLook.Plugin.EpubViewer</Namespace>
4+
<Version>0</Version>
55
<Description>This plugin enables EPUB file previewing.</Description>
66
</Metadata>

Scripts/update-version.ps1

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ using System.Reflection;
1010
[assembly: AssemblyInformationalVersion("$revision")]
1111
"@
1212

13-
$text | Out-File $PSScriptRoot\..\GitVersion.cs -Encoding utf8
13+
$text | Out-File $PSScriptRoot\..\GitVersion.cs -Encoding utf8
14+
15+
16+
$xml = [xml](Get-Content $PSScriptRoot\..\QuickLook.Plugin.Metadata.Base.config)
17+
$xml.Metadata.Version="$revision"
18+
$xml.Save("$PSScriptRoot\..\QuickLook.Plugin.Metadata.config")

0 commit comments

Comments
 (0)