[vlc-commits] win32 build: provide an option for installer creation

Jean-Baptiste Kempf git at videolan.org
Mon Nov 13 16:27:29 CET 2017


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Nov 13 16:24:56 2017 +0100| [544b09e6499aac42edc64754ca5029dd77cbdd05] | committer: Jean-Baptiste Kempf

win32 build: provide an option for installer creation

* nothing will be for dev and continuous
* -i n to prepare a nightly build, aka debug+release package
* -i r to prepare a release build, which will be officially signed

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=544b09e6499aac42edc64754ca5029dd77cbdd05
---

 extras/package/win32/build.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh
index 3498e75d77..bcf9b4475d 100755
--- a/extras/package/win32/build.sh
+++ b/extras/package/win32/build.sh
@@ -24,6 +24,7 @@ OPTIONS:
    -p            Use a Prebuilt contrib package (speeds up compilation)
    -c            Create a Prebuilt contrib package (rarely used)
    -l            Enable translations (can be slow)
+   -i <n|r>      Create an Installer (n: nightly, r: release)
 EOF
 }
 
@@ -37,6 +38,7 @@ do
          ;;
          r)
              RELEASE="yes"
+             INSTALLER="r"
          ;;
          a)
              ARCH=$OPTARG
@@ -50,6 +52,9 @@ do
          l)
              I18N="yes"
          ;;
+         i)
+             INSTALLER=$OPTARG
+         ;;
      esac
 done
 shift $(($OPTIND - 1))
@@ -125,8 +130,8 @@ fi
 info "Compiling"
 make -j$JOBS
 
-if [ "$RELEASE" != "yes" ]; then
-make package-win32-debug
-else
+if [ "$INSTALLER" == "n" ]; then
+make package-win32-debug package-win32
+elif [ "$INSTALLER" == "r" ]; then
 make package-win32
 fi



More information about the vlc-commits mailing list