From e8b5086049cefe36e20dfef16f302fc9569beaa5 Mon Sep 17 00:00:00 2001 From: Matthew Holder Date: Mon, 2 Sep 2024 18:16:21 -0500 Subject: [PATCH 1/2] Added plan document, some cleanup, and an example release data file --- .dockerignore | 4 ++-- .gitignore | 4 ++-- PLAN.md | 5 +++++ README.md | 7 ++++++- example.dev-app-update.yml | 5 +++++ prettier.config.cjs | 2 ++ resources/.empty | 0 src/core/error-handling.ts | 1 + src/main/system/updater.ts | 2 +- 9 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 PLAN.md create mode 100644 example.dev-app-update.yml delete mode 100644 resources/.empty diff --git a/.dockerignore b/.dockerignore index 2362427..14b803a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -16,8 +16,8 @@ yarn-error.log* pnpm-debug.log* lerna-debug.log* -/cypress/videos/ -/cypress/screenshots/ +cypress/videos/ +cypress/screenshots/ # Editor directories and files .idea diff --git a/.gitignore b/.gitignore index 884459d..7af4d1e 100644 --- a/.gitignore +++ b/.gitignore @@ -25,8 +25,8 @@ yarn-error.log* pnpm-debug.log* lerna-debug.log* -/cypress/videos/ -/cypress/screenshots/ +cypress/videos/ +cypress/screenshots/ # Editor directories and files .idea diff --git a/PLAN.md b/PLAN.md new file mode 100644 index 0000000..ac0ae4a --- /dev/null +++ b/PLAN.md @@ -0,0 +1,5 @@ +- v2.1 + - Switch the majority of the IPC using tRPC. + - Level uses a streaming IPC. + - Anything passing a file may still require some custom hanlding. + - More drivers. diff --git a/README.md b/README.md index aa4bf2f..2a93024 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,11 @@ the execution permission and run it. It is recommended that you use something like the `appimagelauncher` to better integrate it with you desktop environment. +### Requirements + +Currently, BridgeCmdr requires a 32-bit version of Raspberry Pi OS, at least v11, a.k.a. `bullseye`, or later with +FUSE v2 installed. + ### System Requirements I've only tested this software on a Raspberry Pi 3 Model B+. In general I would recommend at minimal a Raspberry Pi 3 @@ -121,7 +126,7 @@ based operating system is required. The following steps will get you setup on a - For hot-reload development mode: `yarn dev` - For product builds: `yarn build` -- For packaged application: `yarn package` +- For packaged application: `yarn make` ### Docker and ARM support diff --git a/example.dev-app-update.yml b/example.dev-app-update.yml new file mode 100644 index 0000000..1a7b114 --- /dev/null +++ b/example.dev-app-update.yml @@ -0,0 +1,5 @@ +owner: 6XGate +repo: bridgecmdr +provider: github +protocol: https +updaterCacheDirName: bridgecmdr-updater diff --git a/prettier.config.cjs b/prettier.config.cjs index b34ffef..4502e62 100644 --- a/prettier.config.cjs +++ b/prettier.config.cjs @@ -1 +1,3 @@ +/* eslint-env node */ +'use strict' module.exports = require('@sixxgate/lint/prettier.config.cjs') diff --git a/resources/.empty b/resources/.empty deleted file mode 100644 index e69de29..0000000 diff --git a/src/core/error-handling.ts b/src/core/error-handling.ts index d561192..8ba6d14 100644 --- a/src/core/error-handling.ts +++ b/src/core/error-handling.ts @@ -24,6 +24,7 @@ export function getZodMessage(e: z.ZodError) { export function getMessage(cause: unknown) { if (cause instanceof Error) return cause.message if (cause == null) return `BadError: ${cause}` + if (typeof cause === 'string') return cause if (typeof cause !== 'object') return String(cause) if (!('message' in cause)) return `BadError: ${Object.prototype.toString.call(cause)}` if (typeof cause.message !== 'string') return String(cause.message) diff --git a/src/main/system/updater.ts b/src/main/system/updater.ts index 8051da7..58fbab3 100644 --- a/src/main/system/updater.ts +++ b/src/main/system/updater.ts @@ -23,7 +23,7 @@ const useUpdater = memo(() => { autoUpdater.forceDevUpdateConfig = true // FIXME: Find some way to prevent if from logging // errors that are caught and handled. - //autoUpdater.logger = Logger + // autoUpdater.logger = Logger /** * Application auto update. From 6d6a6327d4b4b5ef06fbdffbc85a87f9ea65840c Mon Sep 17 00:00:00 2001 From: Matthew Holder Date: Mon, 2 Sep 2024 20:31:15 -0500 Subject: [PATCH 2/2] Updated the Version Numbers --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d12f1c1..feebeb1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bridgecmdr", "productName": "BridgeCmdr", - "version": "2.0.0-beta.8", + "version": "2.0.0-beta.9", "description": "Controller for professional A/V monitors and switches", "packageManager": "yarn@1.22.22", "type": "module",