[vlc-commits] Mitigate lack of long (>260 chars) paths in WiX
Rafaël Carré
git at videolan.org
Mon Apr 8 16:44:11 CEST 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Apr 8 16:43:02 2013 +0200| [6d39eb51e647012075f1e805233e941bb84de4fd] | committer: Rafaël Carré
Mitigate lack of long (>260 chars) paths in WiX
Symlink actual vlc dir to C:\v before processing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6d39eb51e647012075f1e805233e941bb84de4fd
---
extras/package/win32/msi.mak | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/extras/package/win32/msi.mak b/extras/package/win32/msi.mak
index efb4a4e..0d47c06 100644
--- a/extras/package/win32/msi.mak
+++ b/extras/package/win32/msi.mak
@@ -7,12 +7,13 @@ WIXPATH=`winepath -u 'C:\\Program Files (x86)\\Windows Installer XML v3.5\\bin'`
HEAT=wine "$(WIXPATH)/heat.exe"
CANDLE=wine "$(WIXPATH)/candle.exe"
LIGHT=wine "$(WIXPATH)/light.exe"
-VLCDIR=`winepath -w '$(win32_destdir)'`
+VLCDIR=`winepath -s \`winepath -w '$(win32_destdir)'\``
MSIDIR=$(abs_srcdir)/extras/package/win32/msi
W_MSIDIR=`winepath -w '$(MSIDIR)'`
MSIBUILDDIR=$(abs_top_builddir)/extras/package/win32/msi
W_MSIBUILDDIR=`winepath -w '$(MSIBUILDDIR)'`
MSIOUTFILE=vlc-$(VERSION).msi
+WINE_C=`winepath c:`
package-msi: heat candle light
@@ -26,7 +27,9 @@ candle:
$(am__cd) $(MSIBUILDDIR) && $(CANDLE) -ext WiXUtilExtension $(W_MSIDIR)\\product.wxs $(W_MSIDIR)\\axvlc.wxs $(W_MSIDIR)\\extensions.wxs $(W_MSIBUILDDIR)\\*.fragment.wxs
light:
- $(LIGHT) -sval -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -b $(W_MSIDIR) -b $(VLCDIR)/plugins -b $(VLCDIR)/locale -b $(VLCDIR)/lua -b $(VLCDIR)/skins $(W_MSIBUILDDIR)\\product.wixobj $(W_MSIBUILDDIR)\\axvlc.wixobj $(W_MSIBUILDDIR)\\extensions.wixobj $(W_MSIBUILDDIR)\\*.fragment.wixobj -o $(MSIOUTFILE)
+ test ! -d "$(WINE_C)/v" -o ! -f "$(WINE_C)/v"
+ ln -sf "$(win32_destdir)" "$(WINE_C)"/v
+ $(LIGHT) -sval -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -b $(W_MSIDIR) -b C:/v/plugins -b C:/v/locale -b C:/v/lua -b C:/v/skins $(W_MSIBUILDDIR)\\product.wixobj $(W_MSIBUILDDIR)\\axvlc.wixobj $(W_MSIBUILDDIR)\\extensions.wixobj $(W_MSIBUILDDIR)\\*.fragment.wixobj -o $(MSIOUTFILE)
chmod 644 $(MSIOUTFILE)
cleanmsi:
More information about the vlc-commits
mailing list