Skip to content

build: set up electron-forge#51

Merged
kantord merged 29 commits into
mainfrom
toolhive-react-electron-forge
Jun 3, 2025
Merged

build: set up electron-forge#51
kantord merged 29 commits into
mainfrom
toolhive-react-electron-forge

Conversation

@kantord

@kantord kantord commented Jun 3, 2025

Copy link
Copy Markdown
Member

adds a build system using electron-forge that bundles thv and toolhive-react (vite app) in an Electron App. See detailed reasoning for this: https://stacklok.slack.com/archives/C072SGY78TS/p1748880645755219

Security warning
as a very temporary measure (until we have a more sophisticated data fetching configuration), web security has been disabled. This can be reverted using a single line change. More info: https://stacklok.slack.com/archives/C072SGY78TS/p1748880838175799

What's tested
I have tested build and the dev server pnpm start locally on Arch Linux. I have not implemented detailed configuration for any package format, I just used the default config from the template provided by Electron-forge.

Running the dev server
Running the dev server now requires obtaining a thv binary. Currently, the easiest way to obtain that is to simply build the electron app using pnpm run make. That will fetch an OS/processor-appropriate thv binary for you.

CI changes
Our GH Actions workflows now include a build matrix, only for the electron-forge build. Currently, the build matrix is running a build for Linux and one for Mac. We can add Windows once we have Windows support

@kantord kantord marked this pull request as ready for review June 3, 2025 14:42

@samuv samuv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@kantord kantord merged commit 0fd12e1 into main Jun 3, 2025
9 checks passed
@alex-mcgovern alex-mcgovern deleted the toolhive-react-electron-forge branch June 27, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants