diff --git a/build_scripts/README.md b/build_scripts/README.md index 176087f..ceb9e1a 100644 --- a/build_scripts/README.md +++ b/build_scripts/README.md @@ -5,6 +5,8 @@ Both `compile_parser.sh` and `Makefile` are provided by Panic and may be retrieved from [here](https://docs.nova.app/syntax-reference/build_script.zip). +## Building + Assuming you have Nova.app installed at `/Applications/Nova.app`, run `yarn build:tree-sitter` to build `libtree-sitter-svelte.dylib`. This command is also included in `yarn build`. @@ -17,3 +19,11 @@ to build, specifying the path to Nova.app as the first argument: ``` It will also copy the build output to correct place and cleanup temp files. + +## Signing + +The resulting library must be signed to be able to submit to Nova's library. + +Assuming you already built the library, and your Developer ID certificate is +installed to Login keychain, use `yarn sign:tree-sitter CERT_ID` to sign the +library. diff --git a/build_scripts/sign_lib.sh b/build_scripts/sign_lib.sh new file mode 100755 index 0000000..7878ff6 --- /dev/null +++ b/build_scripts/sign_lib.sh @@ -0,0 +1 @@ +xcrun codesign --verbose --strict --keychain ~/Library/Keychains/login.keychain -s $1 --timestamp SvelteNova.novaextension/Syntaxes/libtree-sitter-svelte.dylib