Skip to content

Commit

Permalink
[CI] Use prebuilt sparkle for CI
Browse files Browse the repository at this point in the history
Update Sparkle to 2.6.2, aligned with downloadable tag
  • Loading branch information
LEOYoon-Tsaw committed May 27, 2024
1 parent 66e2bfe commit f9ed35e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions action-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,31 @@ set -e

rime_version=latest
rime_git_hash=6b1b41f
sparkle_version=2.6.2

rime_archive="rime-${rime_git_hash}-macOS-universal.tar.bz2"
rime_download_url="https://github.com/rime/librime/releases/download/${rime_version}/${rime_archive}"

rime_deps_archive="rime-deps-${rime_git_hash}-macOS-universal.tar.bz2"
rime_deps_download_url="https://github.com/rime/librime/releases/download/${rime_version}/${rime_deps_archive}"

sparkle_archive="Sparkle-${sparkle_version}.tar.xz"
sparkle_download_url="https://github.com/sparkle-project/Sparkle/releases/download/${sparkle_version}/${sparkle_archive}"

mkdir -p download && (
cd download
[ -z "${no_download}" ] && curl -LO "${rime_download_url}"
tar --bzip2 -xf "${rime_archive}"
[ -z "${no_download}" ] && curl -LO "${rime_deps_download_url}"
tar --bzip2 -xf "${rime_deps_archive}"
[ -z "${no_download}" ] && curl -LO "${sparkle_download_url}"
tar -xJf "${sparkle_archive}"
)

mkdir -p librime/share
cp -R download/dist librime/
cp -R download/share/opencc librime/share/
cp -R download/Sparkle.framework Frameworks/

# skip building librime and opencc-data; use downloaded artifacts
make copy-rime-binaries copy-opencc-data
Expand Down

0 comments on commit f9ed35e

Please sign in to comment.