Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CD

on:
release:
types:
- published

jobs:
cd:
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-cd.yaml@v3
secrets:
halo-pat: ${{ secrets.HALO_PAT }}
permissions:
contents: write
with:
skip-node-setup: true
app-id: app-oPNFQ
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
ci:
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-ci.yaml@v3
with:
skip-node-setup: true
104 changes: 0 additions & 104 deletions .github/workflows/workflow.yaml

This file was deleted.

10 changes: 8 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "io.freefair.lombok" version "8.0.1"
id "run.halo.plugin.devtools" version "0.0.7"
id "run.halo.plugin.devtools" version "0.5.0"
id 'java'
}

Expand All @@ -9,7 +9,9 @@ sourceCompatibility = JavaVersion.VERSION_17

repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://repo.spring.io/milestone' }
}

configurations.runtimeClasspath {
Expand All @@ -30,6 +32,10 @@ test {
useJUnitPlatform()
}

tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}

halo {
version = '2.11.2'
port = 8092
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
18 changes: 14 additions & 4 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
pluginManagement {
repositories {
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/spring-plugin' }
maven { url 'https://repo.spring.io/milestone' }
gradlePluginPortal()
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/run/halo/live2d/Live2dPlugin.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package run.halo.live2d;

import org.pf4j.PluginWrapper;
import org.springframework.stereotype.Component;
import run.halo.app.plugin.BasePlugin;
import run.halo.app.plugin.PluginContext;

/**
* @author LIlGG
Expand All @@ -11,7 +11,7 @@
@Component
public class Live2dPlugin extends BasePlugin {

public Live2dPlugin(PluginWrapper wrapper) {
super(wrapper);
public Live2dPlugin(PluginContext context) {
super(context);
}
}
13 changes: 9 additions & 4 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@ apiVersion: plugin.halo.run/v1alpha1
kind: Plugin
metadata:
name: PluginLive2d
annotations:
"store.halo.run/app-id": "app-oPNFQ"
spec:
enabled: true
requires: ">=2.4.0"
requires: ">=2.10.0"
author:
name: LIlGG
website: https://lixingyong.com
logo: logo.gif
settingName: plugin-live2d-settings
configMapName: plugin-live2d-configs
homepage: https://github.com/LIlGG/plugin-live2d
repo: https://github.com/LIlGG/plugin-live2d
homepage: https://www.halo.run/store/apps/app-oPNFQ
issues: https://github.com/LIlGG/plugin-live2d/issues
displayName: "live2d 看板娘"
description: "为主题增加一个萌萌哒的看板娘吧!ʕ̯•͡ˑ͓•̯᷅ʔ"
settingName: plugin-live2d-settings
configMapName: plugin-live2d-configs
license:
- name: "MIT"
url: "https://github.com/LIlGG/plugin-live2d/blob/main/LICENSE"