master
Can202 2021-09-06 18:58:54 -03:00
parent 51aab00f64
commit bd0635ee9a
8 changed files with 15 additions and 28 deletions

View File

@ -3,7 +3,7 @@ Priority: optional
Section: admin
Maintainer: Can202 <mgoopazo@gmail.com>
Architecture: amd64
Version: 0.1
Version: 0.2
Depends: python3, lxterminal
Description: Installer
Simple Visual Installer (apt)

View File

@ -1,2 +1,4 @@
#!/bin/bash
ln /usr/lib64/boxpackage/boxpackage /usr/bin/boxpackage
ln /usr/lib64/boxpackage/boxpackage-su /usr/bin/boxpackage-su
ln /usr/lib64/boxpackage/boxpackage-sudo /usr/bin/boxpackage-sudo

View File

@ -1,2 +1,4 @@
#!/bin/bash
rm -f /usr/bin/boxpackage
rm -f /usr/bin/boxpackage-sudo
rm -f /usr/bin/boxpackage-su

View File

@ -1,5 +1,7 @@
#!/bin/bash
xdg-mime default boxpackage.desktop application/vnd.debian.binary-package
if [ ! -z $1 ]
then
@ -17,6 +19,7 @@ then
exit
fi
echo "Do you want to use su? (Y/n)"
read rootcommand
if [ $rootcommand = Y ] || [ $rootcommand = y ]
then
su root -c '/usr/lib64/boxpackage/init $1'

View File

@ -1,15 +1,5 @@
#!/bin/bash
if [ ! -z $1 ]
then
if [ $1 = "sudo" ]
then
sudo /usr/lib64/boxpackage/init
fi
if [ $1 = "su" ]
then
su root -c '/usr/lib64/boxpackage/init'
fi
else
echo "Error, waiting \$1"
fi
xdg-mime default boxpackage.desktop application/vnd.debian.binary-package
su root -c '/usr/lib64/boxpackage/init'

View File

@ -1,15 +1,5 @@
#!/bin/bash
if [ ! -z $1 ]
then
if [ $1 = "sudo" ]
then
sudo /usr/lib64/boxpackage/init
fi
if [ $1 = "su" ]
then
su root -c '/usr/lib64/boxpackage/init'
fi
else
echo "Error, waiting \$1"
fi
xdg-mime default boxpackage.desktop application/vnd.debian.binary-package
sudo /usr/lib64/boxpackage/init

Binary file not shown.

View File

@ -1,5 +1,5 @@
[Desktop Entry]
Name=BoxPackage
Name=BoxPackage (Install just)
Exec=boxpackage
Icon=boxpackage
Terminal=True