Update build script
This commit is contained in:
parent
2d1341f30b
commit
47afb0cd84
|
@ -34,6 +34,8 @@ jobs:
|
||||||
run: dotnet restore ${{ env.project }} --no-cache
|
run: dotnet restore ${{ env.project }} --no-cache
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet publish --nologo --no-restore --configuration=Release --framework=net6.0 --output=artifacts -p:Version=${{steps.vars.outputs.VERSION}} ${{ env.project }}
|
run: dotnet publish --nologo --no-restore --configuration=Release --framework=net6.0 --output=artifacts -p:Version=${{steps.vars.outputs.VERSION}} ${{ env.project }}
|
||||||
|
- name: Clean publish dll
|
||||||
|
run: cd artifacts && rm -rf MediaBrowser*.dll Microsoft*.dll Newtonsoft*.dll System*.dll Emby*.dll Jellyfin.Data*.dll Jellyfin.Extensions*.dll *.json *.pdb
|
||||||
- name: Compress build files
|
- name: Compress build files
|
||||||
uses: thedoctor0/zip-release@main
|
uses: thedoctor0/zip-release@main
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -14,12 +14,12 @@
|
||||||
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
|
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
|
||||||
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
|
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
|
||||||
<PackageReference Include="coverlet.collector" Version="3.1.2" />
|
<PackageReference Include="coverlet.collector" Version="3.1.2" />
|
||||||
<PackageReference Include="Jellyfin.Controller" Version="10.8.0" />
|
|
||||||
<PackageReference Include="Jellyfin.Model" Version="10.8.0" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Jellyfin.Plugin.MetaShark\Jellyfin.Plugin.MetaShark.csproj" />
|
<ProjectReference Include="..\Jellyfin.Plugin.MetaShark\Jellyfin.Plugin.MetaShark.csproj" >
|
||||||
|
<ExcludeAssets></ExcludeAssets>
|
||||||
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
|
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
|
||||||
<CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
|
||||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
@ -22,15 +21,8 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="AngleSharp" Version="0.17.1" />
|
<PackageReference Include="AngleSharp" Version="0.17.1" />
|
||||||
<PackageReference Include="AnitomySharp" Version="0.2.0" />
|
<PackageReference Include="AnitomySharp" Version="0.2.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="10.0.3">
|
<PackageReference Include="Jellyfin.Controller" Version="10.8.0" />
|
||||||
<ExcludeAssets>runtime</ExcludeAssets>
|
<PackageReference Include="Jellyfin.Model" Version="10.8.0" />
|
||||||
</PackageReference>
|
|
||||||
<PackageReference Include="Jellyfin.Controller" Version="10.8.0">
|
|
||||||
<ExcludeAssets>runtime</ExcludeAssets>
|
|
||||||
</PackageReference>
|
|
||||||
<PackageReference Include="Jellyfin.Model" Version="10.8.0">
|
|
||||||
<ExcludeAssets>runtime</ExcludeAssets>
|
|
||||||
</PackageReference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
10
README.md
10
README.md
|
@ -37,8 +37,12 @@ jellyfin电影元数据插件,影片信息只要从豆瓣获取,并由TheMov
|
||||||
3. Build plugin with following command.
|
3. Build plugin with following command.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ dotnet restore
|
dotnet restore
|
||||||
$ dotnet publish Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.MetaShark.csproj
|
dotnet publish --output=artifacts Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.MetaShark.csproj
|
||||||
|
|
||||||
|
# remove unused dll
|
||||||
|
cd artifacts
|
||||||
|
rm -rf MediaBrowser*.dll Microsoft*.dll Newtonsoft*.dll System*.dll Emby*.dll Jellyfin.Data*.dll Jellyfin.Extensions*.dll *.json *.pdb
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,7 +50,7 @@ $ dotnet publish Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.MetaShark.csproj
|
||||||
|
|
||||||
1. Build the plugin
|
1. Build the plugin
|
||||||
|
|
||||||
2. Create a folder, like `metashark` and copy `bin/Debug/net6.0/*.dll` into it
|
2. Create a folder, like `metashark` and copy `artifacts/*.dll` into it
|
||||||
|
|
||||||
3. Move folder `metashark` to jellyfin `data/plugin` folder
|
3. Move folder `metashark` to jellyfin `data/plugin` folder
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue