1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 14:31:46 +00:00

fix snapcraft&aur

This commit is contained in:
deadc0de6
2024-08-28 14:59:34 +02:00
parent 33a50dc468
commit bae806cf0e
2 changed files with 5 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ jobs:
env:
RELEASE_TAG: ${{ github.ref }}
run: |
version=$([ -n "${RELEASE_TAG}" ] && (echo "${RELEASE_TAG}" | sed 's#^.*v##g') || (cat dotdrop/version.py | grep version |sed "s/^__vers.*= '\([^']*\)'/\1/g"))
version=$([ -n "${RELEASE_TAG}" ] && (echo "${RELEASE_TAG}" | sed 's#^.*v##g') || (cat dotdrop/version.py | grep version | sed 's/^.*= .\(.*\).$/\1/g'))
sed -i "s/^pkgver=.*$/pkgver=${version}/g" packages/arch-dotdrop/PKGBUILD
cat packages/arch-dotdrop/PKGBUILD
- name: Publish to aur

View File

@@ -38,7 +38,10 @@ parts:
source: .
plugin: nil
override-build: |
VERSION=$(git describe --abbrev=0 --tags | sed 's/^v//g')
VERSION=""
if [ hash git &>/dev/null ]; then
VERSION=$(git describe --abbrev=0 --tags | sed 's/^v//g')
fi
if [ -z ${VERSION} ]; then
VERSION=$(cat dotdrop/version.py | grep version | sed 's/^.*= .\(.*\).$/\1/g')
fi