ci: add install instructions for all platforms in release body
All checks were successful
CI / build (push) Successful in 1m45s
All checks were successful
CI / build (push) Successful in 1m45s
💘 Generated with Crush Assisted-by: GLM-5.1 via Crush <crush@charm.land>
This commit is contained in:
@@ -89,8 +89,10 @@ jobs:
|
||||
fi
|
||||
SHORT_SHA=$(git rev-parse --short HEAD)
|
||||
API="${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases"
|
||||
BODY=$(cat <<'BODYEOF'
|
||||
## muyue latest
|
||||
DL_URL="${{ github.server_url }}/${{ github.repository }}/releases/download/latest"
|
||||
BODY=$(cat <<BODYEOF
|
||||
## muyue latest (${SHORT_SHA})
|
||||
|
||||
| Platform | File |
|
||||
|----------|------|
|
||||
| Linux x86_64 | muyue-linux-amd64.tar.gz |
|
||||
@@ -99,6 +101,50 @@ jobs:
|
||||
| macOS Apple Silicon | muyue-darwin-arm64.tar.gz |
|
||||
| Windows x86_64 | muyue-windows-amd64.zip |
|
||||
| Windows ARM64 | muyue-windows-arm64.zip |
|
||||
|
||||
### Install
|
||||
|
||||
**Linux (x86_64)**
|
||||
\`\`\`bash
|
||||
curl -sL ${DL_URL}/muyue-linux-amd64.tar.gz | tar xz
|
||||
chmod +x muyue-linux-amd64
|
||||
sudo mv muyue-linux-amd64 /usr/local/bin/muyue
|
||||
\`\`\`
|
||||
|
||||
**Linux (ARM64)**
|
||||
\`\`\`bash
|
||||
curl -sL ${DL_URL}/muyue-linux-arm64.tar.gz | tar xz
|
||||
chmod +x muyue-linux-arm64
|
||||
sudo mv muyue-linux-arm64 /usr/local/bin/muyue
|
||||
\`\`\`
|
||||
|
||||
**macOS (Apple Silicon)**
|
||||
\`\`\`bash
|
||||
curl -sL ${DL_URL}/muyue-darwin-arm64.tar.gz | tar xz
|
||||
chmod +x muyue-darwin-arm64
|
||||
sudo mv muyue-darwin-arm64 /usr/local/bin/muyue
|
||||
\`\`\`
|
||||
|
||||
**macOS (Intel)**
|
||||
\`\`\`bash
|
||||
curl -sL ${DL_URL}/muyue-darwin-amd64.tar.gz | tar xz
|
||||
chmod +x muyue-darwin-amd64
|
||||
sudo mv muyue-darwin-amd64 /usr/local/bin/muyue
|
||||
\`\`\`
|
||||
|
||||
**Windows (x86_64)**
|
||||
\`\`\`powershell
|
||||
Invoke-WebRequest -Uri "${DL_URL}/muyue-windows-amd64.zip" -OutFile "muyue.zip"
|
||||
Expand-Archive -Path "muyue.zip" -DestinationPath "."
|
||||
Move-Item muyue-windows-amd64.exe C:\Windows\muyue.exe
|
||||
\`\`\`
|
||||
|
||||
**Windows (ARM64)**
|
||||
\`\`\`powershell
|
||||
Invoke-WebRequest -Uri "${DL_URL}/muyue-windows-arm64.zip" -OutFile "muyue.zip"
|
||||
Expand-Archive -Path "muyue.zip" -DestinationPath "."
|
||||
Move-Item muyue-windows-arm64.exe C:\Windows\muyue.exe
|
||||
\`\`\`
|
||||
BODYEOF
|
||||
)
|
||||
RESPONSE=$(curl -s -X POST "${API}" \
|
||||
|
||||
Reference in New Issue
Block a user