packaging
/
awl
Archived
1
0
Fork 0
This repository has been archived on 2023-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
awl/prepare-pages.sh

31 lines
514 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ -z "$TAG" ]; then
# drone
if [ -n "$DRONE_TAG" ]; then
TAG=$DRONE_TAG
fi
# woodpecker
if [ -n "$CI_COMMIT_TAG" ]; then
TAG=$CI_COMMIT_TAG
fi
if [ -z "$TAG" ]; then
echo "\$TAG not set, exiting"
exit 1
fi
fi
arches=("amd64" "386" "armv6" "arm64")
notag=${TAG//v/}
for arch in "${arches[@]}"; do
wget "https://git.froth.zone/sam/awl/releases/download/$TAG/awl_${notag}_linux_${arch}.deb"
done
reprepro includedeb awl ./*.deb
mkdir -p repo
mv dists/ pool/ repo/