Skip to content

Commit

Permalink
Catch yarn install fail and print logs in /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
JGCarroll committed Mar 6, 2024
1 parent 4bc92d4 commit 8361004
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ parts:
fi
ln -s /usr/bin/python2 /usr/bin/python
unset PYTHONPATH
yarn install
if (yarn install)
then
echo "woohoo"
else
echo ~~Forcing dump of raw logs in /tmp ~~
find /tmp -t f -name '*.log' | xargs cat
echo ~~Ending dump of raw logs in /tmp~~
exit 1
fi
cd ${CRAFT_PART_BUILD}/packages/app-desktop
yarn run dist
mkdir ${CRAFT_PART_INSTALL}/opt -p
Expand Down

0 comments on commit 8361004

Please sign in to comment.