From 3426a4d4b8d6cfb3098c86e7f0df30a9b5f0292b Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Sat, 31 Aug 2024 09:42:07 +0800 Subject: [PATCH] Quick update to do mkdir saved before main also include the saved folder in the release zips since i apparently forgot to do that --- .github/workflows/build.yml | 10 +++++----- restore.sh | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b084b1..bd57563 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,7 +45,7 @@ jobs: rm -r ./bin/linux - name: Zip macos files - run: zip -r ${{ github.event.repository.name }}_macos_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.sh README.md + run: zip -r ${{ github.event.repository.name }}_macos_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.sh README.md saved/ - name: Move macos binaries run: | @@ -54,7 +54,7 @@ jobs: cp -R ./exclude/bin/linux/x86_64 ./bin/linux - name: Zip linux files - run: zip -r ${{ github.event.repository.name }}_linux_x86_64_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.sh README.md + run: zip -r ${{ github.event.repository.name }}_linux_x86_64_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.sh README.md saved/ - name: Move linux binaries and other files run: | @@ -62,7 +62,7 @@ jobs: cp -R ./exclude/bin/linux/arm64 ./bin/linux - name: Zip linux arm64 files - run: zip -r ${{ github.event.repository.name }}_linux_arm64_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.sh README.md + run: zip -r ${{ github.event.repository.name }}_linux_arm64_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.sh README.md saved/ - name: Move linux arm64 binaries and other files run: | @@ -70,7 +70,7 @@ jobs: cp -R ./exclude/bin/linux/armhf ./bin/linux - name: Zip linux armhf files - run: zip -r ${{ github.event.repository.name }}_linux_armhf_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.sh README.md + run: zip -r ${{ github.event.repository.name }}_linux_armhf_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.sh README.md saved/ - name: Move linux armhf binaries and other files run: rm -r ./bin/linux @@ -79,7 +79,7 @@ jobs: run: cp -R ./exclude/bin/* ./bin - name: Zip complete files - run: zip -r ${{ github.event.repository.name }}_complete_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.cmd restore.sh README.md + run: zip -r ${{ github.event.repository.name }}_complete_v${{ env.DATE }}.${{ env.COUNT }}.zip bin/ LICENSE resources/ restore.cmd restore.sh README.md saved/ - name: Create this file to get latest git hash run: | diff --git a/restore.sh b/restore.sh index 586a066..eceec1b 100755 --- a/restore.sh +++ b/restore.sh @@ -8719,6 +8719,7 @@ fi othertmp=$(ls "$(dirname "$0")" | grep -c tmp) mkdir "$(dirname "$0")/tmp$$" pushd "$(dirname "$0")/tmp$$" >/dev/null +mkdir ../saved 2>/dev/null main