Skip to content

Commit

Permalink
makefile: Update dortania/build-repo download logic
Browse files Browse the repository at this point in the history
  • Loading branch information
stevezhengshiqi committed Nov 7, 2022
1 parent a366aa0 commit a9bbeb0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
rawURL="https://github.com/acidanthera/OpenCorePkg/releases/latest"
rawURL=$(curl -Ls -o /dev/null -w "%{url_effective}" "${rawURL}" | sed 's/releases\/tag/releases\/expanded_assets/')
rawURL_pre="https://github.com/dortania/build-repo/tags"
rawURL_pre="https://github.com$(curl -L --silent "${rawURL_pre}" | grep -m 1 'OpenCorePkg' | tr -d '"' | tr -d ' ' | tr -d '>' | sed -e 's/<ahref=//')"
rawURL_pre="https://github.com$(curl -L --silent "${rawURL_pre}" | grep -m 1 'OpenCorePkg' | sed -e 's/.*<a\ href="//' | cut -d "\"" -f1)"
rawURL_pre=$(curl -Ls -o /dev/null -w "%{url_effective}" "${rawURL_pre}" | sed 's/releases\/tag/releases\/expanded_assets/')
url="https://github.com$(curl -L --silent "${rawURL}" | grep '/download/' | eval "${hg}" | sed 's/^[^"]*"\([^"]*\)".*/\1/')"
url_pre="https://github.com$(curl -L --silent "${rawURL_pre}" | grep '/download/' | eval "${hg_pre}" | sed 's/^[^"]*"\([^"]*\)".*/\1/')"
Expand Down
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**English** | [中文](Docs/Changelog_CN.md)

## XiaoMi NoteBook Pro EFI v1.7.2
## [XiaoMi NoteBook Pro EFI v1.7.2](https://github.com/daliansky/XiaoMi-Pro-Hackintosh/releases/tag/v1.7.2)
## 2022-11-08

### Upgrade
Expand Down
2 changes: 1 addition & 1 deletion Docs/Changelog_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[English](../Changelog.md) | **中文**

## XiaoMi NoteBook Pro EFI v1.7.2
## [XiaoMi NoteBook Pro EFI v1.7.2](https://github.com/daliansky/XiaoMi-Pro-Hackintosh/releases/tag/v1.7.2)
## 2022-11-08

### 更新
Expand Down
2 changes: 1 addition & 1 deletion makefile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function dGR() {
if [[ ${language} == "zh_CN" ]]; then
rawURL=${rawURL/#/${CFURL}/}
fi
rawURL="https://github.com$(curl -L --silent "${rawURL}" | grep -m 1 'OpenCorePkg' | tr -d '"' | tr -d ' ' | tr -d '>' | sed -e 's/<ahref=//')"
rawURL="https://github.com$(curl -L --silent "${rawURL}" | grep -m 1 'OpenCorePkg' | sed -e 's/.*<a\ href="//' | cut -d "\"" -f1)"
else
rawURL="https://github.com/$1/$2/releases$tag"
fi
Expand Down

0 comments on commit a9bbeb0

Please sign in to comment.