Skip to content

Commit

Permalink
[jenkins][post build] notarize and sign scripts - exit early if not r…
Browse files Browse the repository at this point in the history
…elease branch

Signed-off-by: Marc Dumais <[email protected]>
  • Loading branch information
marcdumais-work committed Jul 7, 2023
1 parent 8d42cc5 commit 4b21d54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions applications/electron/scripts/notarize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ NEEDS_UNZIP=false
UUID_REGEX='"uuid"\s*:\s*"([^"]+)'
STATUS_REGEX='"status"\s*:\s*"([^"]+)'

if [ ! ${BRANCH_NAME} == master ]; then
echo "Not on master branch - exiting"
exit(0)
fi

# if folder, zip it
if [ -d "${INPUT}" ]; then
NEEDS_UNZIP=true
Expand Down
5 changes: 5 additions & 0 deletions applications/electron/scripts/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ INPUT=$1
ENTITLEMENTS=$2
NEEDS_UNZIP=false

if [ ! ${BRANCH_NAME} == master ]; then
echo "Not on master branch - exiting"
exit(0)
fi

# if folder, zip it
if [ -d "${INPUT}" ]; then
NEEDS_UNZIP=true
Expand Down

0 comments on commit 4b21d54

Please sign in to comment.