From 7c33b61bd89b8e527e51aebb209eb616e120fdc5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 24 Mar 2011 03:39:30 -0400 Subject: Roel Vanhout's build files for Visual Studio 2008 --- dist/win/installer/Calculator.png | Bin 0 -> 1194 bytes dist/win/installer/Calculator_16x16.ico | Bin 0 -> 1150 bytes dist/win/installer/build.bat | 28 ++++++++++++++ dist/win/installer/ledger.wxs | 63 ++++++++++++++++++++++++++++++++ 4 files changed, 91 insertions(+) create mode 100644 dist/win/installer/Calculator.png create mode 100644 dist/win/installer/Calculator_16x16.ico create mode 100644 dist/win/installer/build.bat create mode 100644 dist/win/installer/ledger.wxs (limited to 'dist/win/installer') diff --git a/dist/win/installer/Calculator.png b/dist/win/installer/Calculator.png new file mode 100644 index 00000000..cf9c87c7 Binary files /dev/null and b/dist/win/installer/Calculator.png differ diff --git a/dist/win/installer/Calculator_16x16.ico b/dist/win/installer/Calculator_16x16.ico new file mode 100644 index 00000000..59a6ba8a Binary files /dev/null and b/dist/win/installer/Calculator_16x16.ico differ diff --git a/dist/win/installer/build.bat b/dist/win/installer/build.bat new file mode 100644 index 00000000..1f3b69ff --- /dev/null +++ b/dist/win/installer/build.bat @@ -0,0 +1,28 @@ +@echo off + +rem Call the script that will read and parse version.m4, and store the version +rem number in the ledger_version_nr environment variable. +call ..\vc9\extract_version_numbers.bat +del config.h +rem Ledgers uses x.y.z-date format, but MSI needs x.y.z.b numbering. Can be +rem solved with simple string replace. +set ledger_version_nr=%ledger_version_nr:-=.% + +rmdir /S /Q content +mkdir content +rem Now, gather all the files we need in a directory +copy ..\vc9\Release\ledger.exe content +copy ..\..\..\doc\ledger.pdf content +copy ..\..\..\doc\LICENSE.rtf content +copy Calculator_16x16.ico content +copy ledger.wxs content + +cd content +rem Finally, call the WiX compiler & linker +"%WIX%\bin\candle.exe" ledger.wxs +"%WIX%\bin\light.exe" -ext WixUIExtension ledger.wixobj + +rem Hopefully everything went well, copy the result back +copy ledger.msi ..\ledger-%ledger_version_nr%.msi + +cd .. diff --git a/dist/win/installer/ledger.wxs b/dist/win/installer/ledger.wxs new file mode 100644 index 00000000..711c9477 --- /dev/null +++ b/dist/win/installer/ledger.wxs @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3