Update packaging scripts to use new HTML doc

This commit is contained in:
Oliver Hamlet
2016-09-22 07:52:30 +01:00
parent bc5281bf1f
commit f54698891b
2 changed files with 7 additions and 20 deletions
+5 -12
View File
@@ -147,18 +147,11 @@ function createAppArchive(rootPath, releasePath, tempPath, destPath) {
path.join(tempPath, 'resources', 'ui', 'fonts')
);
// Docs.
fs.mkdirsSync(path.join(tempPath, 'docs'));
[
'images',
'licenses',
'LOOT Readme.html',
].forEach((item) => {
fs.copySync(
path.join(rootPath, 'docs', item),
path.join(tempPath, 'docs', item)
);
});
// Documentation.
fs.copySync(
path.join(rootPath, 'build', 'docs', 'html'),
path.join(tempPath, 'docs')
);
// Now compress the folder to a 7-zip archive.
compress(tempPath, destPath);
+2 -8
View File
@@ -102,14 +102,8 @@ DestDir: "{app}"; Flags: ignoreversion
Source: "{#buildir}\Release\resources\l10n\en-US.pak"; \
DestDir: "{app}\resources\l10n"; Flags: ignoreversion
Source: "docs\LOOT Readme.html"; \
DestDir: "{app}\docs"; Flags: ignoreversion isreadme
Source: "docs\licenses\*"; \
DestDir: "{app}\docs\licenses"; Flags: ignoreversion
Source: "docs\images\main.png"; \
DestDir: "{app}\docs\images"; Flags: ignoreversion
Source: "docs\images\settings.png"; \
DestDir: "{app}\docs\images"; Flags: ignoreversion
Source: "{#buildir}\docs\html\*"; \
DestDir: "{app}\docs"; Flags: ignoreversion recursesubdirs
Source: "{#buildir}\Release\resources\ui\index.html"; \
DestDir: "{app}\resources\ui"; Flags: ignoreversion