-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.更新依赖 mirai 从 2.8.3 更新到 2.10.0 2.更新依赖 kotlin 从 1.5.30 更新到 1.6.10 3.更新 github ci 自动编译版本标签 5.添加版权信息 4.优化文档
- Loading branch information
Showing
19 changed files
with
177 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Publish release version | ||
|
||
on: | ||
# 触发条件 | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
# 任务名称 | ||
build: | ||
name: Publish mirai plugin | ||
# 运行环境 | ||
runs-on: ubuntu-latest | ||
# 步骤 | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
# 设置JDK 版本 | ||
- name: Setup JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
# 获取标签的版本设置到 output | ||
- name: Set output | ||
id: vars | ||
run: echo ::set-output name=version::$(echo ${GITHUB_REF:11}) | ||
# 设置权限 | ||
- name: Setup gradlew permission | ||
run: chmod +x gradlew | ||
# 编译插件 | ||
- name: Build mirai plugin | ||
run: ./gradlew buildPlugin | ||
# 将文件上传到 GitHub release | ||
- name: Upload jar to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: build/mirai/mirai-console-minecraft-plugin-${{ steps.vars.outputs.version }}.mirai.jar | ||
tag: ${{ github.ref }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,19 @@ | ||
# Mirai | ||
# mirai | ||
bots/ | ||
config/ | ||
data/ | ||
plugins/ | ||
|
||
|
||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
target/ | ||
build/ | ||
|
||
.idea/ | ||
*.iml | ||
mirai.iml | ||
/.idea/ | ||
.idea/* | ||
/.idea/* | ||
|
||
/test | ||
|
||
.gradle/ | ||
|
||
local.properties | ||
|
||
# Maven publishing credits | ||
keys.properties | ||
/plugins/ | ||
# Gradle | ||
.gradle | ||
**/build/ | ||
!src/**/build/ | ||
|
||
token.txt | ||
bintray.user.txt | ||
bintray.key.txt | ||
# Idea | ||
.idea/*.xml | ||
*.iml | ||
!.idea/copyright/ | ||
|
||
# For gpg sign | ||
/build-gpg-sign | ||
# Name for IDEA direction sorting | ||
build-secret-keys/ | ||
# mac os | ||
.DS_Store |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/top/limbang/mirai/minecraft/MinecraftPluginCompositeCommand.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/top/limbang/mirai/minecraft/MinecraftPluginData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/top/limbang/mirai/minecraft/extension/ByteArrayStreamExtension.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/top/limbang/mirai/minecraft/extension/ImageExtension.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/top/limbang/mirai/minecraft/service/ImageService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/top/limbang/mirai/minecraft/service/ServerService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
# | ||
# Copyright 2020-2022 limbang and contributors. | ||
# | ||
# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证. | ||
# Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link. | ||
# | ||
# https://github.com/limbang/mirai-console-minecraft-plugin/blob/master/LICENSE | ||
# | ||
|
||
top.limbang.mirai.minecraft.MiraiConsoleMinecraftPlugin |