Skip to content

Commit

Permalink
Security fix for release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JCKodel committed Dec 7, 2022
1 parent 1db199c commit 2efb797
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

export APPLE_ID=""
export APPLE_ID_PASSWORD=""
if [[ -z $APPLE_ID]]
then
export APPLE_ID=""
export APPLE_ID_PASSWORD=""
export APPLE_ID_SET="TRUE"
fi

yarn clean
rm -rf ./node_modules ./dist
Expand All @@ -15,5 +19,10 @@ then
codesign -s - --deep --force ./dist/mac-universal/Razer\ macOS.app
fi

unset APPLE_ID
unset APPLE_ID_PASSWORD
if [[ -z $APPLE_ID_SET]]
then;
else
unset APPLE_ID
unset APPLE_ID_PASSWORD
unset APPLE_ID_SET
fi

0 comments on commit 2efb797

Please sign in to comment.