From 615e5dd118b129a54c6e379200196e1d0b8c5266 Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Tue, 30 Aug 2022 15:53:40 +0800 Subject: [PATCH] fix: put a placeholder file in dist [skip ci] --- .gitignore | 5 +++-- build.sh | 3 ++- public/dist/README.md | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 public/dist/README.md diff --git a/.gitignore b/.gitignore index eddfa4e7..71ec18a5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ .idea/ .DS_Store output/ -dist/ +/dist/ # Binaries for programs and plugins *.exe @@ -25,4 +25,5 @@ bin/* data/ log/ lang/ -public/dist/ \ No newline at end of file +public/dist/* +!public/dist/README.md \ No newline at end of file diff --git a/build.sh b/build.sh index 1b11a34f..54a64a02 100644 --- a/build.sh +++ b/build.sh @@ -27,7 +27,8 @@ ldflags="\ FetchWebBuild() { curl -L https://codeload.github.com/alist-org/web-dist/tar.gz/refs/heads/main -o web-dist-main.tar.gz tar -zxvf web-dist-main.tar.gz - mv web-dist-main/dist public + rm -rf public/dist + mv -f web-dist-main/dist public rm -rf web-dist-main web-dist-main.tar.gz } diff --git a/public/dist/README.md b/public/dist/README.md new file mode 100644 index 00000000..d8709fb5 --- /dev/null +++ b/public/dist/README.md @@ -0,0 +1 @@ +## Put dist of frontend here. \ No newline at end of file