CrewTimer Video Review is built using Electron, and specificlly the Electron React Boilerplate Project.
See the VSCode plugins suggested here.
Node version 16 or later is recommended.
nvm install 16
nvm use 16
git clone git@github.com:crewtimer/crewtimer-video-review.git
yarn install
yarn start
If the build fails with a node-gyp error, be sure node-gyp is installed globally.
The crewtimer_video_reader native module contains pre-built binaries for mac and win targets. If this repo is private, a github token is required to retrieve the pre-built binaries.
token=ghp_8bh6rSO2EhGf3nVCgY4GrEvs1dqd324
MacOS can build for all targets - mac, win, linux
To build native libs (sqlite3) a recent version of npm is needed.
nvm ls-remote --lts
and pick a version. 16 known to work.nvm install 16
nvm use 16
nvm alias default v16
npm i -g node-gyp@latest"
. Required to build sqlite3.npm i -g yarn
npm i -g ts-node
npm config set node_gyp "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js
cd release/app && npm i --save sqlite3
entry: { renderer: Object.keys(dependencies || {}).filter((it) => it !== 'firebase'), },
. See stackoverflow for issue it resolves.fallback: { path: require.resolve('path-browserify'), },
to make path available from the renderer.A native module is used to read mp4 files from storage using the ffmpeg library. This code is prebuilt and stored on github.
To make updates to the native code, see Instructions for the native video reader. Access to both a windows and Mac is required.
Starting from VSCode seems broke. Try this command line
yarn "start:main" "--inspect=5858" "--remote-debugging-port=9223"
Open dev window with releases code:
yarn cross-env DEBUG_PROD=true yarn package
See also the Electron React Boilerplate page.
npm run winbuild
CrewTimerConnect Setup.exe
.