From 4f397154aa078b4a561274f569c8e5f1802b6646 Mon Sep 17 00:00:00 2001 From: Michael Hollister Date: Tue, 17 Dec 2024 00:56:12 -0600 Subject: [PATCH] Initial WebOS CI --- .gitignore | 4 +++- receivers/webos/.gitlab-ci.yml | 24 +++++++++++++++++++ .../webos/fcast-receiver/webpack.config.js | 4 ++-- 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 receivers/webos/.gitlab-ci.yml diff --git a/.gitignore b/.gitignore index 5ca0859..264d223 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ .vscode node_modules/ -.wrangler/ \ No newline at end of file +.wrangler/ + +receivers/webos/*.ipk diff --git a/receivers/webos/.gitlab-ci.yml b/receivers/webos/.gitlab-ci.yml new file mode 100644 index 0000000..fcbbfc8 --- /dev/null +++ b/receivers/webos/.gitlab-ci.yml @@ -0,0 +1,24 @@ + +buildWebOS: + stage: buildWebOSReceiver + image: node:current-bookworm + tags: + - fcast-instance-runner + before_script: + - cd receivers/webos + - npm install -g @webos-tools/cli + script: + - cd fcast-receiver + - npm run build + - cd ../fcast-receiver-service + - npm run build + - cd ../ + - ares-package fcast-receiver/dist/ fcast-receiver-service/dist/ --no-minify + artifacts: + untracked: false + when: on_success + access: all + expire_in: "30 days" + paths: + - receivers/webos/com.futo.fcast.receiver_1.0.0_all.ipk + when: manual diff --git a/receivers/webos/fcast-receiver/webpack.config.js b/receivers/webos/fcast-receiver/webpack.config.js index 1eabf34..daaed00 100644 --- a/receivers/webos/fcast-receiver/webpack.config.js +++ b/receivers/webos/fcast-receiver/webpack.config.js @@ -4,8 +4,8 @@ const CopyWebpackPlugin = require("copy-webpack-plugin"); // Build issues: // * Must use '--no-minify' when packaging since packaging would break otherwise... -// const buildMode = 'production'; -const buildMode = 'development'; +const buildMode = 'production'; +// const buildMode = 'development'; // const TARGET = 'electron'; const TARGET = 'webOS';