Skip to content

Update Live2DCSharpSDK #18

Update Live2DCSharpSDK

Update Live2DCSharpSDK #18

Workflow file for this run

name: 插件构建
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- 'releases/**'
# Sequence of patterns matched against refs/tags
tags:
- '*'
jobs:
build-plugins:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 设置.NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.403
- name: 更新源码
working-directory: ./
run: |
chmod a+x ./build/update.sh
./build/update.sh
- name: 构建 源码
working-directory: ./
run: |
chmod a+x ./build/build-plugin.sh
./build/build-plugin.sh
- name: 打包
working-directory: ./src/build_out/Debug/net8.0/plugins/
run: |
zip -r ../AnalogClockPlugin.zip AnalogClockPlugin
zip -r ../CalendarPlugin.zip CalendarPlugin
zip -r ../WeatherPlugin.zip WeatherPlugin
zip -r ../ClockPlugin.zip ClockPlugin
zip -r ../CoreLib.zip CoreLib
zip -r ../PGLauncherPlugin.zip PGLauncherPlugin
zip -r ../PGColorMCPlugin.zip PGColorMCPlugin
zip -r ../OneWordPlugin.zip OneWordPlugin
zip -r ../BmPlugin.zip BmPlugin
zip -r ../MonitorPlugin.zip MonitorPlugin
zip -r ../Live2DPlugin.zip Live2DPlugin
- name: 上传 colordesktop-plugin-AnalogClockPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-AnalogClockPlugin"
path: src/build_out/Debug/net8.0/AnalogClockPlugin.zip
- name: 上传 colordesktop-plugin-CalendarPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-CalendarPlugin"
path: src/build_out/Debug/net8.0/CalendarPlugin.zip
- name: 上传 colordesktop-plugin-ClockPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-ClockPlugin"
path: src/build_out/Debug/net8.0/ClockPlugin.zip
- name: 上传 colordesktop-plugin-CoreLib
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-CoreLib"
path: src/build_out/Debug/net8.0/CoreLib.zip
- name: 上传 colordesktop-plugin-WeatherPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-WeatherPlugin"
path: src/build_out/Debug/net8.0/WeatherPlugin.zip
- name: 上传 colordesktop-plugin-PGLauncherPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-PGLauncherPlugin"
path: src/build_out/Debug/net8.0/PGLauncherPlugin.zip
- name: 上传 colordesktop-plugin-PGColorMCPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-PGColorMCPlugin"
path: src/build_out/Debug/net8.0/PGColorMCPlugin.zip
- name: 上传 colordesktop-plugin-OneWordPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-OneWordPlugin"
path: src/build_out/Debug/net8.0/OneWordPlugin.zip
- name: 上传 colordesktop-plugin-BmPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-BmPlugin"
path: src/build_out/Debug/net8.0/BmPlugin.zip
- name: 上传 colordesktop-plugin-MonitorPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-MonitorPlugin"
path: src/build_out/Debug/net8.0/MonitorPlugin.zip
- name: 上传 colordesktop-plugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin"
path: src/build_out/Debug/net8.0/plugins/**