Permalink
Browse files

Add credentials warning

  • Loading branch information...
mymindstorm committed Sep 17, 2018
1 parent ed40596 commit 493b53f7b7ef3fab494008920beb898050716c6e
Showing with 10 additions and 2 deletions.
  1. +1 −2 .gitignore
  2. +7 −0 scripts/build.sh
  3. +2 −0 src/models/credentials.ts
View
@@ -6,5 +6,4 @@ edge
.vscode
.atom-build.yml
scripts/authenticator-build-key.enc
cert.pfx
src/models/credentials.ts
cert.pfx
View
@@ -7,6 +7,8 @@
# 'chrome', 'firefox', and 'edge'
PLATFORM=$1
FILE=$(cat ./src/models/credentials.ts | tr -d '\n')
REGEX="^.*'.+'.*'.+'.*'.+'.*$"
set -e
if [[ $PLATFORM != "chrome" ]] && [[ $PLATFORM != "firefox" ]] && [[ $PLATFORM != "edge" ]]; then
@@ -24,6 +26,11 @@ else
echo "Fixing code style..."
gts fix
fi
if ! [[ $FILE =~ $REGEX ]] ; then
echo -e "\e[7m\033[33mWarning: Missing info in credentials.ts\033[0m"
fi
echo "Compiling..."
npm run compile
mkdir $PLATFORM
@@ -1,5 +1,7 @@
// IMPORTANT: Fill this out before uploading to Chrome Web Store / AMO /
// Microsoft Store
//
// git update-index --assume-unchanged src/models/credentials.ts
function getCredentials() {
return {

0 comments on commit 493b53f

Please sign in to comment.