Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,7 @@ jobs:

- name: Install dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: |
npm ci --ignore-scripts
npm run prepare
npm rebuild

- name: Apply patches and rebuild
if: steps.cache-deps.outputs.cache-hit == 'true'
run: npm run prepare
run: npm ci

- name: Run linting
run: npm run lint
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@ asset-data

# should be generated with script
src/**/tracks/tracks.json

# native build
build/
bin/
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This project is still in the early stages of development, so there may be bugs a

## Introduction

This project is built with React and Electron and uses ths iRacing SDK via [irsdk-node](https://github.com/bengsfort/irsdk-node) library to retrieve data from the iRacing live telemetry memory-map.
This project is built with React and Electron and uses the iRacing SDK to retrieve data from the iRacing live telemetry memory-map.

## Installation

Expand Down Expand Up @@ -87,6 +87,7 @@ irdashies/
```

- `src/app/` contains the main Electron application code.
- `src/app/irsdk/` contains the iRacing SDK code including the native C++ bindings.
- `src/frontend/` contains the React components for the overlays.
- `src/types/` contains TypeScript type definitions shared between the frontend and backend (e.g. telemetry types).

Expand Down
27 changes: 27 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"targets": [
{
"target_name": "irsdk_node",
"sources": [],
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS",
],
"include_dirs": [
"<!(node -p \"require('node-addon-api').include_dir\")",
],
"conditions": [
[
"OS=='win'",
{
"sources": [
"src/app/irsdk/native/irsdk_node.cc",
"src/app/irsdk/native/lib/irsdk_utils.cpp",
"src/app/irsdk/native/lib/yaml_parser.cpp",
"src/app/irsdk/native/lib/irsdk_defines.h",
]
},
]
],
}
]
}
Loading