Browse Source

Updated Readmes

pull/702/head
Dmitry Nefedov 3 months ago
parent
commit
28cccd15df
  1. 29
      .github/workflows/Badge_downloads.yml
  2. 2
      CHANGELOG.md
  3. 2
      README.md
  4. 2
      chocolatey/tools/LICENSE.txt
  5. 2
      docs/README_de-de.md
  6. 2
      docs/README_ru-ru.md
  7. 2
      docs/README_uk-ua.md

29
.github/workflows/Badge_downloads.yml

@ -24,38 +24,33 @@ jobs:
Accept = "application/vnd.github+json" Accept = "application/vnd.github+json"
Authorization = "Bearer $Token" Authorization = "Bearer $Token"
} }
$Parameters = @{ $Parameters = @{
Uri = "https://api.github.com/repos/farag2/Sophia-Script-for-Windows/releases?per_page=100&page=1" Uri = "https://api.github.com/repos/farag2/Sophia-Script-for-Windows/releases?per_page=100&page=1"
Headers = $Headers Headers = $Headers
Verbose = $true UseBasicParsing = $true
Verbose = $true
} }
$page1 = ((Invoke-RestMethod @Parameters).assets.download_count | Measure-Object -Sum).Sum $page1 = ((Invoke-RestMethod @Parameters).assets.download_count | Measure-Object -Sum).Sum
# Count downloads for the second page of the repo # Count downloads for the second page of the repo
$Token = "${{ secrets.GITHUB_TOKEN }}"
$Headers = @{
Accept = "application/vnd.github+json"
Authorization = "Bearer $Token"
Verbose = $true
}
$Parameters = @{ $Parameters = @{
Uri = "https://api.github.com/repos/farag2/Sophia-Script-for-Windows/releases?per_page=100&page=2" Uri = "https://api.github.com/repos/farag2/Sophia-Script-for-Windows/releases?per_page=100&page=2"
Headers = $Headers Headers = $Headers
Verbose = $true UseBasicParsing = $true
Verbose = $true
} }
$page2 = ((Invoke-RestMethod @Parameters).assets.download_count | Measure-Object -Sum).Sum $page2 = ((Invoke-RestMethod @Parameters).assets.download_count | Measure-Object -Sum).Sum
# https://community.chocolatey.org/packages/sophia # https://community.chocolatey.org/packages/sophia
$Parameters = @{ $Parameters = @{
Uri = "https://community.chocolatey.org/api/v2/Packages()?`$filter=Id eq 'sophia' and IsLatestVersion" Uri = "https://community.chocolatey.org/api/v2/Packages()?`$filter=Id eq 'sophia' and IsLatestVersion"
Verbose = $true UseBasicParsing = $true
Verbose = $true
} }
$choco = (Invoke-RestMethod @Parameters).properties.DownloadCount."#text" $choco = (Invoke-RestMethod @Parameters).properties.DownloadCount."#text"
$Summary = $page1 + $page2 + $choco
Write-Verbose -Message $Summary -Verbose
$Summary = "{0:N3} Million" -f ($Summary/1000000)
$Summary = "{0:N3} Million" -f (($page1 + $page2 + $choco)/1000000)
Write-Verbose -Message $Summary -Verbose Write-Verbose -Message $Summary -Verbose
echo "DOWNLOADS_COUNT=$Summary" >> $env:GITHUB_ENV echo "DOWNLOADS_COUNT=$Summary" >> $env:GITHUB_ENV

2
CHANGELOG.md

@ -30,7 +30,7 @@ scoop bucket add extras
scoop install sophia-script --no-cache scoop install sophia-script --no-cache
# Uninstall Sophia Script # Uninstall Sophia Script
scoop uninstall sophia-script -p scoop uninstall sophia-script --purge
``` ```
* Updated localizations * Updated localizations

2
README.md

@ -201,7 +201,7 @@ scoop install sophia-script --no-cache
```powershell ```powershell
# Uninstall Sophia Script for Windows # Uninstall Sophia Script for Windows
scoop uninstall sophia-script -p scoop uninstall sophia-script --purge
``` ```
## How to use ## How to use

2
chocolatey/tools/LICENSE.txt

@ -4,7 +4,7 @@ LICENSE
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2014—2025 Team Sophia Copyright (c) 2014—2026 Team Sophia
LGPO.exe is developed by Microsoft Corporation LGPO.exe is developed by Microsoft Corporation
License: https://www.microsoft.com/en-us/download/details.aspx?id=55319 License: https://www.microsoft.com/en-us/download/details.aspx?id=55319

2
docs/README_de-de.md

@ -198,7 +198,7 @@ scoop install sophia-script --no-cache
```powershell ```powershell
# Deinstallieren Sie Sophia Script for Windows # Deinstallieren Sie Sophia Script for Windows
scoop uninstall sophia-script -p scoop uninstall sophia-script --purge
``` ```
## Wie zu verwenden ## Wie zu verwenden

2
docs/README_ru-ru.md

@ -197,7 +197,7 @@ scoop install sophia-script --no-cache
```powershell ```powershell
# Удалить Sophia Script for Windows # Удалить Sophia Script for Windows
scoop uninstall sophia-script -p scoop uninstall sophia-script --purge
``` ```
## Как использовать ## Как использовать

2
docs/README_uk-ua.md

@ -197,7 +197,7 @@ scoop install sophia-script --no-cache
```powershell ```powershell
# Видалити Sophia Script for Windows # Видалити Sophia Script for Windows
scoop uninstall sophia-script -p scoop uninstall sophia-script --purge
``` ```
## Як використовувати ## Як використовувати

Loading…
Cancel
Save