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:
8
.github/workflows/aur-release.yml
vendored
8
.github/workflows/aur-release.yml
vendored
@@ -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
|
||||
|
||||
3
packages/snap/snapcraft.yaml
vendored
3
packages/snap/snapcraft.yaml
vendored
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user