Skip to content

Commit

Permalink
update linux pack script
Browse files Browse the repository at this point in the history
  • Loading branch information
yatli committed Apr 15, 2020
1 parent 106b72e commit 200cca7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
14 changes: 11 additions & 3 deletions pack.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
# !/bin/bash
plat="win10-x64 linux-x64 osx.10.11-x64"

rm -rf ./bin
rm -rf ./out
mkdir -p ./out/server
rm -rf ./publish

npm install
npm run compile
npm pack

mkdir -p ./publish
mkdir -p ./bin
mv *.tgz ./publish/

for i in $plat
do
dotnet publish -f netcoreapp3.1 -c Release --self-contained \
-r $i src/FSharpLanguageServer -o ./out/server/$i
-r $i src/FSharpLanguageServer -o ./bin/$i
pushd ./bin/$i
zip ../../publish/coc-fsharp-$i.zip ./*
popd
done

npm pack
13 changes: 10 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Yatao Li",
"license": "MIT",
"icon": "Icon512.png",
"version": "0.1.63",
"version": "0.1.64",
"publisher": "yatli",
"repository": {
"type": "git",
Expand Down Expand Up @@ -144,6 +144,7 @@
},
"extensionDependencies": [],
"dependencies": {
"@types/follow-redirects": "^1.8.0",
"coc-utils": "0.0.12",
"vscode-jsonrpc": ">=4.0.0",
"vscode-languageserver-protocol": ">=3.14.0"
Expand Down

0 comments on commit 200cca7

Please sign in to comment.