Files
Dmitriy.Panov 937d76d215 IJI-932 .dmg build scripts archive created to be used on macOS build agent instead of macbuilder host
GitOrigin-RevId: a0291e4c96a3a9d5d411e4d5d2f8e34325ffdda2
2023-03-27 11:28:49 +00:00

15 lines
392 B
Bash
Executable File

#!/bin/bash
# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
set -euo pipefail
exploded=$1
staple=$2
if [ "$staple" = 'true' ]; then
# only unzipped application can be stapled
app="$exploded/$(ls "$exploded")"
echo "Stapling $app..."
xcrun stapler staple "$app"
else
echo "Stapling of $exploded is skipped"
fi