Skip to content

Commit

Permalink
Complete check
Browse files Browse the repository at this point in the history
  • Loading branch information
thegecko committed Sep 9, 2020
1 parent 73287cd commit d7270ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"devDependencies": {
"@theia/cli": "^1.5.0",
"electron-builder": "20.44.4"
"electron-builder": "^22.8.0"
},
"scripts": {
"prepare": "yarn build",
Expand All @@ -82,7 +82,7 @@
"start": "theia start --plugins=local-dir:../../plugins",
"start:debug": "yarn start --log-level=debug",
"test": "electron-mocha --timeout 60000 \"./lib/test/**/*.espec.js\"",
"package": "ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true electron-builder -c.mac.identity=null --publish never",
"package": "electron-builder -c.mac.identity=null --publish never",
"package:preview": "electron-builder --dir"
}
}
17 changes: 9 additions & 8 deletions scripts/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ ssh -q [email protected] curl -o signed.zip -F file=@unsi
# copy signed app back from server
scp [email protected]:./signed.zip ./signed.zip

cat_var=$(cat signed.zip)
echo "cat: $cat_var"

du_var=$(du -h signed.zip)
echo "du: $du_var"

stat_var=$(stat signed.zip)
echo "stat: $stat_var"
# check for size
actualSize=$(stat -f%z signed.zip)

# file is too small, it's likely an error so show it
if [ $actualSize -lt 40000000 ]; then
echo "signed.zip is just $actualSize bytes large!"
echo ""
cat signed.zip
fi

# unzip app
unzip -qq signed.zip
Expand Down

0 comments on commit d7270ce

Please sign in to comment.