bigbluebutton-Github/build/packages-template/bbb-webhooks/build.sh
prlanzarin 0368a677a6 build(bbb-webhooks): v3.0.0-beta.3
- Bump bbb-webhooks to v3.0.0-beta.3. The full v3.0.x changelog can be
   found at: https://github.com/bigbluebutton/bbb-webhooks/blob/v3.0.0-beta.3/CHANGELOG.md#changelog
 - Transition from `npm install` to `npm ci`
 - Adjust configs that changed paths (`hooks.getRaw`, `log.filename`)
 - Omit `.git` directory from the final package

```
  # CHANGELOG

  All notable changes to this project will be documented in this file.

  ### v3.0.0-beta.3

  * build: bullmq@4.17.0, bump transitive deps

  ### v3.0.0-beta.2

  * fix(webhooks): re-implement includeEvents/excludeEvents

  ### v3.0.0-beta.1

  * fix(xapi): ensure the correct lrs_endpoint is used
  * feat(xapi): add suport for meta_xapi-create-end-actor-name

  ### v3.0.0-beta.0

  * feat(test): add support for modular test suites
  * feat(test): add xAPI test suite
  * refactor(test): remove nock as a dependency
  * fix(test): restore remaining out/webhooks tests
  * fix(xapi): set chat message statements timestamp to ISO format
  * fix: add Redis disconnection handling

  ### v3.0.0-alpha.1

  * !refactor: application rewritten to use a modular input/processing/ouput system
  * !refactor: modernize codebase (ES6 imports, Node.js >= 18 etc.)
  * !refactor(webhooks): the webhooks functionality was rewritten into an output module
  * !refactor(webhooks): hook IDs are now UUIDs instead of integers
  * !refactor: new logging system (using Pino)
  * !refactor: migrate node-redis from v3 to v4
  * !refactor: new queue system (using Bullmq)
  * refactor(webhooks): replace request with node-fetch
  * refactor: replace sha1 dependency with native code
  * feat: new xAPI output module with support for multitenancy
      - Implements https://github.com/gaia-x-dases/xapi-virtual-classroom
      - For more information: (README.md)[src/out/xapi/README.md]
  * feat(events): add support for poll events
  * feat(events): add support for raise-hand events
  * feat(events): add support for emoji events
  * feat(events): add user info to screenshare events
  * feat(events): add support for audio muted/unmuted events
  * feat: add Prometheus instrumentation
  * feat: add JSDoc annotations to most of the codebase
  * feat: log to file
  * feat: add support for multiple checksum algorithms (SHA1,...,SHA512)
  * fix(events): user-left events are now emitted for trailing users on meeting-ended events
  * build: add docker-compose and updated Dockerfile examples
```
2024-01-09 14:19:04 +00:00

50 lines
1.3 KiB
Bash
Executable File

#!/bin/bash -ex
TARGET=`basename $(pwd)`
PACKAGE=$(echo $TARGET | cut -d'_' -f1)
VERSION=$(echo $TARGET | cut -d'_' -f2)
DISTRO=$(echo $TARGET | cut -d'_' -f3)
#
# Clean up directories
rm -rf staging
#
# Create directory for fpm to process
DIRS="/usr/share/bigbluebutton/nginx /usr/local/bigbluebutton/bbb-webhooks"
for dir in $DIRS; do
mkdir -p staging$dir
done
##
mkdir -p staging/usr/local/bigbluebutton/bbb-webhooks
find -maxdepth 1 ! -path . ! -name staging ! -name .git $(printf "! -name %s " $(cat .build-files)) -exec cp -r {} staging/usr/local/bigbluebutton/bbb-webhooks/ \;
pushd .
cd staging/usr/local/bigbluebutton/bbb-webhooks/
npm ci --omit=dev
popd
cp webhooks.nginx staging/usr/share/bigbluebutton/nginx/webhooks.nginx
mkdir -p staging/usr/lib/systemd/system
cp bbb-webhooks.service staging/usr/lib/systemd/system
##
. ./opts-$DISTRO.sh
fpm -s dir -C ./staging -n $PACKAGE \
--version $VERSION --epoch $EPOCH \
--after-install after-install.sh \
--before-install before-install.sh \
--before-remove before-remove.sh \
--description "BigBlueButton Webhooks" \
$DIRECTORIES \
$OPTS \
-d 'nodejs (>= 18)' -d 'nodejs (<< 20)'