build: Signing,

This commit is contained in:
Shibo Lyu 2022-11-03 17:03:52 +00:00
parent f2c7d76807
commit d59b3fbb75
2 changed files with 11 additions and 0 deletions

View file

@ -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.

1
build_scripts/sign_lib.sh Executable file
View file

@ -0,0 +1 @@
xcrun codesign --verbose --strict --keychain ~/Library/Keychains/login.keychain -s $1 --timestamp SvelteNova.novaextension/Syntaxes/libtree-sitter-svelte.dylib