Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/e83f6d6ec748f67ce4fcdb4acf2b2ef95adeeadc
You should set ROOT_URL correctly, otherwise the web may not work correctly.
7 changed files with
57 additions and
4 deletions
@ -147,19 +147,42 @@ jobs:
displayName : 'Publish NuGet packages'
dependsOn:
- BuildPackage
condition : and( succeeded('BuildPackage'), startsWith(variables['Build.SourceBranch'], 'refs/tags') )
condition : succeeded('BuildPackage')
pool:
vmImage : 'ubuntu-latest'
steps:
- task : NuGetCommand@2
- task : DotNetCoreCLI@2
displayName : 'Build Stable Nuget packages'
condition : startsWith(variables['Build.SourceBranch'], 'refs/tags')
inputs:
command : 'pack'
packagesToPack : Jellyfin.Data/Jellyfin.Data.csproj;MediaBrowser.Common/MediaBrowser.Common.csproj;MediaBrowser.Controller/MediaBrowser.Controller.csproj;MediaBrowser.Model/MediaBrowser.Model.csproj;Emby.Naming/Emby.Naming.csproj
packDestination : '$(Build.ArtifactStagingDirectory)'
packagesToPack : 'Jellyfin.Data/Jellyfin.Data.csproj;MediaBrowser.Common/MediaBrowser.Common.csproj;MediaBrowser.Controller/MediaBrowser.Controller.csproj;MediaBrowser.Model/MediaBrowser.Model.csproj;Emby.Naming/Emby.Naming.csproj'
versioningScheme : 'off'
- task : DotNetCoreCLI@2
displayName : 'Build Unstable Nuget packages'
inputs:
command : 'custom'
projects : |
Jellyfin.Data/Jellyfin.Data.csproj
MediaBrowser.Common/MediaBrowser.Common.csproj
MediaBrowser.Controller/MediaBrowser.Controller.csproj
MediaBrowser.Model/MediaBrowser.Model.csproj
Emby.Naming/Emby.Naming.csproj
custom : 'pack'
arguments : '--version-suffix $(Build.BuildNumber) -o $(Build.ArtifactStagingDirectory)'
- task : PublishBuildArtifacts@1
displayName : 'Publish Nuget packages'
inputs:
pathToPublish : $(Build.ArtifactStagingDirectory)
artifactName : Jellyfin Nuget Packages
- task : NuGetCommand@2
displayName : 'Push Nuget packages to feed'
condition : startsWith(variables['Build.SourceBranch'], 'refs/tags')
inputs:
command : 'push'
packagesToPush : '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
@ -23,6 +23,7 @@
<PropertyGroup >
<Authors > Jellyfin Contributors</Authors>
<PackageId > Jellyfin.Naming</PackageId>
<VersionPrefix > 10.7.0</VersionPrefix>
<PackageLicenseUrl > https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt</PackageLicenseUrl>
<RepositoryUrl > https://github.com/jellyfin/jellyfin</RepositoryUrl>
</PropertyGroup>
@ -7,6 +7,14 @@
<TreatWarningsAsErrors Condition= " '$(Configuration)' == 'Release' " > true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup >
<Authors > Jellyfin Contributors</Authors>
<PackageId > Jellyfin.Data</PackageId>
<VersionPrefix > 10.7.0</VersionPrefix>
<PackageLicenseUrl > https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt</PackageLicenseUrl>
<RepositoryUrl > https://github.com/jellyfin/jellyfin</RepositoryUrl>
</PropertyGroup>
<PropertyGroup Condition= " '$(Configuration)' == 'Debug' " >
<CodeAnalysisRuleSet > ../jellyfin.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
@ -8,6 +8,7 @@
<PropertyGroup >
<Authors > Jellyfin Contributors</Authors>
<PackageId > Jellyfin.Common</PackageId>
<VersionPrefix > 10.7.0</VersionPrefix>
<PackageLicenseUrl > https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt</PackageLicenseUrl>
<RepositoryUrl > https://github.com/jellyfin/jellyfin</RepositoryUrl>
</PropertyGroup>
@ -8,6 +8,7 @@
<PropertyGroup >
<Authors > Jellyfin Contributors</Authors>
<PackageId > Jellyfin.Controller</PackageId>
<VersionPrefix > 10.7.0</VersionPrefix>
<PackageLicenseUrl > https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt</PackageLicenseUrl>
<RepositoryUrl > https://github.com/jellyfin/jellyfin</RepositoryUrl>
</PropertyGroup>
@ -8,6 +8,7 @@
<PropertyGroup >
<Authors > Jellyfin Contributors</Authors>
<PackageId > Jellyfin.Model</PackageId>
<VersionPrefix > 10.7.0</VersionPrefix>
<PackageLicenseUrl > https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt</PackageLicenseUrl>
<RepositoryUrl > https://github.com/jellyfin/jellyfin</RepositoryUrl>
</PropertyGroup>
@ -20,6 +20,8 @@ fi
shared_version_file="./SharedVersion.cs"
build_file="./build.yaml"
# csproj files for nuget packages
jellyfin_subprojects=( MediaBrowser.Common/MediaBrowser.Common.csproj Jellyfin.Data/Jellyfin.Data.csproj MediaBrowser.Controller/MediaBrowser.Controller.csproj MediaBrowser.Model/MediaBrowser.Model.csproj Emby.Naming/Emby.Naming.csproj )
new_version="$1"
@ -45,6 +47,22 @@ echo $old_version
old_version_sed="$( sed 's/\./\\./g' <<<"${old_version}" )" # Escape the '.' chars
sed -i "s/${old_version_sed}/${new_version}/g" ${build_file}
# update nuget package version
for subproject in ${jellyfin_subprojects[@]}; do
do
echo ${subproject}
# Parse the version from the *.csproj file
old_version="$(
grep "VersionPrefix" ${subproject} \
| awk '{$1=$1};1' \
| sed -E 's/<VersionPrefix>([0-9\.]+[-a-z0-9]*)<\/VersionPrefix>/\1/'
)"
echo old nuget version: $old_version
# Set the nuget version to the specified new_version
sed -i "s|${old_version}|${new_version}|g" ${subproject}
done
if [[ ${new_version} == *"-"* ]]; then
new_version_deb="$( sed 's/-/~/g' <<<"${new_version}" )"
else