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` or something (gyp) will try to build
17
+
pnpm install --ignore-scripts && \
18
+
JOBS=max pnpm run rebuild \
19
+
};popd;
20
+
21
+
make
22
+
pnpm start
23
+
```
24
+
4
25
## Build from source
5
26
6
27
Follow instructions from <https://github.com/nodegit/nodegit>.
7
28
8
29
### Linux
9
30
10
-
```
11
-
JOBS=max npm_config_openssl_bin_url=skip pnpm run electron-rebuild
12
-
pnpm run dist
31
+
```bash
32
+
make
13
33
```
14
34
15
35
### Arch Linux
@@ -19,15 +39,18 @@ PKGBUILD is available from <https://github.com/weedz/git-good-pkgbuild>.
19
39
### Ubuntu/debian
20
40
21
41
To successfully build/link nodegit on linux you will need the following packages:
22
-
```
42
+
43
+
```plain
23
44
build-essential
24
45
libssh-dev
25
46
libkrb5-dev
26
47
```
27
48
28
49
### Windows
29
50
30
-
Install <https://github.com/Microsoft/vcpkg> (C and C++ package manager for windows), needed for openssl dependency. Then install the `openssl` package with:
51
+
Install <https://github.com/Microsoft/vcpkg> (C and C++ package manager for windows),
52
+
needed for openssl dependency. Then install the `openssl` package with:
53
+
31
54
```bash
32
55
> vcpgk install openssl
33
56
```
@@ -37,7 +60,9 @@ Install <https://github.com/Microsoft/vcpkg> (C and C++ package manager for wind
(What is `builtin-baseline`, <https://learn.microsoft.com/en-us/vcpkg/users/examples/versioning.getting-started#builtin-baseline>)
56
82
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.
83
+
3. Make sure to use correct Visual Studio version, <https://github.com/nodejs/node-gyp#on-windows>.
84
+
Does not build with msvs2022. Need msvs2019: `npm config set msvs_version 2019`
85
+
4. Seems like the "postinstall" script for `nodegit` will fail on windows.
86
+
But the `electron-rebuild` script will succeed.
59
87
60
88
## Start
61
89
62
90
Install node modules:
91
+
63
92
```bash
64
-
$ pnpm install
93
+
pnpm install
65
94
```
66
95
67
96
Then run
68
-
```bash
69
-
$ pnpm run build
70
-
```
71
-
to bundle javascript-files and move assets to the `dist/` directory.
72
97
73
-
Now run
74
98
```bash
75
-
$ pnpm run dist
99
+
pnpm run build
76
100
```
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.
101
+
102
+
to bundle javascript-files and move assets to the `dist/` directory.
0 commit comments