Skip to content
Kenneth G. Franqueiro edited this page Feb 4, 2025 · 2 revisions

kfranqueiro/thelounge is a fork focusing on fixes for accessibility issues noted by the WAI team and other W3C groups.

Packaging Instructions

First-time setup

Clone https://github.com/thelounge/thelounge-deb and make the following changes to build-package:

--- a/build-package
+++ b/build-package
@@ -23,13 +23,13 @@ export HOME="$STARTDIR" # because yarn is stupid and tries to mess with the user
 echo "Building $NPMVERSION..."
 
 # Remove potential leftovers from a previous build
-rm -rf "$DESTDIR" "$OUTDIR"
+rm -rf "$CACHE" "$DESTDIR" "$OUTDIR"
 
 install -dm755 "$DESTDIR/usr/bin"
 install -dm755 "$MODULES_DIR/thelounge"
 
 # Fetch the lock file so that we actually get the pinned deps that we want
-curl -O "https://raw.githubusercontent.com/thelounge/thelounge/$NPMVERSION/yarn.lock"
+curl -O "https://raw.githubusercontent.com/kfranqueiro/thelounge/dev/yarn.lock"
 
 # Install the package itself
 # we on purposes don't use yarn global add, because with it --ignore-scripts
@@ -37,7 +37,7 @@ curl -O "https://raw.githubusercontent.com/thelounge/thelounge/$NPMVERSION/yarn.
 yarn add --no-default-rc --frozen-lockfile \
        --prod --non-interactive --ignore-scripts \
        --cache-folder "$CACHE" --modules-folder "$MODULES_DIR" \
-       "thelounge@${NPMVERSION}"
+       "file:$1"
 
 # Write .thelounge_home to set correct system config directory
 echo "/etc/thelounge" > "$MODULES_DIR/thelounge/.thelounge_home"

Standard procedure

(Note: these steps assume that thelounge and thelounge-deb are sibling directories)

  1. Make sure the dev branch of this fork is pushed, including revving package.json's version
  2. Under thelounge:
    1. Run NODE_ENV=production yarn build from the dev branch of this fork
    2. Run npm pack and note the resulting filename for the next step
  3. Under thelounge-deb:
    1. Update debian/control so that its Version matches what's in thelounge/package.json from step 1
    2. Run ./build-package ../thelounge/thelounge-<VERSION>.tgz
  4. Upload the tgz and deb from the previous steps when creating new release

Clone this wiki locally