From f1364c66ae7a860601e9e8eeb46b71f54d006ab3 Mon Sep 17 00:00:00 2001 From: cyhhao Date: Fri, 16 Dec 2022 17:25:38 +0800 Subject: [PATCH] add linux --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 6bf847f..c2cca43 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,10 @@ }, "scripts": { "build": "yarn clean && tsc", + "install-linux": "yarn pkg:linux && cp ./bin/index-linux-x64 /usr/local/bin/git-remote-git3", "install-mac": "yarn pkg && cp ./bin/index-macos-x64 /usr/local/bin/git-remote-git3", "install-mac-arm": "yarn pkg && cp ./bin/index-macos-arm64 /usr/local/bin/git-remote-git3", + "pkg:linux": "yarn build && pkg ./dist/index.js --out-path bin/ --targets node18-linux-x64", "pkg": "yarn build && pkg ./dist/index.js --out-path bin/ --targets node18-macos-x64,node18-macos-arm64,node18-linux-x64,node18-win-x64", "build:git3": "esbuild ./src/git3/index.js --bundle --platform=node --target=es6 --outfile=dist/git3.js", "pkg:git3": "yarn build:git3 && pkg dist/git3.js --output bin/git3 && cp bin/git3 /usr/local/bin/git3",