Recently Written · git

sbm

dmenu bookmarks. Instantly fuzzy search thousands of bookmarks and plumb them. LOOKING FOR SUCKLESS SOFTWARE EDITION? GO TO sbm-suckless INSTEAD

git clone https://github.com/equwal/sbm

Log | Files | Refs


commit f8e81eb7bf080ab88a219efb71d2561364cde135
Spenser Truex <truex@equwal.com>
2026-09-21 13:17:51 -0700

Releases ship the LICENSE

The AGPL-3.0 asks that each copy of the program comes with the licence.
make dist puts LICENSE in the tarball. The Windows installer installs it
to /usr/local/share/sbm, and its uninstaller removes it. The macOS app
has it in Contents/Resources.

 Makefile                           | 2 +-
 contrib/macos/build-dmg.sh         | 1 +
 contrib/windows/build-installer.sh | 2 +-
 contrib/windows/sbm.nsi            | 2 ++
 4 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 39a7737..7ae6985 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ check:
 dist:
 	@echo creating dist tarball
 	@mkdir -p sbm-${VERSION}-temp
-	@cp -R Makefile config.mk README TODO ${SCRIPTS} usertags engines test contrib sbm-${VERSION}-temp
+	@cp -R Makefile config.mk README TODO LICENSE ${SCRIPTS} usertags engines test contrib sbm-${VERSION}-temp
 	@mv sbm-${VERSION}-temp sbm-${VERSION}
 	@tar -cf sbm-${VERSION}.tar sbm-${VERSION}
 	@gzip sbm-${VERSION}.tar
diff --git a/contrib/macos/build-dmg.sh b/contrib/macos/build-dmg.sh
index 5eb2577..af62573 100755
--- a/contrib/macos/build-dmg.sh
+++ b/contrib/macos/build-dmg.sh
@@ -29,6 +29,7 @@ mkdir -p "$app/Contents/MacOS"
 make -s -C "$top" install PREFIX="$app/Contents/Resources" >/dev/null
 cp "$here/sbm" "$app/Contents/MacOS/sbm"
 cp "$here/sbm-run" "$app/Contents/Resources/sbm-run"
+cp "$top/LICENSE" "$app/Contents/Resources/LICENSE"
 chmod 755 "$app/Contents/MacOS/sbm" "$app/Contents/Resources/sbm-run"
 sed "s/@VERSION@/$version/g" "$here/Info.plist" > "$app/Contents/Info.plist"
 plutil -lint "$app/Contents/Info.plist" >/dev/null
diff --git a/contrib/windows/build-installer.sh b/contrib/windows/build-installer.sh
index 38db287..ea38ce7 100755
--- a/contrib/windows/build-installer.sh
+++ b/contrib/windows/build-installer.sh
@@ -39,7 +39,7 @@ make -s -C "$top" install PREFIX="$work" >/dev/null
 cp "$here/fzf" "$work/bin/"
 cp "$here/sbm-setup" "$work/libexec/"
 cp "$here/sbm.sh" "$work/etc/"
-cp "$top/engines" "$top/usertags" "$work/share/"
+cp "$top/engines" "$top/usertags" "$top/LICENSE" "$work/share/"
 
 url=https://github.com/junegunn/fzf/releases/download/v$fzf_version
 curl -fsSL -o "$work/fzf.zip" "$url/fzf-$fzf_version-windows_amd64.zip"
diff --git a/contrib/windows/sbm.nsi b/contrib/windows/sbm.nsi
index b197c54..3546a0c 100644
--- a/contrib/windows/sbm.nsi
+++ b/contrib/windows/sbm.nsi
@@ -94,6 +94,7 @@ Section
   SetOutPath "$Cygwin\usr\local\share\sbm"
   File "${SRC}\share\engines"
   File "${SRC}\share\usertags"
+  File "${SRC}\share\LICENSE"
   SetOutPath "$Cygwin\etc\profile.d"
   File "${SRC}\etc\sbm.sh"
 
@@ -173,6 +174,7 @@ Section Uninstall
   RMDir "$Cygwin\usr\local\libexec\sbm"
   Delete "$Cygwin\usr\local\share\sbm\engines"
   Delete "$Cygwin\usr\local\share\sbm\usertags"
+  Delete "$Cygwin\usr\local\share\sbm\LICENSE"
   RMDir "$Cygwin\usr\local\share\sbm"
   Delete "$Cygwin\etc\profile.d\sbm.sh"
   SetShellVarContext current