add documentation for saving build time by skipping codesigning and notarization (#502)

Co-authored-by: neil molina <neil@neils-MacBook-Pro.local>
This commit is contained in:
Neil 2023-04-26 08:00:48 +08:00 committed by GitHub
parent 7c9aabd013
commit 15e21b7ca3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -25,6 +25,12 @@ xc build # only required if you modify the backend
xc dev # opens the app in dev mode
```
Creating a locally built installer for local usage will not need codesigning and notarization, to skip the 2-steps:
```
$ export CSC_IDENTITY_AUTO_DISCOVERY=false
$ xc dist
```
# Contributing to `tea/gui`
If you have suggestions or ideas, start a [discussion]. If we agree, well move it to an issue. Bug fixes straight to pull request or issue please!

View file

@ -21,11 +21,12 @@ module.exports = {
}
},
afterSign: async (params) => {
if (process.platform !== "darwin") {
if (process.platform !== "darwin" || process.env.CSC_IDENTITY_AUTO_DISCOVERY === "false") {
console.log("not notarizing app");
return;
}
console.log("afterSign hook triggered", params);
console.log("afterSign hook triggered");
const appBundleId = "xyz.tea.gui";