Skip to content

Commit

Permalink
Merge pull request #45 from TBSniller/todo/rewrite_web
Browse files Browse the repository at this point in the history
Complete frontend rewrite & unicapture support
  • Loading branch information
TBSniller authored Sep 24, 2022
2 parents e09c96f + 5576e48 commit cc734f9
Show file tree
Hide file tree
Showing 50 changed files with 5,742 additions and 37,453 deletions.
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules/
hyperion-webos/
build/
dist/
servicenative/
.vscode/
.github/
frontend/js/spatial-navigation.js
frontend/js/domrect-polyfill.js
21 changes: 21 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
env: {
browser: true,
},
extends: [
'airbnb-base',
'plugin:compat/recommended'
],
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'no-console': 0,
'no-bitwise': 0,
'no-await-in-loop': 0,
'no-constant-condition': 0
},
};
35 changes: 0 additions & 35 deletions .eslintrc.json

This file was deleted.

120 changes: 0 additions & 120 deletions .github/workflows/build_hyperion.yml

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/build_piccap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build PicCap with hyperion-webos and create IPK

on:
push:
pull_request:
workflow_dispatch:

jobs:
build-all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0

- uses: actions/setup-node@v1
with:
node-version: 16

- name: Install webOS CLI
run: sudo npm install --location=global @webosose/ares-cli

- name: Install dependencies
working-directory: ${{github.workspace}}
run: npm install

- name: Download and unpack toolchain
working-directory: /opt
run: wget -q -O toolchain.tar.gz https://github.com/openlgtv/buildroot-nc4/releases/download/webos-9f5b1a1/arm-webos-linux-gnueabi_sdk-buildroot.tar.gz && tar -xf toolchain.tar.gz

- name: Relocate toolchain
working-directory: /opt/arm-webos-linux-gnueabi_sdk-buildroot
run: ./relocate-sdk.sh

- name: Setup Env
run: env -i bash -c 'export CMAKE_TOOLCHAIN_FILE=/opt/arm-webos-linux-gnueabi_sdk-buildroot/share/buildroot/toolchainfile.cmake && env' >> $GITHUB_ENV

- name: Check CMAKE Version
run: which cmake && cmake --version

- name: Build PicCap, hyperion-webos and copy files
working-directory: ${{github.workspace}}
run: npm run-script build-all

- name: Package Frontend and Service
run: npm run-script package

- name: List files
run: find . && find ./build

- name: Upload PicCap IPK
uses: actions/upload-artifact@v2
with:
name: piccap_ipk
path: ./build/*.ipk

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./build/*.ipk
11 changes: 3 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
dist
build
.vscode
service/node_modules
servicenative/hyperion-webos
servicenative/libvt_backend.so
servicenative/libvtcapture_backend.so
servicenative/libdile_vt_backend.so
node_modules
.vscode/*
!.vscode/settings.json
node_modules
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cmake.sourceDirectory": "${workspaceFolder}/hyperion-webos",
"cmake.buildDirectory": "${workspaceFolder}/hyperion-webos/build"
}
Loading

0 comments on commit cc734f9

Please sign in to comment.