mirror of https://github.com/Fabio286/antares.git
ci: update snapcraft.yaml
This commit is contained in:
parent
83b3ca563a
commit
e03f2eef49
|
@ -4,7 +4,7 @@ summary: Open source SQL client made to be simple and complete.
|
||||||
description: |
|
description: |
|
||||||
Antares is an SQL client that aims to become an useful and complete tool, especially for developers.
|
Antares is an SQL client that aims to become an useful and complete tool, especially for developers.
|
||||||
The target is to support as many databases as possible, and all major operating systems, including the ARM versions.
|
The target is to support as many databases as possible, and all major operating systems, including the ARM versions.
|
||||||
base: core20
|
base: core22
|
||||||
|
|
||||||
grade: stable
|
grade: stable
|
||||||
confinement: strict
|
confinement: strict
|
||||||
|
@ -31,10 +31,10 @@ parts:
|
||||||
fi
|
fi
|
||||||
# Get the latest releases json
|
# Get the latest releases json
|
||||||
echo "Get GitHub releases..."
|
echo "Get GitHub releases..."
|
||||||
wget --quiet https://api.github.com/repos/fabio286/antares/releases/latest -O releases.json
|
wget --quiet https://api.github.com/repos/fabio286/antares/releases -O releases.json
|
||||||
# Get the version from the tag_name and the download URL.
|
# Get the version from the tag_name and the download URL.
|
||||||
VERSION=$(jq . releases.json | grep tag_name | cut -d'"' -f4 | sed s'/release-//')
|
VERSION=$(jq . releases.json | grep tag_name | head -1 | cut -d'"' -f4 | sed s'/release-//')
|
||||||
DEB_URL=$(cat releases.json | jq -r ".assets[] | select(.name | test(\"${FILTER}\")) | .browser_download_url")
|
DEB_URL=$(cat releases.json | jq -r ".[0].assets[] | select(.name | test(\"${FILTER}\")) | .browser_download_url")
|
||||||
DEB=$(basename "${DEB_URL}")
|
DEB=$(basename "${DEB_URL}")
|
||||||
echo "Downloading ${DEB_URL}..."
|
echo "Downloading ${DEB_URL}..."
|
||||||
wget --quiet "${DEB_URL}" -O "${SNAPCRAFT_PART_INSTALL}/${DEB}"
|
wget --quiet "${DEB_URL}" -O "${SNAPCRAFT_PART_INSTALL}/${DEB}"
|
||||||
|
@ -119,10 +119,10 @@ parts:
|
||||||
cleanup:
|
cleanup:
|
||||||
after: [antares]
|
after: [antares]
|
||||||
plugin: nil
|
plugin: nil
|
||||||
build-snaps: [gnome-3-38-2004]
|
build-snaps: [gnome-42-2204]
|
||||||
override-prime: |
|
override-prime: |
|
||||||
set -eux
|
set -eux
|
||||||
cd /snap/gnome-3-38-2004/current
|
cd /snap/gnome-42-2204/current
|
||||||
find . -type f,l -exec rm -f $SNAPCRAFT_PRIME/{} \;
|
find . -type f,l -exec rm -f $SNAPCRAFT_PRIME/{} \;
|
||||||
|
|
||||||
mdns-lookup:
|
mdns-lookup:
|
||||||
|
@ -136,7 +136,7 @@ parts:
|
||||||
- libnss-mdns
|
- libnss-mdns
|
||||||
override-prime: |
|
override-prime: |
|
||||||
set -eux
|
set -eux
|
||||||
sed -Ee 's/^\s*hosts:(\s+)files/hosts:\1files mdns4_minimal \[NOTFOUND=return\]/' /snap/core20/current/etc/nsswitch.conf > $SNAPCRAFT_STAGE/etc/nsswitch.conf
|
sed -Ee 's/^\s*hosts:(\s+)files/hosts:\1files mdns4_minimal \[NOTFOUND=return\]/' /snap/core22/current/etc/nsswitch.conf > $SNAPCRAFT_STAGE/etc/nsswitch.conf
|
||||||
snapcraftctl prime
|
snapcraftctl prime
|
||||||
prime:
|
prime:
|
||||||
- lib/$SNAPCRAFT_ARCH_TRIPLET/libnss_mdns4_minimal*
|
- lib/$SNAPCRAFT_ARCH_TRIPLET/libnss_mdns4_minimal*
|
||||||
|
@ -146,10 +146,7 @@ apps:
|
||||||
antares:
|
antares:
|
||||||
command: opt/Antares/antares --no-sandbox
|
command: opt/Antares/antares --no-sandbox
|
||||||
desktop: usr/share/applications/antares.desktop
|
desktop: usr/share/applications/antares.desktop
|
||||||
extensions: [gnome-3-38]
|
extensions: [gnome]
|
||||||
environment:
|
|
||||||
# Fallback to XWayland if running in a Wayland session.
|
|
||||||
DISABLE_WAYLAND: 1
|
|
||||||
plugs:
|
plugs:
|
||||||
- browser-support
|
- browser-support
|
||||||
- cups-control
|
- cups-control
|
||||||
|
|
Loading…
Reference in New Issue