Skip to content

Latest commit

 

History

History
77 lines (60 loc) · 4.99 KB

File metadata and controls

77 lines (60 loc) · 4.99 KB

Prerequisites

  • bun (version 1.2+); and
  • C/C++ toolchain.

Installation

  1. Install bun from here.

  2. Install a C/C++ toolchain:

  3. Install additional dependencies:

Getting Started

  1. Install OpenCOR's dependencies:

    bun install
  2. Start the development version of OpenCOR:

    • Desktop version:

      bun dev
    • Web app version:

      bun dev:web
  3. Test OpenCOR:

    • Desktop version: the application will open automatically; and
    • Web app version: open your browser and navigate to the local development URL (typically http://localhost:5173).

Available Scripts

Script Description
archive:web Archive OpenCOR's Web app
build Build OpenCOR
build:web Build OpenCOR's Web app
clean Clean OpenCOR's environment
dependencies:update Update all dependencies to their latest versions
dev (Build and) start OpenCOR and OpenCOR's Web app with hot reload
dev:web (Build and) start OpenCOR's Web app with hot reload
format Format the code
format:check Check code formatting without making changes
lint Lint and automatically fix issues
release Release OpenCOR for the current platform
release:local Release OpenCOR for the current platform without code signing
start (Build and) start (the production version of) OpenCOR
start:web (Build and) start (the production version of) OpenCOR's Web app
version:new Update the version of OpenCOR

Notes

  • OpenCOR does not, by default, work on Ubuntu 24.04 LTS and later (see here for more information), although it can be made to work by running the following command:
    sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
  • The URI scheme works fine when using the release-based version of OpenCOR. When it comes to the start-based and dev-based versions, the URI scheme "works" as follows:
    • On Windows and Linux, it just does not work; and
    • On macOS, it only works when OpenCOR is already running.