From f87377b3656e764c1f4fad4a627f1db73b88c9fe Mon Sep 17 00:00:00 2001 From: zhengyi Date: Tue, 19 Dec 2023 00:59:39 +0800 Subject: [PATCH] :recycle: Remove vditor assets from this repo use download_dist.sh to download assets --- .gitignore | 2 +- README.md | 6 ++++++ download_dist.sh | 10 ++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 download_dist.sh diff --git a/.gitignore b/.gitignore index 7e9e593..4a0fbdb 100755 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,7 @@ log/ nbproject/private/ build/ nbbuild/ -./dist/ +dist/ nbdist/ .nb-gradle/ diff --git a/README.md b/README.md index 001d76e..be71d36 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,12 @@ git clone git@github.com:{your_github_id}/vditor-mde.git cd path/to/plugin-starter ``` +```bash +# 下载依赖包 +chmod a+x download_dist.sh +./download_dist.sh +``` + ```bash # macOS / Linux ./gradlew pnpmInstall diff --git a/download_dist.sh b/download_dist.sh new file mode 100755 index 0000000..135eead --- /dev/null +++ b/download_dist.sh @@ -0,0 +1,10 @@ +#!/bin/zsh + +cd src/main/resources/static +pwd +curl -o vditor.tgz \ + https://git.mczhengyi.top/zhengyi/-/packages/npm/@zhengyi%2Fvditor/3.9.7/files/248 +tar -xzvf vditor.tgz +mv package/dist . +rm -rf package +rm -f vditor.tgz