From 7202556f455cc6dc3c85fb3f4f3cbce9226af1c3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 6 Sep 2017 14:37:57 +0100 Subject: [PATCH] Don't delete dist dir after putting stuff in it --- scripts/electron-package.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/electron-package.sh b/scripts/electron-package.sh index 9c16510a..f0ba9414 100755 --- a/scripts/electron-package.sh +++ b/scripts/electron-package.sh @@ -94,6 +94,7 @@ distdir="$builddir/electron_app/dist" pubdir="$projdir/electron_app/pub" rm -r "$pubdir" || true mkdir -p "$pubdir" +rm -r "$projdir/electron_app/dist" || true mkdir -p "$projdir/electron_app/dist/unsigned/" # Install packages: what the user downloads the first time, @@ -122,8 +123,6 @@ cp $distdir/win/*.nupkg "$pubdir/update/win32/x64/" cp $distdir/win/RELEASES "$pubdir/update/win32/x64/" # Move the debs to the main project dir's dist folder -rm -r "$projdir/electron_app/dist" || true -mkdir -p "$projdir/electron_app/dist" cp $distdir/*.deb "$projdir/electron_app/dist/" rm -rf "$builddir"