"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1280.1/release-scripts/docker-desktop-release.sh" (20 Feb 2024, 860 Bytes) of package /linux/misc/snyk-cli-1.1280.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/env bash
    2 set -euo pipefail
    3 
    4 # Take built CLI
    5 mkdir ./dist-docker/
    6 mkdir ./dist-docker/docker/
    7 cp -r ./dist ./dist-docker/docker/
    8 cp ./package.json ./dist-docker/docker/
    9 cp ./config.default.json ./dist-docker/docker/
   10 mkdir ./dist-docker/docker/help/
   11 cp -r ./help/cli-commands ./dist-docker/docker/help/cli-commands
   12 cp -r ./pysrc ./dist-docker/docker/pysrc
   13 
   14 # Snyk CLI entry script
   15 cp ./release-scripts/snyk-mac.sh ./dist-docker/docker/
   16 
   17 cd ./dist-docker/docker/
   18 
   19 # Download macOS NodeJS binary, using same as pkg
   20 curl "https://nodejs.org/dist/v12.22.11/node-v12.22.11-darwin-x64.tar.gz" | tar -xz
   21 
   22 cd ..
   23 
   24 # Create bundle, resolve symlinks
   25 tar czfh docker-mac-signed-bundle.tar.gz ./docker
   26 # final package must be at root, otherwise it gets included in /dist folder
   27 mv ./docker-mac-signed-bundle.tar.gz ../binary-releases/
   28 cd ..
   29 
   30 rm -rf ./dist-docker