Skip to content

Commit 4acfab9

Browse files
author
Antoine Aflalo
committed
Generate changelog html
Add it to the installer. Fixes #79
1 parent 153fc77 commit 4acfab9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Installer/setup.iss

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Source: "{#ExeDir}x86\SoundSwitch.exe"; DestDir: "{app}"; Check: not Is64BitIns
6868
Source: "{#ExeDir}x86\*.dll"; DestDir: "{app}"; Check: not Is64BitInstallMode
6969
Source: "{#ExeDir}x86\fr\*.dll"; DestDir: "{app}\fr"; Check: not Is64BitInstallMode
7070

71-
Source: "{#ExeDir}CHANGELOG.md"; DestDir: "{app}"
71+
Source: "{#ExeDir}Changelog.html"; DestDir: "{app}"
7272
Source: "{#ExeDir}Readme.html"; DestDir: "{app}"
7373

7474
[Registry]
@@ -82,6 +82,7 @@ Name: "{commondesktop}\{#MyAppSetupName}"; Filename: "{app}\SoundSwitch.exe"; Ta
8282
[Run]
8383
Filename: "{app}\SoundSwitch.exe"; Description: "{cm:LaunchProgram,{#MyAppSetupName}}"; Flags: nowait postinstall
8484
Filename: "{app}\Readme.html"; Description: "View the README file"; Flags: postinstall shellexec skipifsilent
85+
Filename: "{app}\Changelog.html"; Description: "View the CHANGELOG file"; Flags: postinstall shellexec skipifsilent unchecked
8586

8687
[CustomMessages]
8788
win_sp_title=Windows %1 Service Pack %2

Make.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ Echo.
4444

4545
if "%builderror%"=="1" echo error: build failed & goto Quit
4646

47-
echo "Copy Changelog"
48-
xcopy /y CHANGELOG.md %finalDir% 1>nul 2>nul
47+
echo "Generate Changelog"
48+
cmd.exe /c markdown-html CHANGELOG.md -o %finalDir%\Changelog.html > NUL
4949

5050
echo "Generate README"
5151
cmd.exe /c markdown-html README.md -o %finalDir%\Readme.html > NUL

0 commit comments

Comments
 (0)