Skip to content

Commit

Permalink
Rewrite build script
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 dcb4e76 commit 5fbf3de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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.sha256.txt
v2raya-x86_64-macos.zip
v2raya-x86_64-macos-sha256.txt
v2raya-x86_64-macos.sha256.txt
v2raya-aarch64-macos.zip
v2raya-aarch64-macos-sha256.txt
v2raya-aarch64-macos.sha256.txt
8 changes: 4 additions & 4 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.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"
$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 @@ -23,4 +23,4 @@ If ($Version_Current -eq $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_current = Get-Content "./Formula/v2raya.rb" | Select-String 'Loyalsoldier_version' | ForEach-Object { ([string]$_).split('"')[1]}

0 comments on commit 5fbf3de

Please sign in to comment.