-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from tibroc/plugin-deb-package
Build deb packages for the html-plugin
- Loading branch information
Showing
11 changed files
with
150 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
name: 📦 Build .deb-package for html-plugin | ||
on: | ||
push: | ||
branches: [ "main"] | ||
paths: | ||
- 'html-plugin/**' | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- 'html-plugin/**' | ||
|
||
jobs: | ||
build-deb-package: | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
working-directory: ./html-plugin | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install build dependencies | ||
run: sudo ./.setup-build-dependencies.sh | ||
|
||
- run: node --version | ||
|
||
- name: Build Debian package | ||
run: sudo dpkg-buildpackage -us -uc | ||
|
||
- name: Upload Debian Package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: html-plugin-ubuntu-22.04 | ||
path: "${{ github.workspace }}/*.deb" | ||
|
||
release: | ||
name: "Upload assets to release" | ||
needs: build-deb-package | ||
runs-on: ubuntu-latest | ||
if: ${{ github.ref_type == 'tag' }} | ||
permissions: | ||
contents: write | ||
actions: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: html-plugin-ubuntu-22.04 | ||
path: html-plugin-ubuntu-22.04 | ||
|
||
- name: Create release asset archives | ||
run: zip --junk-paths --recurse-paths --compression-method store "html-plugin-ubuntu-22.04.zip" "html-plugin-ubuntu-22.04" | ||
|
||
- name: Upload release assets | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh release upload ${{ github.ref_name }} "html-plugin-ubuntu-22.04.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# This script installs the build dependencies for the HTML plugin debian package. | ||
# Do not use the github action node-setup, because it will not work with the debian package build. | ||
|
||
set -eux | ||
|
||
apt-get update | ||
apt-get install -y build-essential devscripts debhelper lintian ca-certificates curl gnupg | ||
mkdir -p /etc/apt/keyrings | ||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg | ||
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list | ||
apt-get update | ||
apt-get install -y nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
bbb-room-connector-plugin (0.1.0) jammy; urgency=medium | ||
|
||
* initial build | ||
|
||
-- Timo Nogueira Brockmeyer <timb@uos.de> Thu, 20 Jun 2024 14:56:14 -0400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Source: bbb-room-connector-plugin | ||
Section: web | ||
Priority: extra | ||
Maintainer: Timo Nogueira Brockmeyer <timb@uos.de> | ||
Build-Depends: debhelper (>= 13), nodejs (>= 18) | ||
Standards-Version: 4.1.4 | ||
|
||
Package: bbb-room-connector-plugin | ||
Architecture: all | ||
Depends: ${misc:Depends}, nodejs | ||
Description: The BigBlueButton room connector plugin | ||
A BigBlueButton plugin to connect a meeting to a room appliance | ||
(as a bring-your-own-meeting functionality). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Format: http://dep.debian.net/deps/dep5 | ||
Upstream-Name: bbb-room-connector-plugin | ||
|
||
Files: * | ||
Copyright: 2024 BigBlueButton Inc. and by respective authors | ||
License: GPL-3.0+ | ||
This program is free software: you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License as published by the | ||
Free Software Foundation, either version 3 of the License, or (at your | ||
option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License along | ||
with this program. If not, see <http://www.gnu.org/licenses/>. | ||
. | ||
On Debian systems, the complete text of the GNU General Public License | ||
version 3.0 can be found in "/usr/share/common-licenses/GPL-3.0". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/make -f | ||
|
||
%: | ||
dh $@ --no-parallel --verbose | ||
|
||
override_dh_auto_build: | ||
npm install | ||
npm run build-bundle | ||
|
||
override_dh_auto_install: | ||
install -d debian/bbb-room-connector-plugin/var/www/bigbluebutton-default/assets/plugins/bbb-room-connector-plugin | ||
cp -r dist/* debian/bbb-room-connector-plugin/var/www/bigbluebutton-default/assets/plugins/bbb-room-connector-plugin |