mirror of
https://github.com/wofferl/proxmox-backup-arm64
synced 2025-12-06 00:13:41 +00:00
add possibility to download a specific release
This commit is contained in:
@@ -5,11 +5,16 @@ At least 4 GB are required for compiling. On devices with low memory, SWAP must
|
|||||||
## Download pre-built packages
|
## Download pre-built packages
|
||||||
You can find unoffical debian packages for bullseye that are created with the build.sh script and github actions at https://github.com/wofferl/proxmox-backup-arm64/releases.
|
You can find unoffical debian packages for bullseye that are created with the build.sh script and github actions at https://github.com/wofferl/proxmox-backup-arm64/releases.
|
||||||
|
|
||||||
With the script you can also download all files of the latest release at once.
|
With the script you can also download all files of the latest release at once
|
||||||
```
|
```
|
||||||
./build.sh download
|
./build.sh download
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or of a specific version
|
||||||
|
```
|
||||||
|
./build.sh download=2.4.3-1
|
||||||
|
```
|
||||||
|
|
||||||
## Build manually
|
## Build manually
|
||||||
### Install build essentials and dependencies
|
### Install build essentials and dependencies
|
||||||
```
|
```
|
||||||
|
|||||||
13
build.sh
13
build.sh
@@ -138,8 +138,9 @@ function set_package_info() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function download_release() {
|
function download_release() {
|
||||||
release_url="https://api.github.com/repos/wofferl/proxmox-backup-arm64/releases/latest"
|
version=${1:-latest}
|
||||||
echo "Downloading latest released files to "${PACKAGES}
|
release_url="https://api.github.com/repos/wofferl/proxmox-backup-arm64/releases/${version}"
|
||||||
|
echo "Downloading ${version} released files to "${PACKAGES}
|
||||||
for download_url in $(curl -sSf ${release_url} | sed -n '/browser_download_url/ s/.*\(https.*\)"/\1/p'); do
|
for download_url in $(curl -sSf ${release_url} | sed -n '/browser_download_url/ s/.*\(https.*\)"/\1/p'); do
|
||||||
file=$(basename ${download_url})
|
file=$(basename ${download_url})
|
||||||
if [ -e ${PACKAGES}/${file} ]; then
|
if [ -e ${PACKAGES}/${file} ]; then
|
||||||
@@ -188,8 +189,12 @@ do
|
|||||||
export CC=/usr/bin/aarch64-linux-gnu-gcc
|
export CC=/usr/bin/aarch64-linux-gnu-gcc
|
||||||
export DEB_HOST_MULTIARCH=aarch64-linux-gnu
|
export DEB_HOST_MULTIARCH=aarch64-linux-gnu
|
||||||
;;
|
;;
|
||||||
download)
|
download*)
|
||||||
download_release
|
if [[ "$1" =~ download=[0-9.-]+ ]]; then
|
||||||
|
download_release tags/${1/*=}
|
||||||
|
else
|
||||||
|
download_release
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
github)
|
github)
|
||||||
|
|||||||
Reference in New Issue
Block a user