feat: add openssl binary

This commit is contained in:
KOWX712
2025-05-16 14:04:39 +08:00
parent 82b8756867
commit 3a06a13f36
3 changed files with 21 additions and 6 deletions

View File

@@ -27,16 +27,30 @@ jobs:
- name: Update dependency
run: |
curl -Ls https://cdn.jsdelivr.net/npm/marked/marked.min.js > module/webui/scripts/assets/marked.min.js
wget -q $(curl -Ls https://api.github.com/repos/KOWX712/openssl-static-build/releases/latest | jq -r '.assets[].browser_download_url') -O openssl.tar.gz
tar -xzf openssl.tar.gz
mv openssl-arm64 module/bin/arm64-v8a/openssl
mv openssl-arm32 module/bin/armeabi-v7a/openssl
# Commit if found changes
if ! git diff --exit-code module/webui/scripts/assets/marked.min.js > /dev/null; then
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
# Commit marked.min.js if changed
if git status --porcelain | grep 'module/webui/scripts/assets/marked.min.js'; then
git add module/webui/scripts/assets/marked.min.js
git commit -m "deps: update marked.min.js"
git push
fi
# Commit OpenSSL files if changed
if git status --porcelain | grep -E 'module/bin/arm64-v8a|module/bin/armeabi-v7a'; then
git add module/bin/arm64-v8a/openssl module/bin/armeabi-v7a/openssl
git commit -m "deps: update OpenSSL binaries"
fi
# Push all commits
git push
- name: Extract Module Info
id: extract_info
run: |