Skip to content

hymkor/Download-Count.ps1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Download-Count.ps1

Download-Count.ps1 is a PowerShell script that reports how many assets on GitHub's Releases page have been downloaded.

(Download-Count.ps1 は GitHub の Releases ページのファイルがどれだけのダウンロードされたかリポートするスクリプトです)

Install

Quick install

Execute the following command from a directory listed in the PATH environment variable.

curl -O https://raw.githubusercontent.com/hymkor/Download-Count.ps1/master/Download-Count.ps1

for scoop-installer

scoop install https://raw.githubusercontent.com/hymkor/Download-Count.ps1/master/Download-Count.ps1.json

or

scoop bucket add hymkor https://github.com/hymkor/scoop-bucket
scoop install Download-Count.ps1

Case 1: Report about the repository of the current directory

It works only the directory that git.exe can

C:> cd %USERPROFILE%\src\nyagos
C:> Download-Count.ps1
nyagos-4.4.14_0-linux-amd64.zip 20
nyagos-4.4.14_0-windows-386.zip 1452
nyagos-4.4.14_0-windows-amd64.zip 1821
nyagos-4.4.13_3-linux-amd64.tar.gz 25
nyagos-4.4.13_3-windows-386.zip 1427
 :

Case 2: Specify the repository with the parameter

C:> Download-Count.ps1 nyaosorg/nyagos
nyagos-4.4.14_0-linux-amd64.zip 20
nyagos-4.4.14_0-windows-386.zip 1452
nyagos-4.4.14_0-windows-amd64.zip 1821
nyagos-4.4.13_3-linux-amd64.tar.gz 25
nyagos-4.4.13_3-windows-386.zip 1427
nyagos-4.4.13_3-windows-amd64.zip 1884
 :

About

A PowerShell script that reports how many assets on GitHub's Releases page have been downloaded.

Topics

Resources

License

Stars

Watchers

Forks

Contributors