From e33bc9143892bcf6f31b93ff039f570babc006ff Mon Sep 17 00:00:00 2001 From: DashCaddy Polish Loop Date: Sun, 13 Sep 2026 05:45:40 -0700 Subject: [PATCH] =?UTF-8?q?fix(publish):=20prune=20build=20artifacts=20(bu?= =?UTF-8?q?ild-output,=20out,=20dist=5Felectron,=20data,=20release)=20from?= =?UTF-8?q?=20release=20tarball=20=E2=80=94=20v1.16.0=20tarball=20was=2081?= =?UTF-8?q?7MB=20with=20gitignored=20Electron=20build-output;=20now=2021MB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/publish-release.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/publish-release.sh b/scripts/publish-release.sh index 496f5fb..9f096b5 100755 --- a/scripts/publish-release.sh +++ b/scripts/publish-release.sh @@ -42,8 +42,9 @@ cp -a "${ROOT_DIR}/ca" "$STAGE_DIR/ca" 2>/dev/null || true cp -a "${ROOT_DIR}/dashcaddy-installer" "$STAGE_DIR/dashcaddy-installer" 2>/dev/null || true cp -a "${ROOT_DIR}/README.md" "$STAGE_DIR/README.md" 2>/dev/null || true -find "$STAGE_DIR" \( -name node_modules -o -name .git -o -name coverage -o -name .nyc_output \) -prune -exec rm -rf {} + -find "$STAGE_DIR" -type f \( -name '*.test.js' -o -name '*.spec.js' \) -delete +find "$STAGE_DIR" \( -name node_modules -o -name .git -o -name coverage -o -name .nyc_output \ + -o -name build-output -o -name out -o -name dist_electron -o -name data -o -name release \) -prune -exec rm -rf {} + +find "$STAGE_DIR" -type f \( -name '*.test.js' -o -name '*.spec.js' -o -name '*.bak' -o -name '*.tar.gz' \) -delete log "Creating tarball..." tar -czf "${OUT_DIR}/${TARBALL_NAME}" -C "$TMP_DIR" dashcaddy