mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove ICO file from repository
Instead generate it as a pre-build step. It can't be generated as part of the CMake build process because MSVC changes the PATH so that another convert.exe conflicts with imagemagick's.
This commit is contained in:
@@ -4,7 +4,7 @@ const path = require('path');
|
||||
|
||||
const svgPath = path.join('resources', 'icon.svg');
|
||||
const buildDirectory = path.join('build', 'icon');
|
||||
const outputPath = path.join('resources', 'icon.ico');
|
||||
const outputPath = path.join(buildDirectory, 'icon.ico');
|
||||
|
||||
const sizes = [16, 20, 24, 30, 32, 36, 40, 48, 60, 64, 72, 80, 96, 128, 256];
|
||||
|
||||
@@ -29,5 +29,3 @@ sizes.forEach((size) => {
|
||||
|
||||
convertArgs.push(outputPath);
|
||||
childProcess.execFileSync('convert', convertArgs);
|
||||
|
||||
fs.removeSync(buildDirectory);
|
||||
|
||||
@@ -47,7 +47,7 @@ DefaultDirName={pf}\{#MyAppName}
|
||||
SourceDir=..\
|
||||
OutputBaseFilename=LOOT Installer
|
||||
OutputDir=build
|
||||
SetupIconFile=resources\icon.ico
|
||||
SetupIconFile=build\icon\icon.ico
|
||||
Compression=lzma
|
||||
SolidCompression=yes
|
||||
DisableDirPage=no
|
||||
|
||||
Reference in New Issue
Block a user