diff --git a/icons/make-msw-ico.sh b/icons/make-msw-ico.sh index 7445b06..9c1a2f5 100755 --- a/icons/make-msw-ico.sh +++ b/icons/make-msw-ico.sh @@ -5,3 +5,7 @@ SIZES=`cat sizes` PNGS=`for A in $SIZES; do echo $[A]x$[A]/tg-timer.png; done` icotool -c -o tg-timer.ico $PNGS + +PNGS=`for A in $SIZES; do echo $[A]x$[A]/tg-document.png; done` + +icotool -c -o tg-document.ico $PNGS diff --git a/icons/tg-document.ico b/icons/tg-document.ico new file mode 100644 index 0000000..92775d8 Binary files /dev/null and b/icons/tg-document.ico differ diff --git a/icons/tg-timer.ico b/icons/tg-timer.ico index 903875b..6a13c7f 100644 Binary files a/icons/tg-timer.ico and b/icons/tg-timer.ico differ diff --git a/packaging/make_msi.sh b/packaging/make_msi.sh index 401b327..600ad67 100755 --- a/packaging/make_msi.sh +++ b/packaging/make_msi.sh @@ -12,6 +12,7 @@ ABSDIR=`cd "$DIR"; pwd` RESOURCES=`cd "$1"; pwd` TARGET="$ABSDIR/../build/msi" +TMP="$ABSDIR/../build/tmp" cd "$ABSDIR"/.. @@ -20,14 +21,17 @@ VERSION=`cat version` make rm -rf "$TARGET" +rm -rf "$TMP" mkdir -p "$TARGET" cp "$ABSDIR/tg-timer.wxs" "$TARGET" cp "$ABSDIR/LICENSE.rtf" "$TARGET" cp "$ABSDIR/../README.md" "$TARGET" cp "$ABSDIR/../LICENSE" "$TARGET" cp "$ABSDIR/../build/tg.exe" "$TARGET" -cp -r "$RESOURCES"/* "$TARGET" -heat dir "$RESOURCES" -srd -gg -sreg -dr INSTALLDIR -cg Resources -out "$TARGET/Resources.wxs" +cp -r "$RESOURCES" "$TMP" +cp "$ABSDIR/../icons/tg-document.ico" "$TMP" +heat dir "$TMP" -srd -gg -sreg -dr INSTALLDIR -cg Resources -out "$TARGET/Resources.wxs" +mv "$TMP"/* "$TARGET" cd "$TARGET" diff --git a/packaging/tg-timer.wxs b/packaging/tg-timer.wxs index 6a764d9..23f0e30 100644 --- a/packaging/tg-timer.wxs +++ b/packaging/tg-timer.wxs @@ -1,6 +1,6 @@ - - + + + + + + - + - + @@ -37,7 +42,7 @@ - + diff --git a/packaging/tg-timer.wxs.template b/packaging/tg-timer.wxs.template index 6ba0f51..ab3580e 100644 --- a/packaging/tg-timer.wxs.template +++ b/packaging/tg-timer.wxs.template @@ -22,6 +22,11 @@ + + + + +