First vesion of homebrew formula
This commit is contained in:
Родитель
27c3b3cb4e
Коммит
98c0be36e3
|
@ -0,0 +1,8 @@
|
||||||
|
class DotnetUpdatepkg < Formula
|
||||||
|
homepage "https://gitlab.internal.unity3d.com/CDS/dotnet-updatepkg"
|
||||||
|
head "https://gitlab.internal.unity3d.com/CDS/dotnet-updatepkg.git"
|
||||||
|
|
||||||
|
def install
|
||||||
|
bin.install 'dotnet-updatepackage', 'dotnet-updatepackage.fsx'
|
||||||
|
end
|
||||||
|
end
|
|
@ -103,13 +103,13 @@ module Models =
|
||||||
{ PackageRef.Name = name
|
{ PackageRef.Name = name
|
||||||
Version = version }
|
Version = version }
|
||||||
|
|
||||||
// Compares two package versions
|
/// Compares two package versions
|
||||||
//
|
///
|
||||||
// This function implements the following behavior:
|
/// This function implements the following behavior:
|
||||||
// 5.10.15 < 10.0.0 => true
|
/// 5.10.15 < 10.0.0 => true
|
||||||
// 1.0.0-beta2 > 1.0.0-alpha6 => true
|
/// 1.0.0-beta2 > 1.0.0-alpha6 => true
|
||||||
// 1.0.0-rc1 > 1.0.0-beta4 => true
|
/// 1.0.0-rc1 > 1.0.0-beta4 => true
|
||||||
// 1.0.0 > 1.0.0-rc2 => true
|
/// 1.0.0 > 1.0.0-rc2 => true
|
||||||
let compareVs lhs rhs =
|
let compareVs lhs rhs =
|
||||||
let majorDiff = lhs.Major - rhs.Major
|
let majorDiff = lhs.Major - rhs.Major
|
||||||
if majorDiff <> 0 then majorDiff
|
if majorDiff <> 0 then majorDiff
|
||||||
|
|
Загрузка…
Ссылка в новой задаче