From e24de7647a2e0c592b1004abff0e27a0e444a800 Mon Sep 17 00:00:00 2001 From: zhangyuheng Date: Mon, 10 Jun 2024 20:30:16 +0800 Subject: [PATCH] finish build script --- .gitea/workflows/build.yml | 6 ++++-- .github/workflows/build.yml | 4 +++- .idea/misc.xml | 2 +- .idea/vcs.xml | 2 -- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 0e6b777..0307ae0 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -26,7 +26,9 @@ jobs: - name: "Apply Patches" run: ./gradlew applyPatches - name: "Build Mojmap" - run: ./gradlew createReobfPaperclipJar + run: | + ./gradlew createReobfPaperclipJar + ./gradlew createMojmapPaperclipJar - name: "Copy jar to staging" run: mkdir staging && cp build/libs/*.jar staging - name: "Setup go for release script" @@ -38,7 +40,7 @@ jobs: - name: "Release" uses: https://ssl.lunadeer.cn:14446/zhangyuheng/release-action@main with: - note: " - 建议下载 `DeerFolia-paperclip-xxx.jar` 前缀的版本。" + note: " - 建议下载 `DeerFolia-paperclip-xxx-mojmap.jar` 版本。\n - 如果有插件无法运行可尝试 `DeerFolia-paperclip-xxx-reobf.jar`。" files: |- staging/*.jar api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 09a530d..ab1b77f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,9 @@ jobs: - name: "Apply Patches" run: ./gradlew applyPatches - name: "Build Mojmap" - run: ./gradlew createMojmapPaperclipJar + run: | + ./gradlew createReobfPaperclipJar + ./gradlew createMojmapPaperclipJar - name: "Copy jar to staging" run: mkdir staging && cp build/libs/*.jar staging - uses: "softprops/action-gh-release@v2" diff --git a/.idea/misc.xml b/.idea/misc.xml index 78b34f6..3e260f1 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 2686f5b..0798d94 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,8 +2,6 @@ - - \ No newline at end of file