Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
update install script
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Feb 4, 2022
1 parent 60028c1 commit c9dbbe1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
lib
bin
dist
temp

Expand Down
4 changes: 3 additions & 1 deletion install.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const { existsSync } = require('fs')

async function install() {
const {
downloadRelease,
Expand All @@ -12,6 +14,6 @@ async function install() {
await downloadRelease(version)
}

if (__dirname.includes('node_modules')) {
if (!existsSync(__dirname + '/bin')) {
install()
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "koishi-plugin-gocqhttp",
"description": "go-cqhttp launcher for Koishi",
"version": "1.0.1",
"version": "2.0.0",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -31,10 +31,11 @@
"koishi"
],
"peerDependencies": {
"@koishijs/plugin-adapter-onebot": "^4.0.0",
"koishi": "^4.0.1"
"@koishijs/plugin-adapter-onebot": "^4.0.1",
"koishi": "^4.1.2"
},
"devDependencies": {
"@koishijs/plugin-console": "^2.1.0",
"@octokit/openapi-types": "^11.2.0",
"@types/cross-spawn": "^6.0.2",
"@types/tar": "^6.1.1"
Expand Down

0 comments on commit c9dbbe1

Please sign in to comment.