Skip to content

A free, open-source alternative to Burp Suite: an intercepting proxy and web app security testing suite with Repeater, Intruder, Collaborator and a built-in OWASP ZAP scanner. Linux, AGPL-3.0.

Release steps: all three files are built on GitHub

scottsturrocka2ef0b9ce858
diff --git a/MAINTAINING.md b/MAINTAINING.md
index 5a39eb1..96ab14e 100644
--- a/MAINTAINING.md
+++ b/MAINTAINING.md
@@ -47,13 +47,12 @@ java -cp build opensuite.ui.Unbuilt ROADMAP.md
Commit the regenerated file with the change, so the repository and the interface
never disagree about what is open.
-## Release (the AppImage, with the macOS disk image and the Windows zip beside it)
+## Release (the AppImage, the macOS disk image and the Windows zip)
-```
-./package-appimage.sh # builds the release jar, then the AppImage -> dist/opensuite-x86_64.appimage
-```
+All three files are built on GitHub from the pushed commit, so nothing large is
+uploaded from the maintainer's machine.
-Before building, check that nothing bundled is out of date:
+Before releasing, check that nothing bundled is out of date:
```
tools/check-updates.sh # engine and add-ons, Java runtime, vendored jars, browser pins
@@ -69,31 +68,34 @@ that often: pick the first snapshot at or after the stable release's branch
position for each platform, record the archives' sha256 in `tools/versions`
and in `BrowserInstaller.java`, and run the smoke tests.
-Test the AppImage by hand, then publish:
+Test a local build by hand (`./package-appimage.sh` makes
+`dist/opensuite-x86_64.appimage`), commit and push, then:
```
-./publish.sh <timestamp> <notes.md>
+./publish.sh <notes.md> # drafts the release and starts the three builds
+./publish.sh --publish <timestamp> # makes the draft public once all three files are attached
```
-- `<timestamp>` is the build **embedded in the AppImage**. `package-appimage.sh`
- calls `release.sh`, which stamps a fresh `opensuite_<timestamp>.jar`, so the
- timestamp to publish is the jar inside the AppImage, not an earlier one left in
- `dist/`. Find it with:
- `./dist/opensuite-x86_64.appimage --appimage-extract 'usr/lib/app/*'` then
- `ls squashfs-root/usr/lib/app/`.
-- `publish.sh` creates the GitHub release, uploads the AppImage under the fixed
- name `opensuite-x86_64.appimage`, marks it latest, and verifies that the
- permanent link
- `https://github.com/scottsturrock/open-suite/releases/latest/download/opensuite-x86_64.appimage`
- resolves to the new tag.
+- The first command names the release by the time (`20261019-085441`), makes it
+ as a draft, and runs the **Linux app**, **macOS app** and **Windows app**
+ workflows with that name. Each fetches the pinned JDK, engine and browser,
+ packages its file with the release's name as the version the app shows, runs
+ its end-to-end test (`tools/smoke-test-linux.sh`, `-macos.sh`, `-windows.ps1`:
+ proxy over HTTP and HTTPS, a REST-started scan that must find a reflected XSS
+ through the browser crawl, and no engine or browser left running once the app
+ is killed) and attaches the file to the draft. A build that fails its test
+ attaches nothing; look at the failure and run that workflow again.
+- Each build prints its file's sha256 in its summary: put the three in the notes.
+- The second command refuses while a file is missing, makes the release public
+ and latest, and verifies that the permanent links
+ `https://github.com/scottsturrock/open-suite/releases/latest/download/<file>`
+ resolve to the new tag.
### The macOS app
-A release also carries the Mac disk image, `opensuite-macos-arm64.dmg`, attached
-by hand with `gh release upload <tag> opensuite-macos-arm64.dmg`, so
-`https://github.com/scottsturrock/open-suite/releases/latest/download/opensuite-macos-arm64.dmg`
-serves the newest one. Build it locally (below) or
-run the **macOS app** workflow (`.github/workflows/macos-app.yml`) by hand on
+A release carries the Mac disk image, `opensuite-macos-arm64.dmg`, built and
+attached by the release steps above. To build one outside a release, build it
+locally (below) or run the **macOS app** workflow (`.github/workflows/macos-app.yml`) by hand on
GitHub: on an Apple Silicon runner it fetches the pinned JDK, engine and
browser, runs `./package-macos.sh`, runs `tools/smoke-test-macos.sh` against the
app (proxy over HTTP and HTTPS, a REST-started scan that must find a reflected
@@ -121,15 +123,8 @@ platform; bump it with the nearest `Mac_Arm` build to the Linux revision.
### The Windows app
-The Windows zip is attached to a release by hand, under the fixed name
-`opensuite-windows-x64.zip`, so its permanent link also serves the newest
-release:
-
-```
-gh release upload <timestamp> opensuite-windows-x64.zip --repo scottsturrock/open-suite
-```
-
-Build it in Git Bash on 64-bit Windows, or run the **Windows app** workflow
+The Windows zip, `opensuite-windows-x64.zip`, is built and attached by the
+release steps above. To build one outside a release, build it in Git Bash on 64-bit Windows, or run the **Windows app** workflow
(`.github/workflows/windows-app.yml`) by hand on GitHub: it fetches the pinned
JDK, engine and browser, runs `./package-windows.sh`, runs
`tools/smoke-test-windows.ps1` against the app (proxy over HTTP and HTTPS, a
diff --git a/publish.sh b/publish.sh
index 1bc14ed..bd888a1 100755
--- a/publish.sh
+++ b/publish.sh
@@ -1,62 +1,60 @@
#!/usr/bin/env bash
-# Publish a release to GitHub from the artefacts in dist/.
+# Publish a release, built on GitHub.
#
-# Run this only after the AppImage in dist/ has been tested by hand.
+# Nothing large is uploaded from this machine. The script makes a draft
+# release, and GitHub builds the Linux AppImage, the macOS disk image and the
+# Windows zip from the pushed commit, tests each end to end and attaches it to
+# the draft (the Linux app, macOS app and Windows app workflows). The draft
+# becomes public only with the second command, once all three files are there.
#
-# This publishes the AppImage, which carries the Java runtime and the scan
-# engine. The macOS disk image and the Windows zip are attached to the release
-# by hand afterwards (see MAINTAINING.md). Nothing is ever shipped with parts missing, so the jar
-# is not published. The asset keeps a fixed name, so the permanent link
+# The assets keep fixed names, so the permanent links
# https://github.com/scottsturrock/open-suite/releases/latest/download/opensuite-x86_64.appimage
-# always serves the newest release. The version is the release tag, and the
-# app shows it in its title bar and about box.
+# .../opensuite-macos-arm64.dmg .../opensuite-windows-x64.zip
+# always serve the newest release. The version is the release tag, and the app
+# shows it in its title bar and about box.
#
-# Usage: ./publish.sh <timestamp> <notes-file>
-# timestamp the build to publish, e.g. 20261019-085441 (dist/opensuite_<timestamp>.jar)
-# notes-file markdown release notes
+# Usage:
+# ./publish.sh <notes-file> draft the release and start the three builds
+# ./publish.sh --publish <timestamp> make the draft public, once the builds are attached
set -e
DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$DIR"
-
-TS="${1:?usage: ./publish.sh <timestamp> <notes-file>}"
-NOTES="${2:?usage: ./publish.sh <timestamp> <notes-file>}"
REPO="scottsturrock/open-suite"
-JAR="dist/opensuite_${TS}.jar"
-APP="dist/opensuite-x86_64.appimage"
-
-[ -f "$JAR" ] || { echo "missing $JAR"; exit 1; }
-[ -f "$APP" ] || { echo "missing $APP"; exit 1; }
-[ -f "$NOTES" ] || { echo "missing notes file $NOTES"; exit 1; }
+ASSETS="opensuite-x86_64.appimage opensuite-macos-arm64.dmg opensuite-windows-x64.zip"
-# The AppImage must have been built from this jar.
-STAGE="$(mktemp -d)"
-( cd "$STAGE" && "$DIR/$APP" --appimage-extract >/dev/null 2>&1 )
-if [ ! -f "$STAGE/squashfs-root/usr/lib/app/opensuite_${TS}.jar" ]; then
- echo "the AppImage does not contain opensuite_${TS}.jar; rebuild it with ./package-appimage.sh"
- rm -rf "$STAGE"; exit 1
+if [ "${1:-}" = "--publish" ]; then
+ TS="${2:?usage: ./publish.sh --publish <timestamp>}"
+ have="$(gh release view "$TS" --repo "$REPO" --json assets --jq '.assets[].name')"
+ for name in $ASSETS; do
+ echo "$have" | grep -qx "$name" || { echo "the draft has no $name yet: a build is still running, or failed its test"; exit 1; }
+ done
+ gh release edit "$TS" --repo "$REPO" --draft=false --latest >/dev/null
+ echo ">> verifying"
+ for name in $ASSETS; do
+ target="$(curl -sI "https://github.com/$REPO/releases/latest/download/$name" \
+ | grep -i '^location' | grep -o 'releases/download/[^/]*' || true)"
+ if [ "$target" = "releases/download/$TS" ]; then echo " ok $name (latest link -> $TS)"
+ else echo " FAIL $name latest->$target"; exit 1; fi
+ done
+ echo "Published https://github.com/$REPO/releases/tag/$TS"
+ exit 0
fi
-rm -rf "$STAGE/squashfs-root"
-# Fixed asset name.
-cp "$APP" "$STAGE/opensuite-x86_64.appimage"
+NOTES="${1:?usage: ./publish.sh <notes-file> or ./publish.sh --publish <timestamp>}"
+[ -f "$NOTES" ] || { echo "missing notes file $NOTES"; exit 1; }
-echo ">> publishing $TS"
-gh release create "$TS" "$STAGE/opensuite-x86_64.appimage" \
- --repo "$REPO" --title "Open Suite $TS" --notes-file "$NOTES" --latest
+# GitHub builds what is on GitHub: everything has to be committed and pushed.
+[ -z "$(git status --porcelain)" ] || { echo "there are uncommitted changes"; exit 1; }
+git fetch -q origin main
+[ "$(git rev-parse HEAD)" = "$(git rev-parse origin/main)" ] || { echo "HEAD is not what origin/main holds: push first"; exit 1; }
-echo ">> verifying"
-for name in opensuite-x86_64.appimage; do
- local_sum="$( { sha256sum "$STAGE/$name" 2>/dev/null || shasum -a 256 "$STAGE/$name"; } | cut -d' ' -f1)"
- remote_sum="$(gh release view "$TS" --repo "$REPO" --json assets \
- --jq ".assets[] | select(.name==\"$name\") | .digest" | sed 's/^sha256://')"
- target="$(curl -sI "https://github.com/$REPO/releases/latest/download/$name" \
- | grep -i '^location' | grep -o 'releases/download/[^/]*' || true)"
- if [ "$local_sum" = "$remote_sum" ] && [ "$target" = "releases/download/$TS" ]; then
- echo " ok $name (checksum matches, latest link -> $TS)"
- else
- echo " FAIL $name local=$local_sum remote=$remote_sum latest->$target"
- rm -rf "$STAGE"; exit 1
- fi
+TS="$(date -u +%Y%m%d-%H%M%S)"
+echo ">> drafting $TS"
+gh release create "$TS" --repo "$REPO" --draft --target main --title "Open Suite $TS" --notes-file "$NOTES" >/dev/null
+for wf in linux-app.yml macos-app.yml windows-app.yml; do
+ gh workflow run "$wf" --repo "$REPO" --ref main -f release="$TS"
done
-rm -rf "$STAGE"
-echo "Published https://github.com/$REPO/releases/tag/$TS"
+echo
+echo "Draft $TS made and the three builds started. Watch them with: gh run list --repo $REPO -L 5"
+echo "A build that fails its test attaches nothing: look at the failure, then run it again."
+echo "Add the checksums each build prints to the notes, then: ./publish.sh --publish $TS"