mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 18:44:16 +00:00
fix snapcraft&aur
This commit is contained in:
8
.github/workflows/aur-release.yml
vendored
8
.github/workflows/aur-release.yml
vendored
@@ -12,7 +12,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RELEASE_TAG: ${{ github.ref }}
|
RELEASE_TAG: ${{ github.ref }}
|
||||||
run: |
|
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
|
sed -i "s/^pkgver=.*$/pkgver=${version}/g" packages/arch-dotdrop/PKGBUILD
|
||||||
cat packages/arch-dotdrop/PKGBUILD
|
cat packages/arch-dotdrop/PKGBUILD
|
||||||
- name: Publish to aur
|
- name: Publish to aur
|
||||||
|
|||||||
3
packages/snap/snapcraft.yaml
vendored
3
packages/snap/snapcraft.yaml
vendored
@@ -24,7 +24,7 @@ grade: stable
|
|||||||
|
|
||||||
apps:
|
apps:
|
||||||
dotdrop:
|
dotdrop:
|
||||||
command: dotdrop
|
command: bin/dotdrop
|
||||||
plugs:
|
plugs:
|
||||||
- home
|
- home
|
||||||
|
|
||||||
@@ -45,4 +45,5 @@ parts:
|
|||||||
if [ -z ${VERSION} ]; then
|
if [ -z ${VERSION} ]; then
|
||||||
VERSION=$(cat dotdrop/version.py | grep version | sed 's/^.*= .\(.*\).$/\1/g')
|
VERSION=$(cat dotdrop/version.py | grep version | sed 's/^.*= .\(.*\).$/\1/g')
|
||||||
fi
|
fi
|
||||||
|
[ -z "${VERSION}" ] && exit 1
|
||||||
snapcraftctl set-version "${VERSION}"
|
snapcraftctl set-version "${VERSION}"
|
||||||
|
|||||||
Reference in New Issue
Block a user