Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Empty AVClient
  • Loading branch information
bekriebel committed Aug 6, 2021
0 parents commit 7a2f918
Show file tree
Hide file tree
Showing 15 changed files with 16,727 additions and 0 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/release-fvtt-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
on:
push:
branches:
- main

name: Release FoundryVTT Module

jobs:
check_version:
name: Check FoundryVTT module version
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Check for new version
id: check_for_new_version
uses: salsify/action-detect-and-tag-new-version@v2
with:
create-tag: false
version-command: |
jq -r .version module.json
outputs:
module_previous_version: v${{ steps.check_for_new_version.outputs.previous-version }}
module_current_version: v${{ steps.check_for_new_version.outputs.current-version }}
build:
name: Release FoundryVTT Module
runs-on: ubuntu-latest
needs: check_version
if: ${{ needs.check_version.outputs.module_current_version != needs.check_version.outputs.module_previous_version }}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Create tag changelog
id: changelog
run: |
CHANGELOG=$(git log --reverse --pretty=oneline --abbrev-commit ${{ needs.check_version.outputs.module_previous_version }}..HEAD)
# Support for multiline, see
# https://github.com/actions/create-release/pull/11#issuecomment-640071918
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "Got changelog: $CHANGELOG"
echo "::set-output name=changelog::$CHANGELOG"
- name: Update download URL
id: update_module_download_url
uses: microsoft/variable-substitution@v1
with:
files: 'module.json'
env:
download: https://github.com/${{ github.repository }}/releases/download/${{ needs.check_version.outputs.module_current_version }}/${{ github.event.repository.name }}.zip
- name: Package module
run: |
zip -r ./${{ github.event.repository.name }}.zip lang/ src/ CHANGELOG.md module.json README.md
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.check_version.outputs.module_current_version }}
release_name: Release ${{ needs.check_version.outputs.module_current_version }}
body: ${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false
- name: Upload module zip
id: upload-module-zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ github.event.repository.name }}.zip
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip
- name: Upload module json
id: upload-module-json
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./module.json
asset_name: module.json
asset_content_type: application/json
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.lock
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# v0.0.1
* Initial release
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# LiveKit AVClient
TODO

## Installation
You can install this module by using the following manifest URL: https://github.com/bekriebel/fvtt-module-avclient-livekit/releases/latest/download/module.json

## How to use
TODO

## Debugging
By default, debug logs are disabled. If additional logs are needed for troubleshooting, `Enable debug logging` can be turned on under the module settings.

## Changelog
See [CHANGELOG](/CHANGELOG.md)

## Support my work
[![Become a Patron](https://img.shields.io/badge/support-patreon-orange.svg?logo=patreon)](https://www.patreon.com/bekit)
[![Donate via Ko-Fi](https://img.shields.io/badge/donate-ko--fi-red.svg?logo=ko-fi)](https://ko-fi.com/bekit)
4 changes: 4 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"LIVEKITAVCLIENT.debug": "Enable debug logging",
"LIVEKITAVCLIENT.debugHint": "Enables CONFIG.debug.av and CONFIG.debug.avclient for extra logging"
}
7 changes: 7 additions & 0 deletions lang/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"I18N.LANGUAGE": "Español",
"I18N.MAINTAINERS": "@Viriato139ac#0342",

"LIVEKITAVCLIENT.debug": "Habilitar registro de errores",
"LIVEKITAVCLIENT.debugHint": "Habilita CONFIG.debug.av y CONFIG.debug.avclient para crear un registro de errores detallado"
}
43 changes: 43 additions & 0 deletions module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "avclient-livekit",
"title": "LiveKit AVClient",
"description": "Use LiveKit to handle A/V",
"author": "bekit",
"authors": [
{
"name": "bekit",
"email": "[email protected]",
"url": "https://bekit.net",
"discord": "bekit#4213",
"patreon": "bekit",
"ko-fi": "bekit",
"twitter": "@bekit"
}
],
"version": "0.0.0",
"minimumCoreVersion": "0.8.8",
"compatibleCoreVersion": "0.8.8",
"manifestPlusVersion": "1.1.0",
"esmodules": [
"src/avclient-livekit.js"
],
"socket": true,
"url": "https://github.com/bekriebel/fvtt-module-avclient-livekit",
"manifest": "https://github.com/bekriebel/fvtt-module-avclient-livekit/releases/latest/download/module.json",
"download": "https://github.com/bekriebel/fvtt-module-avclient-livekit/releases/latest/download/fvtt-module-avclient-livekit.zip",
"readme": "https://github.com/bekriebel/fvtt-module-avclient-livekit/blob/main/README.md",
"changelog": "https://github.com/bekriebel/fvtt-module-avclient-livekit/blob/main/CHANGELOG.md",
"bugs": "https://github.com/bekriebel/fvtt-module-avclient-livekit/issues",
"languages": [
{
"lang": "en",
"name": "English",
"path": "lang/en.json"
},
{
"lang": "es",
"name": "Español",
"path": "lang/es.json"
}
]
}
Loading

0 comments on commit 7a2f918

Please sign in to comment.