Skip to content

Commit

Permalink
feat: 1.4.6 release
Browse files Browse the repository at this point in the history
  • Loading branch information
fy0 committed Aug 9, 2024
1 parent f9ce1f1 commit 52679e0
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 18 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -54,6 +54,7 @@ jobs:
PROJECT_VERSION: ${{ steps.get-version.outputs.PROJECT_VERSION }}
PROJECT_VERSION_DISPLAY: ${{ steps.get-version.outputs.PROJECT_VERSION_DISPLAY }}
CUR_TIME: ${{ steps.currentTime.outputs.time }}
SEAL_TRUSTED_PRIVATE_KEY: ${{ secrets.SEAL_TRUSTED_PRIVATE_KEY }}

resources-download:
name: Download Related Resources
Expand All @@ -80,13 +81,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
Expand Down Expand Up @@ -193,6 +194,7 @@ jobs:
CUR_TIME: ${{needs.commit-num-check.outputs.CUR_TIME}}
CORE_CID: ${{needs.commit-num-check.outputs.CORE_CID}}
PROJECT_VERSION: ${{needs.commit-num-check.outputs.PROJECT_VERSION}}
SEAL_TRUSTED_PRIVATE_KEY: ${{ secrets.SEAL_TRUSTED_PRIVATE_KEY }}
strategy:
matrix:
# target: linux/amd64, linux/arm64, windows/386, windows/amd64
Expand Down Expand Up @@ -280,7 +282,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 -X 'sealdice-core/dice.DefaultSignUrl=${NT_SIGN_URL}' -X 'sealdice-core/dice.SealTrustedClientPrivateKey=${SEAL_TRUSTED_PRIVATE_KEY}'" .

- 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:
Expand All @@ -297,6 +308,7 @@ jobs:
CORE_CID: ${{needs.commit-num-check.outputs.CORE_CID}}
PROJECT_VERSION: ${{needs.commit-num-check.outputs.PROJECT_VERSION}}
CUR_TIME: ${{needs.commit-num-check.outputs.CUR_TIME}}
SEAL_TRUSTED_PRIVATE_KEY: ${{ secrets.SEAL_TRUSTED_PRIVATE_KEY }}
strategy:
matrix:
# target: darwin/amd64 darwin/arm64
Expand Down Expand Up @@ -348,7 +360,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 -X 'sealdice-core/dice.DefaultSignUrl=${NT_SIGN_URL}' -X 'sealdice-core/dice.SealTrustedClientPrivateKey=${SEAL_TRUSTED_PRIVATE_KEY}'" .

- name: Upload Core
uses: actions/upload-artifact@v4
Expand All @@ -366,6 +378,7 @@ jobs:
CORE_CID: ${{needs.commit-num-check.outputs.CORE_CID}}
PROJECT_VERSION: ${{needs.commit-num-check.outputs.PROJECT_VERSION}}
CUR_TIME: ${{needs.commit-num-check.outputs.CUR_TIME}}
SEAL_TRUSTED_PRIVATE_KEY: ${{ secrets.SEAL_TRUSTED_PRIVATE_KEY }}
steps:
# - name: Cache dist get
# id: cache-core-dist
Expand Down Expand Up @@ -419,7 +432,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 -X 'sealdice-core/dice.DefaultSignUrl=${NT_SIGN_URL}' -X 'sealdice-core/dice.SealTrustedClientPrivateKey=${SEAL_TRUSTED_PRIVATE_KEY}'" .
- name: Upload Core
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ dependabot 的配置在 [dependabot.yml](.github/dependabot.yml),自动批准

## 关于 issue 和 pull request

你可以通过 fork 本项目并提交 pull request 的形式贡献代码
你可以通过 fork 本项目并提交 pull request 的形式贡献代码
2 changes: 1 addition & 1 deletion sealdice-android
2 changes: 1 addition & 1 deletion sealdice-core
Submodule sealdice-core updated 79 files
+5 −16 .github/workflows/test_and_lint.yml
+1 −0 .gitignore
+0 −108 .goreleaser.yaml
+116 −32 api/api_bind.go
+39 −8 api/backup.go
+109 −10 api/conn.go
+4 −0 api/dice.go
+8 −4 api/js.go
+9 −1 api/misc.go
+1 −0 api/reply.go
+252 −0 api/resource.go
+47 −0 api/utils.go
+24 −0 api/verify.go
+47 −401 dice/builtin_commands.go
+146 −1 dice/cmd_parse.go
+206 −22 dice/config.go
+35 −13 dice/dice.go
+1 −0 dice/dice_advanced_config.go
+213 −109 dice/dice_backup.go
+34 −26 dice/dice_help.go
+221 −10 dice/dice_jsvm.go
+16 −5 dice/dice_manager.go
+54 −12 dice/ext.go
+9 −12 dice/ext_coc7.go
+26 −8 dice/ext_deck.go
+3 −3 dice/ext_dnd5e.go
+442 −22 dice/ext_fun.go
+66 −57 dice/ext_log.go
+81 −54 dice/ext_reply.go
+181 −121 dice/ext_reply_logic.go
+6 −6 dice/ext_story.go
+473 −72 dice/im_session.go
+6 −0 dice/im_vars.go
+47 −0 dice/js_api.go
+17 −2 dice/logger/logger.go
+28 −0 dice/model/attr.go
+21 −0 dice/model/group_info.go
+7 −0 dice/platform_adapter.go
+10 −4 dice/platform_adapter_dingtalk.go
+41 −24 dice/platform_adapter_discord.go
+43 −5 dice/platform_adapter_discord_helper.go
+23 −19 dice/platform_adapter_dodo.go
+31 −7 dice/platform_adapter_gocq.go
+35 −21 dice/platform_adapter_gocq_actions.go
+10 −3 dice/platform_adapter_gocq_helper.go
+16 −5 dice/platform_adapter_http.go
+31 −23 dice/platform_adapter_kook.go
+122 −9 dice/platform_adapter_lagrange_helper.go
+10 −4 dice/platform_adapter_minecraft.go
+22 −17 dice/platform_adapter_official_qq.go
+4 −0 dice/platform_adapter_qq_helper.go
+14 −7 dice/platform_adapter_red.go
+15 −9 dice/platform_adapter_satori.go
+9 −4 dice/platform_adapter_sealchat.go
+10 −4 dice/platform_adapter_slack.go
+19 −12 dice/platform_adapter_telegram.go
+10 −5 dice/platform_adapter_walleq.go
+2 −7 dice/storylog/upload_v1.go
+14 −0 dice/utils.go
+72 −0 dice/verify.go
+52 −42 go.mod
+79 −48 go.sum
+41 −7 main.go
+129 −85 message/message.go
+1 −1 sealdice-ui
+1 −1 tray_darwin.go
+5 −3 tray_windows.go
+2 −2 update.go
+1 −1 update_updater.go
+45 −0 utils/crypto/common.go
+52 −0 utils/crypto/ecdsa.go
+30 −0 utils/crypto/rsa.go
+10 −0 utils/crypto/sha1.go
+17 −0 utils/crypto/sha512.go
+0 −83 utils/crypto/utils_rsa.go
+10 −0 utils/filename.go
+17 −0 utils/procs/killprocs_android.go
+11 −0 utils/procs/killprocs_others.go
+2 −1 utils/procs/procs.go
2 changes: 1 addition & 1 deletion sealdice-ui
Submodule sealdice-ui updated 66 files
+308 −0 .eslintrc-auto-import.json
+1 −0 .eslintrc.cjs
+13 −8 .github/workflows/build.yml
+11 −6 .github/workflows/check.yml
+1 −1 .gitignore
+0 −1 .npmrc
+4 −4 README.md
+905 −0 auto-imports.d.ts
+48 −27 components.d.ts
+3 −2 index.html
+0 −6,264 package-lock.json
+36 −22 package.json
+5,484 −0 pnpm-lock.yaml
+7 −0 postcss.config.mjs
+15 −495 src/App.vue
+380 −0 src/Main.vue
+1 −7 src/backend.ts
+150 −0 src/components/Menu.vue
+8 −4 src/components/PageAbout.vue
+149 −23 src/components/PageConnectInfoItems.vue
+201 −81 src/components/PageCustomText.vue
+326 −0 src/components/PageHome.vue
+0 −178 src/components/PageLog.vue
+0 −17 src/components/PageMisc.vue
+0 −18 src/components/PageMod.vue
+28 −0 src/components/customText/CustomTextBox.vue
+51 −4 src/components/misc/PageMiscAdvancedSettings.vue
+155 −19 src/components/misc/PageMiscBackup.vue
+20 −0 src/components/misc/PageMiscBan.vue
+0 −361 src/components/misc/PageMiscBanList.vue
+36 −28 src/components/misc/PageMiscGroup.vue
+12 −6 src/components/misc/PageMiscSettings.vue
+91 −0 src/components/misc/banList/BanConfig.vue
+249 −0 src/components/misc/banList/BanList.vue
+0 −3 src/components/mod/PageCensor.vue
+66 −25 src/components/mod/PageCustomReply.vue
+6 −8 src/components/mod/PageHelpDoc.vue
+344 −254 src/components/mod/PageJs.vue
+74 −40 src/components/mod/PageMiscDeck.vue
+75 −49 src/components/mod/PageStory.vue
+3 −5 src/components/mod/censor/CensorConfig.vue
+1 −2 src/components/mod/censor/CensorFiles.vue
+1 −3 src/components/mod/censor/CensorLog.vue
+2 −2 src/components/mod/censor/CensorWordTip.vue
+73 −26 src/components/mod/censor/CensorWords.vue
+0 −1 src/components/mod/censor/censor.ts
+1 −2 src/components/mod/helpdoc/HelpConfigTags.vue
+0 −228 src/components/mod/nested.vue
+2 −4 src/components/mod/story/StoryBackup.vue
+214 −0 src/components/tool/PageResource.vue
+36 −29 src/components/tool/PageTest.vue
+96 −0 src/components/utils/custom-reply-condition.vue
+0 −1 src/components/utils/diff-viewer.vue
+212 −0 src/components/utils/foldable-card.vue
+181 −0 src/components/utils/nested.vue
+62 −0 src/components/utils/resource-render.vue
+22 −10 src/main.ts
+59 −0 src/router/index.ts
+213 −98 src/store/index.ts
+51 −5 src/styles/index.css
+34 −11 src/type.d.ts
+12 −0 tailwind.config.ts
+28 −0 tsconfig.app.json
+8 −18 tsconfig.json
+19 −0 tsconfig.node.json
+47 −16 vite.config.ts
1 change: 0 additions & 1 deletion update-submodules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..

0 comments on commit 52679e0

Please sign in to comment.