diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 31c22ec..8119a1d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/updaters/v2raya.ps1 b/updaters/v2raya.ps1 index 2699465..ff385ac 100644 --- a/updaters/v2raya.ps1 +++ b/updaters/v2raya.ps1 @@ -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]} @@ -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]}