diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e740dd2..2b28f0e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -34,6 +34,8 @@ jobs: run: dotnet restore ${{ env.project }} --no-cache - name: Build 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 uses: thedoctor0/zip-release@main with: diff --git a/Jellyfin.Plugin.MetaShark.Test/Jellyfin.Plugin.MetaShark.Test.csproj b/Jellyfin.Plugin.MetaShark.Test/Jellyfin.Plugin.MetaShark.Test.csproj index f78e44e..022da1b 100644 --- a/Jellyfin.Plugin.MetaShark.Test/Jellyfin.Plugin.MetaShark.Test.csproj +++ b/Jellyfin.Plugin.MetaShark.Test/Jellyfin.Plugin.MetaShark.Test.csproj @@ -14,12 +14,12 @@ - - - + + + diff --git a/Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.MetaShark.csproj b/Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.MetaShark.csproj index 77d9b94..cf11391 100644 --- a/Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.MetaShark.csproj +++ b/Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.MetaShark.csproj @@ -8,7 +8,6 @@ enable AllEnabledByDefault ../jellyfin.ruleset - true @@ -22,15 +21,8 @@ - - runtime - - - runtime - - - runtime - + + diff --git a/README.md b/README.md index ab3847d..fa82a66 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,12 @@ jellyfin电影元数据插件,影片信息只要从豆瓣获取,并由TheMov 3. Build plugin with following command. ```sh -$ dotnet restore -$ dotnet publish Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.MetaShark.csproj +dotnet restore +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 -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