From f09a4ae224fab7ee4d412fe6c81d14e3b753b2c5 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 15 Jan 2019 17:09:38 -0500 Subject: msi: add program files shortcut, desktop shortcut, and icon --- assets/gen.sh | 5 +++++ assets/sok.ico | Bin 0 -> 22382 bytes meson.build | 1 + src/msi/sok.wxs | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++----- 4 files changed, 68 insertions(+), 5 deletions(-) create mode 100644 assets/sok.ico diff --git a/assets/gen.sh b/assets/gen.sh index fa966f4..76ab27f 100755 --- a/assets/gen.sh +++ b/assets/gen.sh @@ -1,3 +1,8 @@ #!/bin/bash ../build/sprite-packer ./sprites.bmp src/*png convert ./sprites.{bmp,png} +# convert -antialias -scale 32x32 src/03-barbarian.png sok.ico +# convert src/03-barbarian.png -background white -alpha off \ +# -define icon:auto-resize="32,16" \ +# sok.ico +convert src/00-none.png src/03-barbarian.png -flatten -antialias -depth 8 -define icon:auto-resize=64,32,16 sok.ico diff --git a/assets/sok.ico b/assets/sok.ico new file mode 100644 index 0000000..af03d1e Binary files /dev/null and b/assets/sok.ico differ diff --git a/meson.build b/meson.build index 0f515f2..f3f4600 100644 --- a/meson.build +++ b/meson.build @@ -54,6 +54,7 @@ custom_target('msi', wixl, '-o', '@OUTPUT@', '-D', 'BUILD_DIR=.', + '-D', 'ASSETS_DIR=../assets', '-D', 'SDL_LIB_DIR=' + MSI_SDL_LIB_DIR, '@INPUT@', ] diff --git a/src/msi/sok.wxs b/src/msi/sok.wxs index 2a15cfa..be830d0 100644 --- a/src/msi/sok.wxs +++ b/src/msi/sok.wxs @@ -1,5 +1,5 @@ - @@ -33,7 +43,7 @@ GUIDs (wget -qO- https://www.uuidgenerator.net/api/guid/10): Id='*' Keywords='Installer' Description="Pablotron Sokoban installer." - Comments='Pablotron sokoban.' + Comments='Pablotron sokoban installer.' Manufacturer='Pablotron' InstallerVersion='100' Languages='1033' @@ -48,16 +58,42 @@ GUIDs (wget -qO- https://www.uuidgenerator.net/api/guid/10): DiskPrompt="CD-ROM #1" /> + + + + + + + + + + + + + + + - - + + > + + + + +