go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/scripts/windows-upx.sh (about)

     1  #!/bin/bash
     2  # Copyright (c) Mondoo, Inc.
     3  # SPDX-License-Identifier: BUSL-1.1
     4  
     5  
     6  set -e
     7  
     8  EXE="$1"
     9  
    10  if [ "$TARGET" == "windows_amd64_v1" ]; then
    11    echo "Compressing binary with upx"
    12    upx "$EXE"
    13  fi