[virt-tools-list] [PATCH virt-viewer 3/6] nsis: add deps.txt file in installer
Christophe Fergeau
cfergeau at redhat.com
Mon Oct 22 08:02:42 UTC 2012
ACK
Christophe
On Sat, Oct 20, 2012 at 12:57:28AM +0200, Marc-André Lureau wrote:
> This helps track package version that were used during the
> build of Windows installer. It's not ideal, but make up the
> lack of package management on windows
> ---
> Makefile.am | 6 ++++++
> data/Makefile.am | 13 +++++++++++++
> data/virt-viewer.nsis.in | 5 +++++
> 3 files changed, 24 insertions(+)
>
> diff --git a/Makefile.am b/Makefile.am
> index f307c06..2407b1b 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -57,4 +57,10 @@ gen-ChangeLog:
> mv $(distdir)/cl-t $(distdir)/ChangeLog; \
> fi
>
> +if OS_WIN32
> +.PHONY: nsis
> +nsis:
> + make -C $(builddir)/data virt-viewer-$(VERSION).exe
> +endif
> +
> -include $(top_srcdir)/git.mk
> diff --git a/data/Makefile.am b/data/Makefile.am
> index ea2bb0a..38ffdb2 100644
> --- a/data/Makefile.am
> +++ b/data/Makefile.am
> @@ -5,4 +5,17 @@ EXTRA_DIST = \
> virt-viewer.nsis.in \
> $(NULL)
>
> +if OS_WIN32
> +deps.txt:
> + $(AM_V_GEN)rpm -qa | grep $(host_os) | sort | unix2dos > $@
> +
> +virt-viewer-$(VERSION).exe: virt-viewer.nsis deps.txt
> + $(AM_V_GEN)DESTDIR=`mktemp -d` && \
> + make -C $(top_builddir) install DESTDIR=$$DESTDIR >/dev/null && \
> + makensis -NOCD -DDESTDIR=$$DESTDIR $< >/dev/null && \
> + rm -rf $$DESTDIR
> +
> +CLEANFILES = deps.txt virt-viewer-$(VERSION).exe
> +endif
> +
> -include $(top_srcdir)/git.mk
> diff --git a/data/virt-viewer.nsis.in b/data/virt-viewer.nsis.in
> index 53dd9c4..45af104 100644
> --- a/data/virt-viewer.nsis.in
> +++ b/data/virt-viewer.nsis.in
> @@ -49,6 +49,9 @@ Section "VirtViewer"
> SectionIn RO
> WriteRegStr HKCU "Software\virt-viewer" "" $INSTDIR
>
> + SetOutPath "$INSTDIR"
> + File "deps.txt"
> +
> SetOutPath "$INSTDIR\bin"
> File "@prefix@/bin/gst-discoverer-0.10.exe"
> File "@prefix@/bin/gst-feedback.exe"
> @@ -321,6 +324,8 @@ Section "Uninstall"
> Delete /rebootok "$INSTDIR\bin\libatk-1.0-0.dll"
> RMDir "$INSTDIR\bin"
> RMDir "$INSTDIR\lib"
> +
> + Delete /rebootok "$INSTDIR\deps.txt"
> RMDir "$INSTDIR"
> SectionEnd
>
> --
> 1.7.11.7
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20121022/8c7fdbb4/attachment.sig>
More information about the virt-tools-list
mailing list