generated from bigbluebutton/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Sync with template to include packaging #4
Open
antobinary
wants to merge
20
commits into
main
Choose a base branch
from
packaging
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f9ee08e
Added license and readme
antobinary f5de0ce
Added security policy
antobinary 9496076
added a CLA welcome checker
antobinary a2b1373
[add-lint-and-ci] - added lint, ci and boilerplate for plugin building
GuiLeme fdd4662
[add-lint-and-ci] Customize files for plugin, not SDK
GuiLeme 6a785b6
Merge pull request #5 from GuiLeme/add-lint-and-ci
antobinary ebd701f
fix typo
antobinary fd72e8d
build: initial stab at packaging
antobinary b7d43ae
disable the build for template
antobinary eeb9c57
disable the build for template
antobinary 1a8d354
drop 2 unneeded files from packaging
antobinary 3eba852
ref: Update template to use the new plugin manifest structure (#10)
GuiLeme ea66973
ci: add workflow to auto tag and bump package.json (#9)
antobinary 03f7add
packaging + sync with template
antobinary 8d97ccf
build: enable building a package
antobinary 1faeb79
fix homepage
antobinary d5d2422
fix: re-add dropped flag
antobinary a338824
fix: typo
antobinary d31fd87
bump sdk to 0.0.72
antobinary bde3d4a
bump to 0.2.1; drop duplicate build steps
antobinary File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,99 @@ | ||
--- | ||
name: "📦 Build .deb package for plugin" | ||
on: | ||
push: | ||
branches: [ "main"] | ||
paths-ignore: | ||
- debian/changelog | ||
pull_request: | ||
branches: [ "main" ] | ||
paths-ignore: | ||
- debian/changelog | ||
|
||
jobs: | ||
build-deb-package: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
|
||
env: | ||
OS_VERSION: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
working-directory: . | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Extract and print repository name | ||
run: | | ||
echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV | ||
|
||
- name: Set up Node.js | ||
run: | | ||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - | ||
sudo apt-get install -y nodejs | ||
|
||
- name: Verify Node.js installation | ||
run: | | ||
node -v | ||
npm -v | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y devscripts debhelper | ||
|
||
- name: Build Debian package | ||
run: | | ||
sudo dpkg-buildpackage -us -uc | ||
|
||
- name: Create artifacts directory and move .deb files | ||
run: | | ||
mkdir -p artifacts | ||
mv ../*.deb artifacts/ || mv ./*.deb artifacts/ | ||
ls -la artifacts | ||
|
||
- name: Upload Debian Package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "${{ env.REPO_NAME }}-${{ env.OS_VERSION }}" | ||
path: artifacts/*.deb | ||
|
||
release: | ||
name: "Upload assets to release" | ||
needs: build-deb-package | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
|
||
env: | ||
OS_VERSION: ${{ matrix.os }} | ||
if: ${{ github.ref_type == 'tag' }} | ||
permissions: | ||
contents: write | ||
actions: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Extract and print repository name | ||
run: | | ||
echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: "${{ env.REPO_NAME }}-${{ env.OS_VERSION }}" | ||
path: "${{ env.REPO_NAME }}-${{ env.OS_VERSION }}" | ||
|
||
- name: Create release asset archives | ||
run: zip --junk-paths --recurse-paths --compression-method store "${{ env.REPO_NAME }}-${{ env.OS_VERSION }}.zip" "${{ env.REPO_NAME }}-${{ env.OS_VERSION }}" | ||
|
||
- name: Upload release assets | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh release upload ${{ github.ref_name }} "${{ env.REPO_NAME }}-${{ env.OS_VERSION }}.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Cut a new tag (also auto updates package.json and package-lock.json) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_type: | ||
description: 'Version bump type (patch, minor, major)' | ||
required: true | ||
default: 'patch' | ||
|
||
jobs: | ||
bump-version: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Get triggering user's email | ||
run: | | ||
user_email=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/users/${{ github.actor }} | jq -r '.email') | ||
if [ -z "$user_email" ] || [ "$user_email" == "null" ]; then | ||
user_email="[email protected]" | ||
fi | ||
echo "user_email=$user_email" >> $GITHUB_ENV | ||
|
||
- name: Configure Git with the triggering user's info | ||
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" | ||
|
||
|
||
- name: Bump version and push tag | ||
run: | | ||
npm install | ||
npm version ${{ github.event.inputs.release_type }} -m "chore: bump version to %s" | ||
git push --follow-tags | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,2 +1,10 @@ | ||
node_modules | ||
dist | ||
dist-tsc | ||
debian/.debhelper/ | ||
debian/debhelper-build-stamp | ||
debian/files | ||
debian/**/copyright | ||
debian/**/changelog.gz | ||
debian/**/md5sums | ||
debian/**/var/www/* |
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-plugin-tour (0.1.0) jammy; urgency=medium | ||
|
||
* initial build | ||
|
||
-- Anton Georgiev <[email protected]> Thu, 13 Feb 2025 14:56:18 -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,15 @@ | ||
Source: bbb-plugin-tour | ||
Section: web | ||
Priority: extra | ||
Maintainer: Anton Georgiev <[email protected]> | ||
Build-Depends: debhelper (>= 13), nodejs (>= 18) | ||
Standards-Version: 4.1.4 | ||
Homepage: https://github.com/bigbluebutton/plugin-tour | ||
|
||
Package: bbb-plugin-tour | ||
Architecture: all | ||
Depends: ${misc:Depends}, nodejs | ||
Description: Share a webpage with all session participants | ||
An official BigBlueButton plugin which allows | ||
the presenter to display a web page to | ||
all viewers inside of a session. |
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,18 @@ | ||
Format: http://dep.debian.net/deps/dep5 | ||
Upstream-Name: bbb-plugin-template | ||
|
||
Files: * | ||
Copyright: 2024 BigBlueButton Inc. and by respective authors | ||
License: LGPL-3.0+ | ||
This program is free software: you can redistribute it and/or modify it | ||
under the terms of the GNU Lesser 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 Lesser General Public License along | ||
with this program. If not, see <http://www.gnu.org/licenses/>. |
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-plugin-tour/var/www/bigbluebutton-default/assets/plugins/bbb-plugin-tour | ||
cp -r dist/* debian/bbb-plugin-tour/var/www/bigbluebutton-default/assets/plugins/bbb-plugin-tour |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"requiredSdkVersion": "~0.0.66", | ||
"requiredSdkVersion": "~0.0.72", | ||
"name": "TourPlugin", | ||
"javascriptEntrypointUrl": "https://PLUGIN_HOST/TourPlugin.js" | ||
"javascriptEntrypointUrl": "TourPlugin.js" | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This portion seems to be core configuration of this plugin, it is not supposed to be taken off without being replaced with the newest version of this setting. @germanocaumo Could you take a look and see if it's still used in the plugin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is still needed, to be able to configure the help links shown in the tour.
@antobinary