github.com/observiq/bindplane-agent@v1.51.0/windows/scripts/fetch-dependencies.sh (about)

     1  #!/bin/sh
     2  # Copyright  observIQ, Inc.
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #      http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  
    16  set -e
    17  BASEDIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
    18  PROJECT_BASE="$BASEDIR/../.."
    19  
    20  [ -f go-msi.exe ] || curl -f -L -o go-msi.exe https://github.com/observIQ/go-msi/releases/download/v2.2.0/go-msi.exe
    21  [ -f ./cinc-auditor.msi ] || curl -f -L -o cinc-auditor.msi http://downloads.cinc.sh/files/stable/cinc-auditor/4.17.7/windows/2012r2/cinc-auditor-4.17.7-1-x64.msi
    22  
    23  [ -f ./wix-binaries.zip ] || curl -f -L -o wix-binaries.zip https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip
    24  
    25  mkdir -p wix
    26  [ -d wix/sdk ] || unzip -o wix-binaries.zip -d wix
    27  
    28  make -C "$PROJECT_BASE" release-prep
    29  
    30  cp -r "$PROJECT_BASE/release_deps/plugins" "$BASEDIR/.."
    31  cp "$PROJECT_BASE/release_deps/opentelemetry-java-contrib-jmx-metrics.jar" "$BASEDIR/.."
    32  cp "$PROJECT_BASE/release_deps/config.yaml" "$BASEDIR/.."
    33  cp "$PROJECT_BASE/release_deps/VERSION.txt" "$BASEDIR/.."
    34  cp "$PROJECT_BASE/release_deps/logging.yaml" "$BASEDIR/.."
    35  
    36  cp "$PROJECT_BASE/LICENSE" "$BASEDIR/.."