Add presenter to bapsicle.
This commit is contained in:
parent
0dcd0b4ae6
commit
39d352ebec
8 changed files with 67 additions and 18 deletions
3
.github/workflows/build.yaml
vendored
3
.github/workflows/build.yaml
vendored
|
@ -19,6 +19,7 @@ jobs:
|
|||
python-version: ${{ matrix.python-version }}
|
||||
- name: Build .app
|
||||
run: |
|
||||
npm run presenter-make
|
||||
build/build-macos.sh
|
||||
zip -r build/output/BAPSicle.zip build/output/BAPSicle.app
|
||||
- name: Archive Build
|
||||
|
@ -45,6 +46,7 @@ jobs:
|
|||
python-version: ${{ matrix.python-version }}
|
||||
- name: Build executable
|
||||
run: |
|
||||
npm run presenter-make
|
||||
build/build-linux.sh
|
||||
- name: Archive Build
|
||||
uses: actions/upload-artifact@v2
|
||||
|
@ -70,6 +72,7 @@ jobs:
|
|||
python-version: ${{ matrix.python-version }}
|
||||
- name: Build .exe
|
||||
run: |
|
||||
npm run presenter-make
|
||||
build/build-windows.bat
|
||||
- name: Archive Build
|
||||
uses: actions/upload-artifact@v2
|
||||
|
|
26
.gitignore
vendored
26
.gitignore
vendored
|
@ -2,31 +2,25 @@
|
|||
.vscode/settings.json
|
||||
|
||||
__pycache__/
|
||||
|
||||
|
||||
*.egg-info/
|
||||
*.pyo
|
||||
venv/
|
||||
|
||||
build/build-exe-config.json
|
||||
build/build-exe-pyinstaller-command.bat
|
||||
build/build-exe-pyinstaller-command.sh
|
||||
build/build/BAPSicle/
|
||||
build/output/
|
||||
*.spec
|
||||
|
||||
install/*.exe
|
||||
install/nssm
|
||||
|
||||
*.pyo
|
||||
|
||||
*.spec
|
||||
|
||||
build/build-exe-pyinstaller-command.bat
|
||||
|
||||
build/build/BAPSicle/
|
||||
|
||||
build/output/
|
||||
|
||||
build.py
|
||||
|
||||
venv/
|
||||
|
||||
dev/welcome.mp3
|
||||
|
||||
build/build-exe-pyinstaller-command.sh
|
||||
|
||||
music-tmp/
|
||||
|
||||
|
||||
presenter-build
|
||||
|
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "presenter"]
|
||||
path = presenter
|
||||
url = https://github.com/michael-grace/WebStudio.git
|
12
package-lock.json
generated
Normal file
12
package-lock.json
generated
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"name": "bapsicle",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"version": "0.1.0",
|
||||
"license": "ISC"
|
||||
}
|
||||
}
|
||||
}
|
26
package.json
Normal file
26
package.json
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"name": "bapsicle",
|
||||
"version": "0.1.0",
|
||||
"description": "Broadcast Playout System",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
"doc": "docs",
|
||||
"test": "tests"
|
||||
},
|
||||
"scripts": {
|
||||
"presenter-install": "cd presenter && git submodule update --init && yarn --network-timeout 100000",
|
||||
"presenter-make": "npm run presenter-install && (rm -r presenter-build || true) && cd presenter && yarn build && cp -r build ../presenter-build && cd ../ && npm install",
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"presenter-start": "cd presenter && yarn start"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/universityradioyork/bapsicle.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/universityradioyork/bapsicle/issues"
|
||||
},
|
||||
"homepage": "https://github.com/universityradioyork/bapsicle#readme"
|
||||
}
|
1
presenter
Submodule
1
presenter
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 68b5091b5853dab6ee9ace542eb6fe0a8dc1edf0
|
10
server.py
10
server.py
|
@ -502,6 +502,16 @@ def serve_static(path: str):
|
|||
return send_from_directory("ui-static", path)
|
||||
|
||||
|
||||
@app.route("/presenter/")
|
||||
def serve_presenter_index():
|
||||
return send_from_directory("presenter-build", "index.html")
|
||||
|
||||
|
||||
@app.route("/presenter/<path:path>")
|
||||
def serve_presenter_static(path: str):
|
||||
return send_from_directory("presenter-build", path)
|
||||
|
||||
|
||||
def startServer():
|
||||
process_title = "startServer"
|
||||
setproctitle(process_title)
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
</div>
|
||||
<hr>
|
||||
<p>Wanted the actual playout controller?</p>
|
||||
<a href="#" class="btn btn-primary btn-user btn-block">
|
||||
Open WebStudio
|
||||
<a href="/presenter/" class="btn btn-primary btn-user btn-block">
|
||||
Open BAPS Presenter
|
||||
</a>
|
||||
<hr>
|
||||
<p>Version: {{data.server_version}} - Build: {{data.server_build}}</p>
|
||||
|
|
Loading…
Reference in a new issue