Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fcdb9a0

Browse files
committedDec 14, 2020
ci: Add support for FreeBSD to the build process
- Removed electron from lib/vscode but kept the types. - electron doesn't support FreeBSD. - Added docs on dependencies of FreeBSD when installing via npm module. - For now, we're going to be shipping a dynamically linked version of node which may cause problems but we can fix that later. Updates #1826 Updates #1880 Updates #2320 Updates #2349
1 parent e9ce757 commit fcdb9a0

File tree

4 files changed

+14271
-5
lines changed

4 files changed

+14271
-5
lines changed
 

‎ci/dev/vscode.patch

Lines changed: 14257 additions & 3 deletions
Large diffs are not rendered by default.

‎ci/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ arch() {
3838
aarch64)
3939
echo arm64
4040
;;
41-
x86_64)
41+
x86_64 | amd64)
4242
echo amd64
4343
;;
4444
*)

‎ci/steps/release-packages.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ main() {
77
NODE_VERSION=v12.18.4
88
NODE_OS="$(uname | tr '[:upper:]' '[:lower:]')"
99
NODE_ARCH="$(uname -m | sed 's/86_64/64/; s/aarch64/arm64/')"
10-
curl -L "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH.tar.gz" | tar -xz
10+
if [ "$NODE_OS" = "freebsd" ]; then
11+
mkdir -p "$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin"
12+
cp "$(which node)" "$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin"
13+
else
14+
curl -L "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH.tar.gz" | tar -xz
15+
fi
1116
PATH="$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin:$PATH"
1217

1318
# https://github.com/actions/upload-artifact/issues/38

‎doc/npm.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ npm config set python python2
4040
```bash
4141
xcode-select --install
4242
```
43+
44+
## FreeBSD
45+
46+
```sh
47+
pkg install -y git python npm-node12 yarn-node12 pkgconf
48+
pkg install -y libsecret libxkbfile libx11 libinotify
49+
```

0 commit comments

Comments
 (0)
Please sign in to comment.