Skip to content

Commit

Permalink
add version to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
xupefei committed Sep 2, 2018
1 parent 8ceb73e commit 4583679
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,4 @@ ASALocalRun/
.mfractor/
/*.qlplugin
/GitVersion.cs
/QuickLook.Plugin.Metadata.config
1 change: 1 addition & 0 deletions QuickLook.Plugin.HelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="QuickLook.Plugin.Metadata.Base.config" />
<None Include="QuickLook.Plugin.Metadata.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>

<Metadata>
<Namespace>QuickLook.Plugin.HelloWorld</Namespace>
<Version>0</Version>
<Description>This plugin does nothing at all.</Description>
</Metadata>
7 changes: 6 additions & 1 deletion Scripts/update-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ using System.Reflection;
[assembly: AssemblyInformationalVersion("$revision")]
"@

$text | Out-File $PSScriptRoot\..\GitVersion.cs -Encoding utf8
$text | Out-File $PSScriptRoot\..\GitVersion.cs -Encoding utf8


$xml = [xml](Get-Content $PSScriptRoot\..\QuickLook.Plugin.Metadata.Base.config)
$xml.Metadata.Version="$revision"
$xml.Save("$PSScriptRoot\..\QuickLook.Plugin.Metadata.config")

0 comments on commit 4583679

Please sign in to comment.