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:
+6
-1
@@ -22,6 +22,9 @@ addons:
|
||||
- libxss-dev
|
||||
- libasound2-dev
|
||||
- libxtst-dev
|
||||
# Scripting dependencies
|
||||
- inkscape
|
||||
- imagemagick
|
||||
sauce_connect: true
|
||||
|
||||
cache:
|
||||
@@ -59,8 +62,10 @@ install:
|
||||
- export PATH="$PWD/doxygen-1.8.12/bin:$PATH"
|
||||
|
||||
before_script:
|
||||
- mkdir build
|
||||
- node scripts/create_ico.js
|
||||
# Move into the cloned LOOT repo build path.
|
||||
- mkdir build && cd build
|
||||
- cd build
|
||||
# Link dynamically to the C++ standard library runtime.
|
||||
- cmake .. -DBOOST_ROOT=~/boost_1_61_0
|
||||
|
||||
|
||||
+3
-1
@@ -17,7 +17,7 @@ environment:
|
||||
secure: u234T2688DZmz4JH5+0iAHcUcL2fEIGculb8655bn4B1q7GckhplsitzgEbv3NFc
|
||||
|
||||
install:
|
||||
- choco install -y doxygen.portable InnoSetup
|
||||
- choco install -y doxygen.portable InnoSetup inkscape imagemagick.tool
|
||||
- python -m pip install sphinx breathe sphinx_rtd_theme
|
||||
- npm install
|
||||
- .\node_modules\.bin\bower install
|
||||
@@ -26,6 +26,8 @@ install:
|
||||
before_build:
|
||||
- cd %APPVEYOR_BUILD_FOLDER%
|
||||
- ps: mkdir build
|
||||
- set PATH=C:\ProgramData\chocolatey\lib\imagemagick.tool\tools;%PATH%;C:\Program Files\Inkscape
|
||||
- node scripts\create_ico.js
|
||||
- cd build
|
||||
- cmake .. -G "Visual Studio 14 2015" -DBOOST_ROOT="C:\projects\boost_1_61_0"
|
||||
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ PROJECT_BRIEF = "A load order optimisation tool for various games by Be
|
||||
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
|
||||
# the logo to the output directory.
|
||||
|
||||
PROJECT_LOGO = C:/Users/Oliver/Documents/GitHub/LOOT/loot/resources/icon.ico
|
||||
PROJECT_LOGO =
|
||||
|
||||
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
|
||||
# into which the generated documentation will be written. If a relative path is
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 225 KiB |
@@ -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
|
||||
|
||||
+1
-1
@@ -19,4 +19,4 @@ BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
MAINICON ICON "../resources/icon.ico"
|
||||
MAINICON ICON "../build/icon/icon.ico"
|
||||
|
||||
Reference in New Issue
Block a user