Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Markson Ho authored and Markson Ho committed Feb 8, 2023
1 parent 5fbf3de commit c35cd9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
with:
files: |
v2raya-x86_64-linux.zip
v2raya-x86_64-linux.sha256.txt
v2raya-x86_64-linux.zip.sha256.txt
v2raya-x86_64-macos.zip
v2raya-x86_64-macos.sha256.txt
v2raya-x86_64-macos.zip.sha256.txt
v2raya-aarch64-macos.zip
v2raya-aarch64-macos.sha256.txt
v2raya-aarch64-macos.zip.sha256.txt
10 changes: 5 additions & 5 deletions updaters/v2raya.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ if ([String]::IsNullOrEmpty($Version_Latest)) {
If ($Version_Current -eq $Version_Latest) {
Write-Output "Nothing to do, you have the latest version of v2raya."
}else {
$New_SHA256_Darwin_A64 = curl -sL "https://github.com/v2rayA/homebrew-v2raya/releases/download/$Version_Latest/v2raya-aarch64-macos.sha256.txt"
$New_SHA256_Darwin_x64 = curl -sL "https://github.com/v2rayA/homebrew-v2raya/releases/download/$Version_Latest/v2raya-x86_64-macos.sha256.txt"
$New_SHA256_Linux_x64 = curl -sL "https://github.com/v2rayA/homebrew-v2raya/releases/download/$Version_Latest/v2raya-x86_64-linux.sha256.txt"
$New_SHA256_Darwin_A64 = curl -sL "https://github.com/v2rayA/homebrew-v2raya/releases/download/$Version_Latest/v2raya-aarch64-macos.zip.sha256.txt"
$New_SHA256_Darwin_x64 = curl -sL "https://github.com/v2rayA/homebrew-v2raya/releases/download/$Version_Latest/v2raya-x86_64-macos.zip.sha256.txt"
$New_SHA256_Linux_x64 = curl -sL "https://github.com/v2rayA/homebrew-v2raya/releases/download/$Version_Latest/v2raya-x86_64-linux.zip.sha256.txt"
$Old_SHA256_Darwin_A64 = Get-Content ./Formula/v2raya.rb | Select-String 'sha_macos_arm64 ='| ForEach-Object { ([string]$_).split('"')[1]}
$Old_SHA256_Darwin_x64 = Get-Content ./Formula/v2raya.rb | Select-String 'sha_macos_x64 =' | ForEach-Object { ([string]$_).split('"')[1]}
$Old_SHA256_Linux_x64 = Get-Content ./Formula/v2raya.rb | Select-String 'sha_linux_x64 =' | ForEach-Object { ([string]$_).split('"')[1]}
Expand All @@ -22,5 +22,5 @@ If ($Version_Current -eq $Version_Latest) {
git commit "./Formula/v2raya.rb" -m "v2rayA: update to version $Version_Latest"
}

$version_Loyalsoldier_latest = ((Invoke-WebRequest "https://api.github.com/repos/Loyalsoldier/v2ray-rules-dat/releases/latest" | ConvertFrom-Json ).tag_name)
$version_Loyalsoldier_current = Get-Content "./Formula/v2raya.rb" | Select-String 'Loyalsoldier_version' | ForEach-Object { ([string]$_).split('"')[1]}
# $version_Loyalsoldier_latest = ((Invoke-WebRequest "https://api.github.com/repos/Loyalsoldier/v2ray-rules-dat/releases/latest" | ConvertFrom-Json ).tag_name)
# $version_Loyalsoldier_current = Get-Content "./Formula/v2raya.rb" | Select-String 'Loyalsoldier_version' | ForEach-Object { ([string]$_).split('"')[1]}

0 comments on commit c35cd9a

Please sign in to comment.