Skip to content

Commit

Permalink
[build] Make it easier to make alpha/beta releases
Browse files Browse the repository at this point in the history
Create (and commit!) a file called alpha.txt or beta.txt
to postfix releases as alpha or beta.
  • Loading branch information
alanmcgovern committed Sep 4, 2019
1 parent 1012c0c commit 25d3127
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Empty file added alpha.txt
Empty file.
1 change: 0 additions & 1 deletion src/MonoTorrent/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
using System.IO;

[assembly: InternalsVisibleTo("MonoTorrent.Tests")]
[assembly: AssemblyCopyright("Alan McGovern, Gregor Buguer; MIT X11 Licensed")]
5 changes: 4 additions & 1 deletion src/MonoTorrent/MonoTorrent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<GitIgnoreTagVersion>true</GitIgnoreTagVersion>
<GitCommitsRelativeTo>$([MSBuild]::GetDirectoryNameOfFileAbove ('$(MSBuildThisFileDirectory)', 'version.txt'))\</GitCommitsRelativeTo>

<MonoTorrentReleaseSuffix Condition="Exists ('$(GitCommitsRelativeTo)\alpha.txt')">-alpha</MonoTorrentReleaseSuffix>
<MonoTorrentReleaseSuffix Condition="Exists ('$(GitCommitsRelativeTo)\beta.txt')">-beta</MonoTorrentReleaseSuffix>

<BeforePack>$(BeforePack);SetPackProperties</BeforePack>
<PackDependsOn>$(PackDependsOn);CreatePlainZip</PackDependsOn>
</PropertyGroup>
Expand Down Expand Up @@ -68,7 +71,7 @@ Notable features include:
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageProjectUrl>https://github.com/mono/monotorrent</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageVersion>$(MonoTorrentFileVersion)</PackageVersion>
<PackageVersion>$(MonoTorrentFileVersion)$(MonoTorrentReleaseSuffix)</PackageVersion>
<PackageTags>bittorrent;torrent</PackageTags>

<IncludeSource>true</IncludeSource>
Expand Down

0 comments on commit 25d3127

Please sign in to comment.