Skip to content

Commit

Permalink
resetting tixati part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
teknowledgist committed Dec 18, 2023
1 parent 1bdd0a2 commit 167a05b
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 0 deletions.
27 changes: 27 additions & 0 deletions automatic/tixati/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# <img src="https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-packages@bee4bc391df114723011dbd5b8a8af2a17c6bf2e/icons/tixati.png" width="48" height="48"/> [tixati](https://chocolatey.org/packages/tixati)


__Tixati__ is one of the most advanced and flexible BitTorrent clients available. And unlike many other clients, Tixati contains _NO SPYWARE, NO ADS,_ and _NO GIMMICKS._

![Peers](https://i.imgur.com/DCrcBsN.png)

![DHT](http://i.imgur.com/FAKIZQC.png)

## Features

* detailed views of all aspects of the swarm, including peers, pieces, files, and trackers
* support for magnet links, so no need to download .torrent files if a simple magnet-link is available
* super-efficient peer choking/unchoking algorithms ensure the fastest downloads
* peer connection encryption for added security
* full DHT (Distributed Hash Table) implementation for trackerless torrents, including detailed message traffic graphs and customizable event logging
* advanced bandwidth charting of overall traffic and per-transfer traffic, with separate classification of protocol and file bytes, and with separate classification of outbound traffic for trading and seeding
* highly flexible bandwidth throttling, including trading/seeding proportion adjustment and adjustable priority for individual transfers and peers
* bitfield graphs that show the completeness of all downloaded files, what pieces other peers have available, and the health of the overall swarm
* customizable event logging for each download, and individual event logs for all peers within the swarm
* expert local file management functions which allow you to move files to a different partition even while downloading is still in progress
* 100% compatible with the BitTorrent protocol
* Windows and Linux-GTK native versions available

## Notes

* **If the package is out of date please check [Version History](#versionhistory) for the latest submitted version. If you have a question, please ask it in [Chocolatey Community Package Discussions](https://github.com/chocolatey-community/chocolatey-packages/discussions) or raise an issue on the [Chocolatey Community Packages Repository](https://github.com/chocolatey-community/chocolatey-packages/issues) if you have problems with the package. Disqus comments will generally not be responded to.**
53 changes: 53 additions & 0 deletions automatic/tixati/tixati.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>tixati</id>
<title>Tixati</title>
<version>3.19</version>
<authors>Kevin Hearn</authors>
<owners>chocolatey-community,Redsandro</owners>
<summary>Tixati is a cross-platform BitTorrent client written in C++ that has been designed to be light on system resources.</summary>
<description><![CDATA[
__Tixati__ is one of the most advanced and flexible BitTorrent clients available. And unlike many other clients, Tixati contains _NO SPYWARE, NO ADS,_ and _NO GIMMICKS._
![Peers](https://i.imgur.com/DCrcBsN.png)
![DHT](http://i.imgur.com/FAKIZQC.png)
## Features
* detailed views of all aspects of the swarm, including peers, pieces, files, and trackers
* support for magnet links, so no need to download .torrent files if a simple magnet-link is available
* super-efficient peer choking/unchoking algorithms ensure the fastest downloads
* peer connection encryption for added security
* full DHT (Distributed Hash Table) implementation for trackerless torrents, including detailed message traffic graphs and customizable event logging
* advanced bandwidth charting of overall traffic and per-transfer traffic, with separate classification of protocol and file bytes, and with separate classification of outbound traffic for trading and seeding
* highly flexible bandwidth throttling, including trading/seeding proportion adjustment and adjustable priority for individual transfers and peers
* bitfield graphs that show the completeness of all downloaded files, what pieces other peers have available, and the health of the overall swarm
* customizable event logging for each download, and individual event logs for all peers within the swarm
* expert local file management functions which allow you to move files to a different partition even while downloading is still in progress
* 100% compatible with the BitTorrent protocol
* Windows and Linux-GTK native versions available
## Notes
* **If the package is out of date please check [Version History](#versionhistory) for the latest submitted version. If you have a question, please ask it in [Chocolatey Community Package Discussions](https://github.com/chocolatey-community/chocolatey-packages/discussions) or raise an issue on the [Chocolatey Community Packages Repository](https://github.com/chocolatey-community/chocolatey-packages/issues) if you have problems with the package. Disqus comments will generally not be responded to.**
]]></description>
<projectUrl>http://www.tixati.com/</projectUrl>
<tags>internet network download torrent p2p share admin freeware</tags>
<copyright></copyright>
<licenseUrl>http://www.tixati.com/tixati_eula.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-packages@bee4bc391df114723011dbd5b8a8af2a17c6bf2e/icons/tixati.png</iconUrl>
<dependencies>
<dependency id="chocolatey-core.extension" version="1.3.3" />
<dependency id="autohotkey.portable" version="1.1.26.01" />
</dependencies>
<releaseNotes></releaseNotes>
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/tixati</packageSourceUrl>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
29 changes: 29 additions & 0 deletions automatic/tixati/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
$ErrorActionPreference = 'Stop'

$packageName = 'tixati'
$fileName = 'tixati-3.19-1.install.exe'
$download_dir = "$Env:TEMP\chocolatey\$packageName\$Env:ChocolateyPackageVersion"

$packageArgs = @{
packageName = $packageName
fileFullPath = "$download_dir\$fileName"
url = 'https://download1.tixati.com/download/tixati-3.19-1.win32-install.exe'
url64bit = 'https://download1.tixati.com/download/tixati-3.19-1.win64-install.exe'
checksum = 'aba530275d136a63e927807d75a3d5ceb30990d15eedf00a12f5bd247f79b5e0'
checksum64 = 'c696960f8bdade39e3a73d6a7626dbd9ecb79f8c9335c8ea1220015a55627692'
checksumType = 'sha256'
checksumType64 = 'sha256'
}
Get-ChocolateyWebFile @packageArgs

Write-Output "Running Autohotkey installer"
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
Autohotkey.exe $toolsPath\$packageName.ahk $packageArgs.fileFullPath

$installLocation = Get-AppInstallLocation $packageName
if ($installLocation) {
Write-Host "$packageName installed to '$installLocation'"
Register-Application "$installLocation\$packageName.exe"
Write-Host "$packageName registered as $packageName"
}
else { Write-Warning "Can't find $PackageName install location" }
15 changes: 15 additions & 0 deletions automatic/tixati/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$ErrorActionPreference = 'Stop'

$packageName = 'tixati'
$installLocation = Get-AppInstallLocation $packageName
$uninstaller = "$installLocation\uninstall.exe"
if (!(Test-Path $uninstaller)) { Write-Warning "$packageName has already been uninstalled by other means."; return }

$packageArgs = @{
packageName = $packageName
silentArgs = "/S"
fileType = 'EXE'
validExitCodes = @(0,10)
file = $uninstaller
}
Uninstall-ChocolateyPackage @packageArgs
20 changes: 20 additions & 0 deletions automatic/tixati/tools/tixati.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SetTitleMatchMode, RegEx
exe_re = tixati-.+install.exe

Run %1%
WinWait, ahk_exe %exe_re%,,20
IfNotEqual, ErrorLevel, 0, exit 1
ControlSend,, {ENTER}, ahk_exe %exe_re%

WinWait, ahk_exe %exe_re%, YES`, continue installation, 20
IfNotEqual, ErrorLevel, 0, exit 1
ControlSend,, {ENTER}, ahk_exe %exe_re%

WinWait, ahk_exe %exe_re%, Install, 20
IfNotEqual, ErrorLevel, 0, exit 1
ControlSend,, {ENTER}, ahk_exe %exe_re%

WinWait, ahk_exe %exe_re%, Installation is complete!, 20
IfNotEqual, ErrorLevel, 0, exit 1
WinActivate
Send, {TAB}{ENTER}
32 changes: 32 additions & 0 deletions automatic/tixati/update.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import-module au

$releases = 'https://www.tixati.com/download/'

function global:au_SearchReplace {
@{
".\tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
"(?i)(^\s*url64bit\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'"
"(?i)(^\s*checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
"(?i)(^\s*checksum64\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"
"(?i)(^[$]fileName\s*=\s*)('.*')" = "`$1'$($Latest.FileName)'"
}
}
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri "${releases}windows.html" -UseBasicParsing
$url32 = $download_page.links | Where-Object href -match '\.exe$' | Select-Object -First 1 | ForEach-Object href

$download_page = Invoke-WebRequest -Uri "${releases}windows64.html" -UseBasicParsing
$url64 = $download_page.links | Where-Object href -match '\.exe$' | Select-Object -First 1 | ForEach-Object href

$url64 -match '(?<=tixati-).+?(?=\.win64)'
$version = $Matches[0] -replace '-.+$'

$fileName = (Split-Path $url64 -Leaf) -replace 'win64-'

@{ URL32 = $url32; URL64 = $url64; Version = $version; FileName = $fileName }
}

update

0 comments on commit 167a05b

Please sign in to comment.