2021-03-11 13:44:02 +03:00
|
|
|
#!/usr/bin/env bash
|
2024-01-15 22:27:42 +03:00
|
|
|
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2021-03-11 13:44:02 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -eou pipefail
|
|
|
|
|
2024-03-22 04:27:46 +03:00
|
|
|
DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
|
|
cd $DIR/../sdk
|
|
|
|
|
2021-03-11 13:44:02 +03:00
|
|
|
RELEASE_TAG=$1
|
|
|
|
OUTPUT_DIR=$2
|
2022-01-25 18:29:57 +03:00
|
|
|
SPLIT_RELEASE=${3:-false}
|
2021-03-11 13:44:02 +03:00
|
|
|
|
|
|
|
mkdir -p $OUTPUT_DIR/github
|
2021-03-11 21:16:19 +03:00
|
|
|
mkdir -p $OUTPUT_DIR/artifactory
|
2022-01-11 14:55:14 +03:00
|
|
|
mkdir -p $OUTPUT_DIR/split-release
|
2021-05-25 17:23:17 +03:00
|
|
|
|
2021-03-11 13:44:02 +03:00
|
|
|
TARBALL=daml-sdk-$RELEASE_TAG-windows.tar.gz
|
2021-03-11 16:49:48 +03:00
|
|
|
EE_TARBALL=daml-sdk-$RELEASE_TAG-windows-ee.tar.gz
|
|
|
|
cp bazel-bin/release/sdk-release-tarball-ce.tar.gz "$OUTPUT_DIR/github/$TARBALL"
|
2022-01-11 14:55:14 +03:00
|
|
|
# Used for the non-split release process.
|
2021-03-11 16:49:48 +03:00
|
|
|
cp bazel-bin/release/sdk-release-tarball-ee.tar.gz "$OUTPUT_DIR/artifactory/$EE_TARBALL"
|
2022-01-11 14:55:14 +03:00
|
|
|
# Used for the split release process.
|
|
|
|
cp bazel-bin/release/sdk-release-tarball-ee.tar.gz "$OUTPUT_DIR/split-release/$EE_TARBALL"
|