diff --git a/build.xml b/build.xml index 8c780790..3587133a 100644 --- a/build.xml +++ b/build.xml @@ -860,6 +860,29 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/installer/chocolatey/filebot.nuspec b/installer/chocolatey/filebot.nuspec new file mode 100644 index 00000000..abd20668 --- /dev/null +++ b/installer/chocolatey/filebot.nuspec @@ -0,0 +1,23 @@ + + + + @{package.name} + @{application.name} + @{application.version} + @{package.developer} + @{package.maintainer} + @{package.synopsis} + @{package.description} + @{package.tags} + @{link.image.logo} + @{package.homepage} + @{link.intro} + @{link.forums} + @{link.bugs} + @{tstamp.year} @{package.developer} + false + + + + + diff --git a/installer/chocolatey/tools/chocolateyInstall.ps1 b/installer/chocolatey/tools/chocolateyInstall.ps1 new file mode 100644 index 00000000..fd9bdb9f --- /dev/null +++ b/installer/chocolatey/tools/chocolateyInstall.ps1 @@ -0,0 +1 @@ +Install-ChocolateyPackage -PackageName '@{package.name}' -FileType 'msi' -SilentArgs '/quiet' -Url64bit 'https://get.filebot.net/@{package.name}/@{release}/@{release}_x64.msi' -ChecksumType64 'sha256' -Checksum64 '@{x64.msi.sha256}' diff --git a/installer/chocolatey/tools/chocolateyUninstall.ps1 b/installer/chocolatey/tools/chocolateyUninstall.ps1 new file mode 100644 index 00000000..2cf4e3c4 --- /dev/null +++ b/installer/chocolatey/tools/chocolateyUninstall.ps1 @@ -0,0 +1,8 @@ +$app = Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name = '@{application.name}'" + +if ($app -eq $null) { + echo '@{application.name} is not installed.' +} else { + $app.Uninstall() + echo '@{application.name} has been uninstalled.' +}