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

fix snapcraft&aur

This commit is contained in:
deadc0de6
2024-08-28 15:04:54 +02:00
parent bae806cf0e
commit 9797b3aecd
2 changed files with 9 additions and 2 deletions

View File

@@ -12,7 +12,13 @@ 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/^.*= .\(.*\).$/\1/g'))
version=""
if [ -n "${RELEASE_TAG}" ]; then
version=$(echo "${RELEASE_TAG}" | sed 's#^.*v##g')
else
version=$(cat dotdrop/version.py | grep version | sed 's/^.*= .\(.*\).$/\1/g')
fi
[ -z "${version}" ] && exit 1
sed -i "s/^pkgver=.*$/pkgver=${version}/g" packages/arch-dotdrop/PKGBUILD
cat packages/arch-dotdrop/PKGBUILD
- name: Publish to aur

View File

@@ -24,7 +24,7 @@ grade: stable
apps:
dotdrop:
command: dotdrop
command: bin/dotdrop
plugs:
- home
@@ -45,4 +45,5 @@ parts:
if [ -z ${VERSION} ]; then
VERSION=$(cat dotdrop/version.py | grep version | sed 's/^.*= .\(.*\).$/\1/g')
fi
[ -z "${VERSION}" ] && exit 1
snapcraftctl set-version "${VERSION}"