From bccf5b6a2a4b07b16288f1c4e3a30a7776c02bdd Mon Sep 17 00:00:00 2001 From: zhangziqian <84625273+Musicminion@users.noreply.github.com> Date: Sat, 10 Feb 2024 07:16:05 +0000 Subject: [PATCH] Fix patch script --- .github/workflows/overleaf.yml | 23 +---------------------- patch.sh | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 22 deletions(-) create mode 100755 patch.sh diff --git a/.github/workflows/overleaf.yml b/.github/workflows/overleaf.yml index 05960d2..403ab8a 100644 --- a/.github/workflows/overleaf.yml +++ b/.github/workflows/overleaf.yml @@ -23,28 +23,7 @@ jobs: cache-dependency-path: overleaf/package-lock.json - name: "Patch Files" run: | - cp -r ./patches/config-clsi-match/* ./overleaf - cd ./overleaf && ./run.sh && cd .. - cp -r ./patches/config-web-setting/* ./overleaf - cd ./overleaf && ./run.sh && cd .. - cp -r ./patches/cron-setting/* ./overleaf - cd ./overleaf && ./run.sh && cd .. - cp -r ./patches/unlock-50M-limit/* ./overleaf - cd ./overleaf && ./run.sh && cd .. - cp -r ./patches/nginx-learn-config/* ./overleaf - cd ./overleaf && ./run.sh && cd .. - cp -r ./patches/short-key-title/* ./overleaf - cd ./overleaf && ./run.sh && cd .. - cp -r ./patches/symbol-palette/* ./overleaf - cd ./overleaf && ./run.sh && cd .. - cp -r ./patches/track-change/* ./overleaf - cd ./overleaf && ./run.sh && cd .. - # cp -r ./patches/references/* ./overleaf - # cd ./overleaf && ./run.sh && cd .. - cp ./patches/more-theme/* ./overleaf - cd ./overleaf && ./run.sh && rm -rf ./run.sh && cd .. - # cd ./overleaf && rm -rf ./package-lock.json && npm install --package-lock-only --ignore-scripts - # echo ./package-lock.json + ./patch.sh - name: "Make CE Docker Image" run: | cd ./overleaf/server-ce && make diff --git a/patch.sh b/patch.sh new file mode 100755 index 0000000..1ea8709 --- /dev/null +++ b/patch.sh @@ -0,0 +1,22 @@ +# /bin/bash +cp -r ./patches/config-clsi-match/* ./overleaf +cd ./overleaf && ./run.sh && cd .. +cp -r ./patches/config-web-setting/* ./overleaf +cd ./overleaf && ./run.sh && cd .. +cp -r ./patches/cron-setting/* ./overleaf +cd ./overleaf && ./run.sh && cd .. +cp -r ./patches/unlock-50M-limit/* ./overleaf +cd ./overleaf && ./run.sh && cd .. +cp -r ./patches/nginx-learn-config/* ./overleaf +cd ./overleaf && ./run.sh && cd .. +cp -r ./patches/short-key-title/* ./overleaf +cd ./overleaf && ./run.sh && cd .. +cp -r ./patches/symbol-palette/* ./overleaf +cd ./overleaf && ./run.sh && cd .. +cp -r ./patches/track-change/* ./overleaf +cd ./overleaf && ./run.sh && cd .. +cp -r ./patches/references/* ./overleaf +cd ./overleaf && ./run.sh && cd .. +cp ./patches/more-theme/* ./overleaf +cd ./overleaf && ./run.sh && rm -rf ./run.sh && cd .. +cd ./overleaf && npm install --package-lock-only --ignore-scripts