diff --git a/build-scripts/package-msi b/build-scripts/package-msi index e11d1f261..f256cda0e 100755 --- a/build-scripts/package-msi +++ b/build-scripts/package-msi @@ -1,37 +1,46 @@ -#!/bin/sh -x +#!/bin/sh +# +# package-msi: Build Windows MSI installer package for CFEngine using WiX Toolset +# This script creates a Windows installer (.msi) file for CFEngine Nova +# It handles both x86 (32-bit) and x64 (64-bit) architectures +# Source common build functions and environment configuration . "$(dirname "$0")"/functions . detect-environment . compile-options . version +# Path where WiX toolset binaries will be installed WIXPATH="$HOME/wix" -# First see if wix tools are installed, if not, do so +# Check if WiX tools are installed, install them if not present +log_debug "Checking for WiX tools at $WIXPATH" if [ -f "$WIXPATH/candle.exe" ] && [ -f "$WIXPATH/light.exe" ]; then - echo "Wix Tools are installed at $WIXPATH" + log_debug "WiX tools found - candle.exe and light.exe are present" else + log_debug "WiX tools not found - starting installation" ( - # Fetch some prerequisites + # Download prerequisites from build artifacts cache server cd /tmp || exit echo ' get /export/images/windows/wix310-binaries.zip get /export/images/windows/wine-folder.tar.xz ' | sftp -b - jenkins_sftp_cache@build-artifacts-cache.cloud.cfengine.com - # check checksums + # Verify downloaded files sha256sum -c - <