forked from thelounge/thelounge
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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.
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"(Note: these steps assume that thelounge and thelounge-deb are sibling directories)
- Make sure the
devbranch of this fork is pushed, including revvingpackage.json'sversion - Under
thelounge:- Run
NODE_ENV=production yarn buildfrom thedevbranch of this fork - Run
npm packand note the resulting filename for the next step
- Run
- Under
thelounge-deb:- Update
debian/controlso that itsVersionmatches what's inthelounge/package.jsonfrom step 1 - Run
./build-package ../thelounge/thelounge-<VERSION>.tgz
- Update
- Upload the
tgzanddebfrom the previous steps when creating new release