Commit f8627777 authored by Ming Rui Zhang's avatar Ming Rui Zhang

changelog: now generate changelog in the stage of compiling client

Change-Id: Ia674ec08e349ec68bfa907b85bee5376325bbbeb
parent 8f2b5082
......@@ -92,9 +92,4 @@ Get-ChildItem -Path $clientTSPath -Include *.qm -Recurse | ForEach-Object {
Copy-Item -Path $_.FullName -Destination $CopyDir -Force Recurse
}
write-host "copy completed" -ForegroundColor Green
write-host "Generate change log html" -ForegroundColor Green
$command = 'pandoc -f markdown -t html5 -o changelog.html changelog.md'
iex "& $command"
write-host "Conversion completed" -NoNewline -ForegroundColor Green
\ No newline at end of file
write-host "copy completed" -NoNewline -ForegroundColor Green
\ No newline at end of file
echo Start generating changelog
start pandoc -f markdown -t html5 -o changelog.html changelog.md
echo Changelog generated successfully
\ No newline at end of file
......@@ -8,6 +8,7 @@
<file>images/icons/baseline-done-24px.svg</file>
<file>images/icons/baseline-error_outline-24px.svg</file>
<file>stylesheet.css</file>
<file>changelog.html</file>
<file>images/ajax-loader.gif</file>
<file>images/default_avatar_overlay.svg</file>
<file>images/FontAwesome.otf</file>
......
......@@ -327,7 +327,7 @@ QString
Utils::getChangeLog()
{
QString logs;
QFile changeLogFile("changelog.html");
QFile changeLogFile(":/changelog.html");
if (!changeLogFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
qDebug().noquote() << " Change log file failed to load";
return {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment