Skip to content

Commit

Permalink
update pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
UriHerrera committed Jul 19, 2023
1 parent 1b9d45d commit cf951db
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Compiled source #
###################
*.directory
*.bak
/.project
*.db
*.qmlc
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
nx-desktop-appimages-vfio (0.0.3) nitrux; urgency=medium

* Update postinst.

-- Uri Herrera <uri_herrera@nxos.org> Wed, 19 Jul 2023 15:59:00 -0500

nx-desktop-appimages-vfio (0.0.2) nitrux; urgency=medium

* Update url.
Expand Down
23 changes: 13 additions & 10 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit cf951db

Please sign in to comment.