Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Forgot to include .dll files in release package
Browse files Browse the repository at this point in the history
  • Loading branch information
imaginary-upside committed Jan 30, 2021
1 parent 0f7a21d commit 26e7570
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
4 changes: 2 additions & 2 deletions JellyfinJav/JellyfinJav.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<TargetFramework>net50</TargetFramework>
<AssemblyVersion>2020.01.30.0</AssemblyVersion>
<FileVersion>2020.01.30.0</FileVersion>
<AssemblyVersion>2020.01.30.1</AssemblyVersion>
<FileVersion>2020.01.30.1</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
8 changes: 8 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
"sourceUrl": "https://github.com/imaginary-upside/JellyfinJav/releases/download/2020.01.30.0/jellyfinjav_2020.01.30.0.zip",
"timestamp": "2021-01-30T11:08:22Z",
"version": "2020.01.30.0"
},
{
"checksum": "668680e14eced5ff6dda55da8052d21d",
"changelog": "",
"targetAbi": "10.7.0.0",
"sourceUrl": "https://github.com/imaginary-upside/JellyfinJav/releases/download/2020.01.30.1/jellyfinjav_2020.01.30.1.zip",
"timestamp": "2021-01-30T11:39:27Z",
"version": "2020.01.30.1"
}
]
}
Expand Down
17 changes: 16 additions & 1 deletion package.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from hashlib import md5
import json
import re
import subprocess
import shutil

tree = ET.parse("JellyfinJav/JellyfinJav.csproj")
version = tree.find("./PropertyGroup/AssemblyVersion").text
Expand All @@ -27,8 +29,21 @@
Path(f"release/{version}").mkdir(parents=True, exist_ok=True)
print(json.dumps(meta, indent=4), file=open(f"release/{version}/meta.json", "w"))

subprocess.run([
"dotnet",
"build",
"JellyfinJav/JellyfinJav.csproj",
"--configuration",
"Release"
])

shutil.copy("JellyfinJav/bin/Release/net50/JellyfinJav.dll", f"release/{version}/")
shutil.copy(f"{Path.home()}/.nuget/packages/anglesharp/0.14.0/lib/netstandard2.0/AngleSharp.dll", f"release/{version}/")

shutil.make_archive(f"release/jellyfinjav_{version}", "zip", f"release/{version}/")

entry = {
"checksum": md5(open(f"release/{version}/meta.json", "rb").read()).hexdigest(),
"checksum": md5(open(f"release/jellyfinjav_{version}.zip", "rb").read()).hexdigest(),
"changelog": "",
"targetAbi": f"{targetAbi}.0",
"sourceUrl": f"https://github.com/imaginary-upside/JellyfinJav/releases/download/{version}/jellyfinjav_{version}.zip",
Expand Down

0 comments on commit 26e7570

Please sign in to comment.