Generate Windows icon from the artwork dir.
This commit is contained in:
parent
f84efccdd0
commit
809197764d
@ -17,6 +17,7 @@ addons:
|
|||||||
packages:
|
packages:
|
||||||
- dpkg
|
- dpkg
|
||||||
- liblua5.1-0
|
- liblua5.1-0
|
||||||
|
- imagemagick
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make
|
- make
|
||||||
|
|||||||
BIN
packaging/artwork/icon_24x24.png
Normal file
BIN
packaging/artwork/icon_24x24.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
command -v makensis >/dev/null 2>&1 || { echo >&2 "Windows packaging requires makensis."; exit 1; }
|
command -v makensis >/dev/null 2>&1 || { echo >&2 "Windows packaging requires makensis."; exit 1; }
|
||||||
|
command -v convert >/dev/null 2>&1 || { echo >&2 "Windows packaging requires ImageMagick."; exit 1; }
|
||||||
|
|
||||||
require_variables() {
|
require_variables() {
|
||||||
missing=""
|
missing=""
|
||||||
@ -21,6 +22,7 @@ fi
|
|||||||
|
|
||||||
PACKAGING_DIR=$(python -c "import os; print(os.path.dirname(os.path.realpath('$0')))")
|
PACKAGING_DIR=$(python -c "import os; print(os.path.dirname(os.path.realpath('$0')))")
|
||||||
TEMPLATE_ROOT="${PACKAGING_DIR}/../../"
|
TEMPLATE_ROOT="${PACKAGING_DIR}/../../"
|
||||||
|
ARTWORK_DIR="${PACKAGING_DIR}/../artwork/"
|
||||||
|
|
||||||
# shellcheck source=mod.config
|
# shellcheck source=mod.config
|
||||||
. "${TEMPLATE_ROOT}/mod.config"
|
. "${TEMPLATE_ROOT}/mod.config"
|
||||||
@ -107,7 +109,8 @@ function build_platform()
|
|||||||
|
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
cp "mod.ico" "${BUILTDIR}/${MOD_ID}.ico"
|
# Create multi-resolution icon
|
||||||
|
convert "${ARTWORK_DIR}/icon_16x16.png" "${ARTWORK_DIR}/icon_24x24.png" "${ARTWORK_DIR}/icon_32x32.png" "${ARTWORK_DIR}/icon_48x48.png" "${ARTWORK_DIR}/icon_256x256.png" "${BUILTDIR}/${MOD_ID}.ico"
|
||||||
cp "${SRC_DIR}/OpenRA.Game.exe.config" "${BUILTDIR}"
|
cp "${SRC_DIR}/OpenRA.Game.exe.config" "${BUILTDIR}"
|
||||||
|
|
||||||
# We need to set the loadFromRemoteSources flag for the launcher, but only for the "portable" zip package.
|
# We need to set the loadFromRemoteSources flag for the launcher, but only for the "portable" zip package.
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 28 KiB |
Loading…
Reference in New Issue
Block a user