diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 64f31bae..9ba3fba4 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -34,8 +34,8 @@ jobs: run: | cd sealdice-core # echo "PROJECT_VERSION=dev-${COMMIT_ID::7}" >> "$GITHUB_OUTPUT"; - echo "PROJECT_VERSION=1.4.5" >> "$GITHUB_OUTPUT"; - echo "PROJECT_VERSION_DISPLAY=v1.4.5 v20240410" >> "$GITHUB_OUTPUT"; + echo "PROJECT_VERSION=1.4.6" >> "$GITHUB_OUTPUT"; + echo "PROJECT_VERSION_DISPLAY=v1.4.6 v20240810" >> "$GITHUB_OUTPUT"; - name: Get current time uses: Kaven-Universe/github-action-current-date-time@v1 @@ -80,13 +80,13 @@ jobs: - name: Download run: | mkdir lag - curl https://d1.sealdice.com/lagrange/0.0.3/Lagrange.OneBot_linux-arm64_7.0.zip?v=10 > lag/Lagrange.OneBot.linux-arm64.zip - curl https://d1.sealdice.com/lagrange/0.0.3/Lagrange.OneBot_linux-x64_7.0.zip?v=10 > lag/Lagrange.OneBot.linux-amd64.zip - curl https://d1.sealdice.com/lagrange/0.0.3/Lagrange.OneBot_win-x64_7.0.zip?v=10 > lag/Lagrange.OneBot.windows-amd64.zip - curl https://d1.sealdice.com/lagrange/0.0.3/Lagrange.OneBot_win-x86_7.0.zip?v=10 > lag/Lagrange.OneBot.windows-386.zip - curl https://d1.sealdice.com/lagrange/0.0.3/Lagrange.OneBot_osx-arm64_7.0.zip?v=10 > lag/Lagrange.OneBot.darwin-arm64.zip - curl https://d1.sealdice.com/lagrange/0.0.3/Lagrange.OneBot_osx-x64_7.0.zip?v=10 > lag/Lagrange.OneBot.darwin-amd64.zip - curl https://d1.sealdice.com/lagrange/0.0.3/Lagrange.OneBot_linux-musl-arm64_7.0.zip?v=10 > lag/Lagrange.OneBot.android-arm64.zip + curl https://d1.sealdice.com/lagrange/0.0.4/Lagrange.OneBot_linux-arm64_7.0.zip > lag/Lagrange.OneBot.linux-arm64.zip + curl https://d1.sealdice.com/lagrange/0.0.4/Lagrange.OneBot_linux-x64_7.0.zip > lag/Lagrange.OneBot.linux-amd64.zip + curl https://d1.sealdice.com/lagrange/0.0.4/Lagrange.OneBot_win-x64_7.0.zip > lag/Lagrange.OneBot.windows-amd64.zip + curl https://d1.sealdice.com/lagrange/0.0.4/Lagrange.OneBot_win-x86_7.0.zip > lag/Lagrange.OneBot.windows-386.zip + curl https://d1.sealdice.com/lagrange/0.0.4/Lagrange.OneBot_osx-arm64_7.0.zip > lag/Lagrange.OneBot.darwin-arm64.zip + curl https://d1.sealdice.com/lagrange/0.0.4/Lagrange.OneBot_osx-x64_7.0.zip > lag/Lagrange.OneBot.darwin-amd64.zip + curl https://d1.sealdice.com/lagrange/0.0.4/Lagrange.OneBot_linux-musl-arm64_7.0.zip > lag/Lagrange.OneBot.android-arm64.zip - name: Upload uses: actions/upload-artifact@v4 @@ -280,7 +280,16 @@ jobs: CGO_ENABLED: ${{ matrix.goos == 'windows' && 1 || 0 }} # 为了规避glibc兼容问题,linux上不使用cgo CGO_FLAGS: -Werror=unused-variable -Werror=implicit-function-declaration -O2 -H=windowsgui working-directory: ./sealdice-core - run: go build -o "output/$BINARY_NAME" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION_PRERELEASE= -X sealdice-core/dice.VERSION_BUILD_METADATA=+20240410 -X sealdice-core/dice.APP_CHANNEL=stable" . + run: go build -o "output/$BINARY_NAME" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION_PRERELEASE= -X sealdice-core/dice.VERSION_BUILD_METADATA=+20240810 -X sealdice-core/dice.APP_CHANNEL=stable" . + + - name: Run UPX + uses: crazy-max/ghaction-upx@v3 + if: matrix.musl == '' + with: + version: latest + files: ./sealdice-core/output/${{ env.BINARY_NAME }} + args: -9 -fq + - name: Upload Core uses: actions/upload-artifact@v4 with: @@ -348,7 +357,7 @@ jobs: CGO_ENABLED: 1 CGO_FLAGS: -Werror=unused-variable -Werror=implicit-function-declaration -O2 working-directory: ./sealdice-core - run: go build -o "output/sealdice-core" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION_PRERELEASE= -X sealdice-core/dice.VERSION_BUILD_METADATA=+20240410 -X sealdice-core/dice.APP_CHANNEL=stable" . + run: go build -o "output/sealdice-core" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION_PRERELEASE= -X sealdice-core/dice.VERSION_BUILD_METADATA=+20240810 -X sealdice-core/dice.APP_CHANNEL=stable" . - name: Upload Core uses: actions/upload-artifact@v4 @@ -419,7 +428,7 @@ jobs: CC: ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android33-clang CGO_FLAGS: -Werror=unused-variable -Werror=implicit-function-declaration -O2 working-directory: ./sealdice-core - run: go build -o "output/sealdice-core" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION_PRERELEASE= -X sealdice-core/dice.VERSION_BUILD_METADATA=+20240410 -X sealdice-core/dice.APP_CHANNEL=stable" . + run: go build -o "output/sealdice-core" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION_PRERELEASE= -X sealdice-core/dice.VERSION_BUILD_METADATA=+20240810 -X sealdice-core/dice.APP_CHANNEL=stable" . - name: Upload Core uses: actions/upload-artifact@v4 with: diff --git a/readme.md b/readme.md index 5d9934b8..23b4408f 100644 --- a/readme.md +++ b/readme.md @@ -37,4 +37,4 @@ dependabot 的配置在 [dependabot.yml](.github/dependabot.yml),自动批准 ## 关于 issue 和 pull request -你可以通过 fork 本项目并提交 pull request 的形式贡献代码 \ No newline at end of file +你可以通过 fork 本项目并提交 pull request 的形式贡献代码 diff --git a/sealdice-android b/sealdice-android index b2776254..c532f327 160000 --- a/sealdice-android +++ b/sealdice-android @@ -1 +1 @@ -Subproject commit b277625449a6b5fa595746fe15d244df1aa8091b +Subproject commit c532f327353bd7919d6f102ae9a9ff0a10cde519 diff --git a/sealdice-builtins b/sealdice-builtins index cbfc3d36..6c298ee2 160000 --- a/sealdice-builtins +++ b/sealdice-builtins @@ -1 +1 @@ -Subproject commit cbfc3d368225ded84cd39ffe1ec54563b5c785ba +Subproject commit 6c298ee2d61e6759564681af1670a7f990f218b0 diff --git a/sealdice-core b/sealdice-core index c5498a48..bfe1135f 160000 --- a/sealdice-core +++ b/sealdice-core @@ -1 +1 @@ -Subproject commit c5498a487dec114a83f3a4870e4c166194df6970 +Subproject commit bfe1135fe5eead4917b76c18e6102452af753058 diff --git a/sealdice-ui b/sealdice-ui index 64d14483..e3a53af5 160000 --- a/sealdice-ui +++ b/sealdice-ui @@ -1 +1 @@ -Subproject commit 64d144832d7e0b6d1f53bad993511e6866f82587 +Subproject commit e3a53af5ba8b9702e705040db5a3abc387f31888 diff --git a/update-submodules.sh b/update-submodules.sh index c7ae0f6c..1345dc13 100755 --- a/update-submodules.sh +++ b/update-submodules.sh @@ -4,5 +4,4 @@ git submodule update cd sealdice-builtins && git pull origin master && cd .. cd sealdice-ui && git pull origin master && cd .. cd sealdice-android && git pull origin master && cd .. -cd go-cqhttp && git pull origin master && cd .. cd sealdice-core && git pull origin master && cd ..