From e39470c3cc2dd150ae715c886cd4cf76920a72d7 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Thu, 7 Dec 2017 20:38:10 -0500 Subject: [PATCH] Copy dmg file into dist/mac for TeamCity TeamCity expects the dmg to be in dist/mac, but in the new electron-builder it's put directly in dist/ (in the long run the right way to solve this is to update the TeamCity config). --- build/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/build.sh b/build/build.sh index 2273eff00..1ace2ad48 100755 --- a/build/build.sh +++ b/build/build.sh @@ -79,6 +79,12 @@ if [ "$FULL_BUILD" == "true" ]; then yarn build + # Workaround: TeamCity expects the dmg to be in dist/mac, but in the new electron-builder + # it's put directly in dist/ (the right way to solve this is to update the TeamCity config) + if $OSX; then + cp dist/*.dmg dist/mac + fi + # electron-build has a publish feature, but I had a hard time getting # it to reliably work and it also seemed difficult to configure. Not proud of # this, but it seemed better to write my own.