Repository navigation
Install
Status: Partly. The kit builds and installs on Windows, and test/desktop-journey.mjs checks the desktop window and Settings. Native menus and the Inno Setup installer are not run in CI. macOS and Linux are not tested.
This page takes you from nothing to a patched app. It has no model keys in it yet. Add your API keys comes next.
- Windows 10 or 11, 64-bit.
- Node.js 22.19 or newer. Check with
node --version. - Git.
- The original app, version 0.2.1-rc.5, installed from its official installer. The kit patches exactly this version.
- Free disk space for the copy of the original archive and for the build.
-
Install the original app, version 0.2.1-rc.5. Close it if it runs.
-
Clone this repository. Open a terminal in the folder.
-
Copy
app.asar,app-update.yml,icon.pngandtray.icofrom theresourcesfolder of the original app into the folderpristine\. -
Compare each file with
pristine/SHA256SUMS.txt. The install command checks the same list later. -
Run
node tools/build.mjs.The build reads
pristine/app.asar. It also reads the originalapp.asar.unpackedfolder, which holds the originaldshfolder. It looks inpristine/first and then in theresourcesfolder of the installed app. It writesbuild/app.asar,build/BUILD.jsonandbuild/app.asar.unpacked. -
Optional: run
node test/build-check.mjs build/app.asar <scratch folder>. Run the tests explains it. -
Close the app. Windows locks the archive while the app runs.
-
Run
node tools/install.mjs install, or runinstall.cmd. It calls the same tool.The tool swaps in the new archive and the new icons and deletes the update feed file
app-update.yml. It moves the original side folderapp.asar.unpackedtopristine/and puts an Arc copy in its place. It renames the command and skill files of the installed runtime, sodsh.cmdbecomesarc.cmd. It keeps the originals inpristine/runtime. It copies your old data folder~/.dshto~/.arc. The section "The data folder" below explains this. -
Start the app from its shortcut, or run
node tools/package.mjs [--rcedit <rcedit-x64.exe>] [--iscc <ISCC.exe>]to stageArc Harness.exeand buildbuild/Arc-Harness-Setup-0.5.0.exefrominstaller/arc-harness.iss. -
Copy the Arc plugins (
plugins/arc-hoh,plugins/arc-theme,plugins/arc-core,plugins/arc-mode,plugins/arc-molecullage,plugins/arc-mermaid) into~/.arc/profiles/web/node_modulesand~/.arc/profiles/desktop/node_modules. -
Close the app and run
node tools/lean-profile.mjs apply. It activates@arc-harness/arc-base,@arc-harness/arc-web-app,arc-theme,arc-hoh, and every optional Arc plugin installed innode_modules. Runnode tools/lean-profile.mjs restoreto undo it.
The app keeps its data in ~/.arc. Set ARC_HOME to move it.
The first install copies the old ~/.dsh there. Settings, profiles, plugins and skills get Arc names. Conversations, logs and keys are copied byte for byte.
~/.dsh stays as it was, so install.cmd rollback gets the original app back with its data.
The copy runs only when ~/.dsh exists and ~/.arc has no profiles folder yet.
The tools look for the app in the resources folder of the original app. That is where the official installer puts it.
If yours is elsewhere, set the environment variable ARC_RESOURCES. The live tests read ARC_APP_DIR for the folder that holds the program. Run the tests has the details.
Run node tools/install.mjs status. It says one of three things: the original archive, the current Arc Harness build, or an archive that matches neither. It also says whether the update feed file is present.
Run node tools/install.mjs rollback, or install.cmd rollback. It puts the original files back from pristine/: the archive, the two icons and the update feed file. It also restores the side folder and the runtime files. It does not touch your data folders.
Use the uninstaller of the original app. Your data folder .arc in your user folder stays until you delete it. The old .dsh folder stays too.
Not tested: no check ran the uninstaller.
The build and the install tool read only pristine/app.asar. They have no option for another path. Copy the file there.
See Troubleshooting.
Arc Harness
Use it
- Install
- Quick start
- Add your API keys
- Models and providers
- Plugins and the package model
- Look and feel
- Troubleshooting
- FAQ
Memory
Build and check
Project