/// <summary> /// Creates files for release using Squirrel.Windows and upload them to GitHub release page. /// All information (Repository, Versions, Title, Description) should be specified in csproj file. /// Example: /// UpdateManager test.csproj /// will seek first csproj file in the current directory /// after that will generate release files from the package in bin\Release /// The name of package is 'PackageId.Version.nupkg' /// </summary> /// <param name="fileProject">Path of csproj file. By default first csproj file in the current directory.</param> // static void Main(string fileProject) static void Main(string[] args) { var upd = new ReleaseFactory(args[0]); upd.CreateRelease(); upd.UploadReleaseToGithub().Wait(); }
public void CreateReleaseFiles() { Assert.True(Directory.Exists(_rf._path)); Assert.True(Directory.Exists(Path.Combine(_rf._path, "Releases"))); var dir = new DirectoryInfo(Path.Combine(_rf._path, "Releases")); Assert.False(dir.GetFiles().Any()); _rfMemb.CreateRelease(); Assert.True(File.Exists(Path.Combine(_rf._path, "Releases", $"{_rf.rf.PackageId}-{_rf.rf.Version}-full.nupkg"))); Assert.True(File.Exists(Path.Combine(_rf._path, "Releases", "Setup.exe"))); Assert.True(File.Exists(Path.Combine(_rf._path, "Releases", "RELEASES"))); }