mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 15:27:46 +00:00
feat: update release utils for xmrig-proxy
This commit is contained in:
parent
10b63c6b27
commit
2262c21aa6
3 changed files with 33 additions and 0 deletions
|
@ -41,6 +41,32 @@ mv xmrig-6.21.1/xmrig.exe /tmp/${FOLDER}/skel/windows_b/XMRig/xmrig.exe
|
||||||
rm -r xmrig-6.21.1
|
rm -r xmrig-6.21.1
|
||||||
rm xmrig-6.21.1-msvc-win64.zip
|
rm xmrig-6.21.1-msvc-win64.zip
|
||||||
|
|
||||||
|
## Download XMRig-Proxy Binaries
|
||||||
|
wget https://github.com/xmrig/xmrig-proxy/releases/download/v6.21.1/xmrig-proxy-6.21.1-linux-static-x64.tar.gz
|
||||||
|
tar -xf xmrig-proxy-6.21.1-linux-static-x64.tar.gz
|
||||||
|
mv xmrig-proxy-6.21.1/xmrig-proxy /tmp/${FOLDER}/skel/linux_b/xmrig-proxy/xmrig-proxy
|
||||||
|
rm -r xmrig-proxy-6.21.1
|
||||||
|
rm xmrig-proxy-6.21.1-linux-static-x64.tar.gz
|
||||||
|
## no release for arm64 mac-osx xmrig-proxy, todo make CI build it.
|
||||||
|
# download xmrig into directory macos-arm64
|
||||||
|
# wget https://github.com/xmrig/xmrig-proxy/releases/download/v6.21.1/xmrig-proxy-6.21.1-macos-arm64.tar.gz
|
||||||
|
# tar -xf xmrig-proxy-6.21.1-macos-arm64.tar.gz
|
||||||
|
# mv xmrig-proxy-6.21.1/xmrig-proxy /tmp/${FOLDER}/skel/macos-arm64_b/Gupaxx.app/Contents/MacOS/xmrig-proxy/xmrig-proxy
|
||||||
|
# rm -r xmrig-proxy-6.21.1
|
||||||
|
# rm xmrig-proxy-6.21.1-macos-arm64.tar.gz
|
||||||
|
# download xmrig into directory macos-x64
|
||||||
|
wget https://github.com/xmrig/xmrig-proxy/releases/download/v6.21.1/xmrig-proxy-6.21.1-macos-x64.tar.gz
|
||||||
|
tar -xf xmrig-proxy-6.21.1-macos-x64.tar.gz
|
||||||
|
mv xmrig-proxy-6.21.1/xmrig-proxy /tmp/${FOLDER}/skel/macos-x64_b/Gupaxx.app/Contents/MacOS/xmrig-proxy/xmrig-proxy
|
||||||
|
rm -r xmrig-proxy-6.21.1
|
||||||
|
rm xmrig-proxy-6.21.1-macos-x64.tar.gz
|
||||||
|
# download xmrig into directory windows
|
||||||
|
wget https://github.com/xmrig/xmrig-proxy/releases/download/v6.21.1/xmrig-proxy-6.21.1-msvc-win64.zip
|
||||||
|
unzip xmrig-proxy-6.21.1-msvc-win64.zip
|
||||||
|
mv xmrig-proxy-6.21.1/xmrig-proxy.exe /tmp/${FOLDER}/skel/windows_b/XMRig-Proxy/xmrig-proxy.exe
|
||||||
|
rm -r xmrig-proxy-6.21.1
|
||||||
|
rm xmrig-proxy-6.21.1-msvc-win64.zip
|
||||||
|
|
||||||
## Download P2Pool Binaries
|
## Download P2Pool Binaries
|
||||||
# download p2pool into directory linux
|
# download p2pool into directory linux
|
||||||
wget https://github.com/SChernykh/p2pool/releases/download/v3.10/p2pool-v3.10-linux-x64.tar.gz
|
wget https://github.com/SChernykh/p2pool/releases/download/v3.10/p2pool-v3.10-linux-x64.tar.gz
|
||||||
|
|
|
@ -33,21 +33,25 @@ title "Linux folder check"
|
||||||
[[ -f linux_b/gupaxx ]]; check "linux_b/gupaxx"
|
[[ -f linux_b/gupaxx ]]; check "linux_b/gupaxx"
|
||||||
[[ -f linux_b/p2pool/p2pool ]]; check "linux_b/p2pool/p2pool"
|
[[ -f linux_b/p2pool/p2pool ]]; check "linux_b/p2pool/p2pool"
|
||||||
[[ -f linux_b/xmrig/xmrig ]]; check "linux_b/xmrig/xmrig"
|
[[ -f linux_b/xmrig/xmrig ]]; check "linux_b/xmrig/xmrig"
|
||||||
|
[[ -f linux_b/xmrig/xmrig-proxy ]]; check "linux_b/xmrig/xmrig-proxy"
|
||||||
title "macOS-x64 folder check"
|
title "macOS-x64 folder check"
|
||||||
[[ -d macos-x64/Gupaxx.app ]]; check "macos-x64/Gupaxx.app"
|
[[ -d macos-x64/Gupaxx.app ]]; check "macos-x64/Gupaxx.app"
|
||||||
[[ -d macos-x64_b/Gupaxx.app ]]; check "macos-x64_b/Gupaxx.app"
|
[[ -d macos-x64_b/Gupaxx.app ]]; check "macos-x64_b/Gupaxx.app"
|
||||||
[[ -f macos-x64_b/Gupaxx.app/Contents/MacOS/p2pool/p2pool ]]; check "macos-x64_b/p2pool/p2pool"
|
[[ -f macos-x64_b/Gupaxx.app/Contents/MacOS/p2pool/p2pool ]]; check "macos-x64_b/p2pool/p2pool"
|
||||||
[[ -f macos-x64_b/Gupaxx.app/Contents/MacOS/xmrig/xmrig ]]; check "macos-x64_b/xmrig/xmrig"
|
[[ -f macos-x64_b/Gupaxx.app/Contents/MacOS/xmrig/xmrig ]]; check "macos-x64_b/xmrig/xmrig"
|
||||||
|
[[ -f macos-x64_b/Gupaxx.app/Contents/MacOS/xmrig/xmrig-proxy ]]; check "macos-x64_b/xmrig/xmrig-proxy"
|
||||||
title "macOS-arm64 folder check"
|
title "macOS-arm64 folder check"
|
||||||
[[ -d macos-arm64/Gupaxx.app ]]; check "macos-arm64/Gupaxx.app"
|
[[ -d macos-arm64/Gupaxx.app ]]; check "macos-arm64/Gupaxx.app"
|
||||||
[[ -d macos-arm64_b/Gupaxx.app ]]; check "macos-arm64_b/Gupaxx.app"
|
[[ -d macos-arm64_b/Gupaxx.app ]]; check "macos-arm64_b/Gupaxx.app"
|
||||||
[[ -f macos-arm64_b/Gupaxx.app/Contents/MacOS/p2pool/p2pool ]]; check "macos-arm64_b/p2pool/p2pool"
|
[[ -f macos-arm64_b/Gupaxx.app/Contents/MacOS/p2pool/p2pool ]]; check "macos-arm64_b/p2pool/p2pool"
|
||||||
[[ -f macos-arm64_b/Gupaxx.app/Contents/MacOS/xmrig/xmrig ]]; check "macos-arm64_b/xmrig/xmrig"
|
[[ -f macos-arm64_b/Gupaxx.app/Contents/MacOS/xmrig/xmrig ]]; check "macos-arm64_b/xmrig/xmrig"
|
||||||
|
[[ -f macos-arm64_b/Gupaxx.app/Contents/MacOS/xmrig/xmrig-proxy ]]; check "macos-arm64_b/xmrig/xmrig-proxy"
|
||||||
title "Windows folder check"
|
title "Windows folder check"
|
||||||
[[ -f windows/Gupaxx.exe ]]; check "windows/Gupaxx.exe"
|
[[ -f windows/Gupaxx.exe ]]; check "windows/Gupaxx.exe"
|
||||||
[[ -f windows_b/Gupaxx.exe ]]; check "windows_b/Gupaxx.exe"
|
[[ -f windows_b/Gupaxx.exe ]]; check "windows_b/Gupaxx.exe"
|
||||||
[[ -f windows_b/P2Pool/p2pool.exe ]]; check "windows_b/P2Pool/p2pool.exe"
|
[[ -f windows_b/P2Pool/p2pool.exe ]]; check "windows_b/P2Pool/p2pool.exe"
|
||||||
[[ -f windows_b/XMRig/xmrig.exe ]]; check "windows_b/XMRig/xmrig.exe"
|
[[ -f windows_b/XMRig/xmrig.exe ]]; check "windows_b/XMRig/xmrig.exe"
|
||||||
|
[[ -f windows_b/XMRig/xmrig-proxy.exe ]]; check "windows_b/XMRig/xmrig-proxy.exe"
|
||||||
|
|
||||||
|
|
||||||
# Tar Linux Bundle
|
# Tar Linux Bundle
|
||||||
|
@ -57,6 +61,7 @@ chmod +x linux/gupaxx
|
||||||
chmod +x linux_b/gupaxx
|
chmod +x linux_b/gupaxx
|
||||||
chmod +x linux_b/p2pool/p2pool
|
chmod +x linux_b/p2pool/p2pool
|
||||||
chmod +x linux_b/xmrig/xmrig
|
chmod +x linux_b/xmrig/xmrig
|
||||||
|
chmod +x linux_b/xmrig/xmrig-proxy
|
||||||
mv linux_b "gupaxx-$NEW_VER-linux-x64-bundle"; check "linux -> gupaxx-$NEW_VER-linux-x64-bundle"
|
mv linux_b "gupaxx-$NEW_VER-linux-x64-bundle"; check "linux -> gupaxx-$NEW_VER-linux-x64-bundle"
|
||||||
tar -czpf "gupaxx-${NEW_VER}-linux-x64-bundle.tar.gz" "gupaxx-$NEW_VER-linux-x64-bundle" --owner=lm --group=lm ; check "tar linux-bundle"
|
tar -czpf "gupaxx-${NEW_VER}-linux-x64-bundle.tar.gz" "gupaxx-$NEW_VER-linux-x64-bundle" --owner=lm --group=lm ; check "tar linux-bundle"
|
||||||
# Tar Linux Standalone
|
# Tar Linux Standalone
|
||||||
|
|
|
@ -18,6 +18,7 @@ OLD_VER_NUM="$(grep -m1 "version" Cargo.toml | grep -o "[0-9].[0-9].[0-9]")"
|
||||||
# get p2pool/xmrig version
|
# get p2pool/xmrig version
|
||||||
P2POOL_VERSION="$(grep "P2POOL_VERSION" src/constants.rs | grep -o "\"v[0-9].*\"")"
|
P2POOL_VERSION="$(grep "P2POOL_VERSION" src/constants.rs | grep -o "\"v[0-9].*\"")"
|
||||||
XMRIG_VERSION="$(grep "XMRIG_VERSION" src/constants.rs | grep -o "\"v[0-9].*\"")"
|
XMRIG_VERSION="$(grep "XMRIG_VERSION" src/constants.rs | grep -o "\"v[0-9].*\"")"
|
||||||
|
XMRIG_PROXY_VERSION="$(grep "XMRIG_PROXY_VERSION" src/constants.rs | grep -o "\"v[0-9].*\"")"
|
||||||
|
|
||||||
# sed change
|
# sed change
|
||||||
sed -i "s/$OLD_VER/$1/g" README.md
|
sed -i "s/$OLD_VER/$1/g" README.md
|
||||||
|
@ -35,6 +36,7 @@ cat << EOM > CHANGELOG.md.new
|
||||||
## Bundled Versions
|
## Bundled Versions
|
||||||
* [\`P2Pool ${P2POOL_VERSION//\"/}\`](https://github.com/SChernykh/p2pool/releases/tag/${P2POOL_VERSION//\"/})
|
* [\`P2Pool ${P2POOL_VERSION//\"/}\`](https://github.com/SChernykh/p2pool/releases/tag/${P2POOL_VERSION//\"/})
|
||||||
* [\`XMRig ${XMRIG_VERSION//\"/}\`](https://github.com/xmrig/xmrig/releases/tag/${XMRIG_VERSION//\"/})
|
* [\`XMRig ${XMRIG_VERSION//\"/}\`](https://github.com/xmrig/xmrig/releases/tag/${XMRIG_VERSION//\"/})
|
||||||
|
* [\`XMRig_Proxy ${XMRIG_PROXY_VERSION//\"/}\`](https://github.com/xmrig/xmrig-proxy/releases/tag/${XMRIG_PROXY_VERSION//\"/})
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in a new issue