diff --git a/.gitignore b/.gitignore index c37c8bc..714a74e 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ mew/ node_modules test/mini-ci crash-server -build \ No newline at end of file +build +*.snap \ No newline at end of file diff --git a/docs/Nodegit.MD b/docs/Nodegit.MD new file mode 100644 index 0000000..27f2b72 --- /dev/null +++ b/docs/Nodegit.MD @@ -0,0 +1,27 @@ +NodeJS v16.x下安装nodegit +1. `apt-get install -y python2 python3 libkrb5-dev gcc openssl libssh2-1-dev g++ make` +2. `npm install nodegit` + +## docker-compose.yaml +```yaml +version: "3" +services: + wechat_devtools: + image: node:16.13.1-slim + volumes: + - .:/workspace + entrypoint: /workspace/docker/entrypoint +``` + +## entrypoint +```bash +#!/bin/bash +cd /workspace +apt update +apt-get install -y python2 python3 libkrb5-dev gcc openssl libssh2-1-dev g++ make + +echo "start" +npm install nodegit --registry=https://registry.npm.taobao.org + +npm uninstall nodegit +``` \ No newline at end of file diff --git a/tools/fix-cli-node b/tools/fix-cli-node index debc7d6..a770348 100755 --- a/tools/fix-cli-node +++ b/tools/fix-cli-node @@ -1,7 +1,6 @@ #!/usr/bin/env node const path = require("path"); const fs = require("fs"); -const { spawn } = require("child_process"); console.info("Patching CLI command");