You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# `--ignore-scripts` to prevent something (node-gyp ?) from automatically building
17
+
pnpm install --ignore-scripts && \
18
+
JOBS=max pnpm run rebuild \
19
+
};popd;
20
+
21
+
# build nodegit for electron, and "compile" typescript files
22
+
make
23
+
pnpm start
24
+
```
25
+
4
26
## Build from source
5
27
6
28
Follow instructions from <https://github.com/nodegit/nodegit>.
7
29
8
30
### Linux
9
31
10
-
```
11
-
JOBS=max npm_config_openssl_bin_url=skip pnpm run electron-rebuild
12
-
pnpm run dist
32
+
```bash
33
+
make
13
34
```
14
35
15
36
### Arch Linux
@@ -19,25 +40,30 @@ PKGBUILD is available from <https://github.com/weedz/git-good-pkgbuild>.
19
40
### Ubuntu/debian
20
41
21
42
To successfully build/link nodegit on linux you will need the following packages:
22
-
```
43
+
44
+
```plain
23
45
build-essential
24
46
libssh-dev
25
47
libkrb5-dev
26
48
```
27
49
28
50
### Windows
29
51
30
-
Install <https://github.com/Microsoft/vcpkg> (C and C++ package manager for windows), needed for openssl dependency. Then install the `openssl` package with:
52
+
Install <https://github.com/Microsoft/vcpkg> (C and C++ package manager for windows),
53
+
needed for openssl dependency. Then install the `openssl` package with:
(What is `builtin-baseline`, <https://learn.microsoft.com/en-us/vcpkg/users/examples/versioning.getting-started#builtin-baseline>)
56
83
And run `.\vcpkg\vcpkg.exe install` in `C:\dev`.
57
-
3. Make sure to use correct Visual Studio version, <https://github.com/nodejs/node-gyp#on-windows>. Does not build with msvs2022. Need msvs2019: `npm config set msvs_version 2019`
58
-
4. Seems like the "postinstall" script for `nodegit` will fail on windows. But the `electron-rebuild` script will succeed.
84
+
3. Make sure to use correct Visual Studio version, <https://github.com/nodejs/node-gyp#on-windows>.
85
+
Does not build with msvs2022. Need msvs2019: `npm config set msvs_version 2019`
86
+
4. Seems like the "postinstall" script for `nodegit` will fail on windows.
87
+
But the `electron-rebuild` script will succeed.
59
88
60
89
## Start
61
90
62
91
Install node modules:
92
+
63
93
```bash
64
-
$ pnpm install
94
+
pnpm install
65
95
```
66
96
67
97
Then run
68
-
```bash
69
-
$ pnpm run build
70
-
```
71
-
to bundle javascript-files and move assets to the `dist/` directory.
72
98
73
-
Now run
74
99
```bash
75
-
$ pnpm run dist
100
+
pnpm run build
76
101
```
77
-
to compile all the native dependencies etc. You can run this with `CC="ccache gcc" JOBS=max pnpm run dist` (omit `CC="ccache gcc"` if you don't have `ccache` installed) to speed up compile time.
102
+
103
+
to bundle javascript-files and move assets to the `dist/` directory.
0 commit comments