Jump to content
Ketarin forum

Changelogs to changelogs.html


trockenasche
 Share

Recommended Posts

I'm getting pretty much from every application the changelog with a variable.
Also I run a C# code after updating an application:

string downloadFolder = app.Variables.ReplaceAllInString("{download_folder}");	
string appName = app.Variables.ReplaceAllInString("{appname}");
string version = app.Variables.ReplaceAllInString("{version}");
string changelog = app.Variables.ReplaceAllInString("{changelog}");
if (changelog  == "{changelog}")
{
 changelog = "";
}

using (System.IO.StreamWriter w = System.IO.File.AppendText(downloadFolder + @"\changelogs.html"))
{
	w.WriteLine("<hr size=10 noshade>");
	w.WriteLine("<h1>{0} - {1}</h1>", appName, version);
	w.WriteLine(changelog);
	w.WriteLine("<br><br><br>");
}

return;

After updating my applications I'm getting a changelogs.html that look like:

 


Adblock Plus - 2.6.9.1

 

* Slightly optimized performance, domain-specific filters will no longer affect overall performance.
* Added extensions.adblockplus.suppress_first_run_page preference to allow administrators disable the first-run page if Adblock Plus is installed globally.
* Fixed: $elemhide filter option doesn't consider website signatures correctly.



Inkscape - 0.91

Released on 2015-01-28.

  • Cairo rendering for display and PNG export
  • OpenMP multithreading for all filters
  • C++ code conversion
  • Major improvements in the Text tool
  • Measure tool
  • Type design features [1],[2]
  • Symbol library and support for Visio stencils
  • Cross platform WMF and EMF import and export
  • Improved support for Corel DRAW documents, Visio importer
  • Support for real world document and page size units, e.g. millimeters
  • Numerous usability improvements
  • Native Windows 64-bit build
  • See Notable bug fixes

 

There are now two ways to continue with this file:

1. Rename the file with the actual date and time as a command "after updating all applications";

move "{download_folder}\changelogs.html" "{download_folder}\changelog-{yyyy}-{MM}-{dd}T{HH}-{mm}.html"

2. sending the content from changelogs.html via e-mail to me :)
therefore I made a powershell script:

$smtpServer = "email.server.com"
$file = "C:\YOUR\DOWNLOAD\FOLDER\changelogs.html"
$body = "$(cat $file)"
$from ="Ketarin <ketrain@server.com>"
$to = "me@server.com"
$subject = "Ketarin Updates"

send-MailMessage -SmtpServer $smtpServer -To $to -From $from -Subject $subject -Body $body -BodyAsHtml -Encoding ([System.Text.Encoding]::UTF8)

Forgot to mention, that mean you can run Ketarin as a task and you getting after an application update an email.

Edited by trockenasche
Link to comment
Share on other sites

  • 8 months later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.