From 4bd14f50116a993b91a53b391701e69ed92279d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 26 Sep 2013 22:28:37 +0200 Subject: [PATCH] windows: installer --- Makefile | 18 +++ Makefile.builder | 1 + installer.wxs | 324 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 343 insertions(+) create mode 100644 installer.wxs diff --git a/Makefile b/Makefile index e335e5ad..2923febe 100644 --- a/Makefile +++ b/Makefile @@ -93,3 +93,21 @@ endif mkdir -p $(DESTDIR)$(STATEDIR) mkdir -p $(DESTDIR)$(LOGDIR) +msi: + rm -rf destinstdir + mkdir -p destinstdir + $(MAKE) install \ + DESTDIR=$(PWD)/destinstdir \ + PYTHON_SITEPATH=/site-packages \ + FILESDIR=/pfiles \ + BINDIR=/bin \ + DATADIR=/qubes \ + STATEDIR=/qubes/state \ + LOGDIR=/qubes/log + # icons placeholder + mkdir -p destinstdir/icons + for i in blue gray green yellow orange black purple red; do touch destinstdir/icons/$$i.png; done + candle -arch x64 -dversion=$(VERSION) installer.wxs + light -b destinstdir -o core-admin.msm installer.wixobj + rm -rf destinstdir + diff --git a/Makefile.builder b/Makefile.builder index 8523ab51..8068a772 100644 --- a/Makefile.builder +++ b/Makefile.builder @@ -2,4 +2,5 @@ ifeq ($(PACKAGE_SET),dom0) RPM_SPEC_FILES := $(addprefix rpm_spec/,core-dom0.spec core-dom0-doc.spec) WIN_SOURCE_SUBDIRS := . WIN_COMPILER := mingw +WIN_PACKAGE_CMD := make msi endif diff --git a/installer.wxs b/installer.wxs new file mode 100644 index 00000000..f351d3b1 --- /dev/null +++ b/installer.wxs @@ -0,0 +1,324 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +