script-kit / app

Other
66 stars 15 forks source link

Script Kit App v3

The companion app to Script Kit

https://scriptkit.com

Getting Started

Install pnpm:

https://pnpm.io/installation

Run the following:

pnpm i
pnpm dev

Reloading

If you make a change in the main dir/process, you'll need to stop and run npm run dev again. If you make a change in the renderer, it should attempt to hot reload. If that fails, cmd+w to close the window, and open a new one.

node-gyp Issues?

You'll have to Google for your specific issues. On mac, it's usually update xcode command line tools.

System Specific Notes

Mac - Homebrew Users

@see - https://stackoverflow.com/questions/77251296/distutils-not-found-when-running-npm-install

If you're using homebrew for Python (or python 3.12), you'll need to install the setuptools to be able to run npm i

brew install python-setuptools

Windows

Putting this here in case anyone has trouble with node-gyp while setting up a dev environment on Windows. I had to install the following using the Visual Studio Installer:

Desktop Development with C++ workload MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest) MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs (Latest)

Linux

arm64

You will need to uninstall uiohook-napi to avoid errors:

npm un uiohook-napi

Kit SDK Notes

pnpm

This will install pnpm to ~/.kit/pnpm

Vite Cache Issues

When rebuilding the Kit SDK, also run:

npm run clear-cache

This is due to Vite not picking up on some changes to a linked SDK.