From cf951db271d5e02d2bf97c10447e44095954dbca Mon Sep 17 00:00:00 2001 From: UriHerrera Date: Wed, 19 Jul 2023 16:34:56 -0600 Subject: [PATCH] update pkg --- .gitignore | 7 +++++++ debian/changelog | 6 ++++++ debian/postinst | 23 +++++++++++++---------- 3 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c587cb --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Compiled source # +################### +*.directory +*.bak +/.project +*.db +*.qmlc diff --git a/debian/changelog b/debian/changelog index bc67566..16996ff 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +nx-desktop-appimages-vfio (0.0.3) nitrux; urgency=medium + + * Update postinst. + + -- Uri Herrera Wed, 19 Jul 2023 15:59:00 -0500 + nx-desktop-appimages-vfio (0.0.2) nitrux; urgency=medium * Update url. diff --git a/debian/postinst b/debian/postinst index ba84e73..aa8376e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,14 +1,17 @@ -#! /bin/bash +#!/bin/bash set -x -{ - printf "%s %s\n" \ - vmetal "https://raw.githubusercontent.com/Nitrux/old-storage/master/AppImages/VMetal-x86_64.AppImage" -} | { - while read name url; do - axel -a -q -n 8 -k -U "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36" "$url" -o /Applications/$name - done -} +name="vmetal" +owner="Nitrux" +repo="old-storage" +branch="master" +path="AppImages/VMetal-x86_64.AppImage" +output_dir="/Applications" -chmod +x /Applications/* +url="https://github.com/repos/$owner/$repo/contents/$path?ref=$branch" +download_url=$(curl -s "$url" | grep -o '"download_url": "[^"]*' | cut -d'"' -f4) + +axel -a -q -n 8 -k -U "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36" "$download_url" -o "$output_dir/$name" + +chmod +x "$output_dir/$name"