From 132f3f21d02a7e2922a2f5ce1f0b07586a73055e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=28=D0=A5?=
 =?UTF-8?q?=D1=80=D0=B0=D0=BC=D1=8B=D1=87=D0=AA=29=20=D0=A5=D1=80=D0=B0?=
 =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= <xpamych@yandex.ru>
Date: Thu, 3 Apr 2025 22:12:15 +0300
Subject: [PATCH] vial 0.7.3-1

---
 vial/alr.sh         | 15 +++++++++++----
 vial/postinstall.sh |  2 +-
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/vial/alr.sh b/vial/alr.sh
index 3a126bc..372be3d 100644
--- a/vial/alr.sh
+++ b/vial/alr.sh
@@ -1,6 +1,6 @@
 name='vial'
-version='0.7.1'
-release='8'
+version='0.7.3'
+release='1'
 desc='Vial is an open-source cross-platform (Windows, Linux and Mac) GUI and a QMK fork for configuring your keyboard in real time, similar to VIA.'
 homepage='https://get.vial.today/'
 maintainer="Евгений Храмов <xpamych@yandex.ru>"
@@ -20,6 +20,7 @@ scripts=(
 
 prepare() {
     chmod +x Vial-v${version}-x86_64.AppImage
+    sleep 5
     ./Vial-v${version}-x86_64.AppImage --appimage-extract
 }
 
@@ -33,8 +34,7 @@ build() {
 package() {
 
     install -Dm755 "${srcdir}/Vial-v${version}-x86_64.AppImage" "${pkgdir}/opt/${name}/${name}.AppImage"
-
-    install -Dm644 "${srcdir}/squashfs-root/Vial.desktop" "${pkgdir}/usr/share/applications/${name}.desktop"
+    install-desktop ${srcdir}/squashfs-root/Vial.desktop vial
 
     install -dm755 "${pkgdir}/usr/share/"
     cp -a "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
@@ -45,3 +45,10 @@ package() {
     install -Dm644 "${scriptdir}/99-vial.rules" "${pkgdir}/usr/lib/udev/rules.d/99-vial.rules"
 }
 
+files() {
+  echo ./opt/vial/vial.AppImage
+  echo ./usr/bin/vial
+  echo ./usr/lib/udev/rules.d/99-vial.rules
+  echo ./usr/share/applications/vial
+  printf '"%s" ' ./usr/share/icons/hicolor/**/apps/Vial.png
+}
diff --git a/vial/postinstall.sh b/vial/postinstall.sh
index de717d2..8703a37 100644
--- a/vial/postinstall.sh
+++ b/vial/postinstall.sh
@@ -1,2 +1,2 @@
 #!/bin/env bash
-udevadm control --reload-rules
\ No newline at end of file
+udevadm control --reload-rules && udevadm trigger
\ No newline at end of file