Jump to content
Ketarin forum
trockenasche

Changelogs to changelogs.html

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

Share this post


Link to post
Share on other sites
Guest mickythekiller

hi,

i haven't any changelog file created with this C# script...

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • 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.