Skip to content

Commit

Permalink
Merge pull request Veil-Framework#344 from nkitan/patch-2
Browse files Browse the repository at this point in the history
Added Support for Manjaro
  • Loading branch information
ChrisTruncer authored Mar 25, 2020
2 parents e65fa55 + 2b0c17b commit ab0ba08
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The following OSs are officially supported:
The following OSs are likely able to run Veil:

- Arch Linux
- Manjaro Linux
- BlackArch Linux
- Deepin 15+
- Elementary
Expand Down
21 changes: 17 additions & 4 deletions config/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
os="$( awk -F '=' '/^ID=/ {print $2}' /etc/os-release 2>&- )"

if [ "${os}" == "arch" ] \
|| [ "${os}" == "manjaro" ]\
|| [ "${os}" == "blackarch" ] \
|| [ "${os}" == "debian" ] \
|| [ "${os}" == "deepin" ] \
Expand Down Expand Up @@ -32,16 +33,24 @@ fi

userprimarygroup="$( id -Gn "${trueuser}" | cut -d' ' -f1 )"
arch="$( uname -m )"
if [ "${os}" == "\"void\"" ]; then

if [ "${os}" == "manjaro" ]; then
osversion="$(uname -r)"
elif [ "${os}" == "\"void\"" ]; then
osversion="$(uname -r)"
else
osversion="$( awk -F '=' '/^VERSION_ID=/ {print $2}' /etc/os-release 2>&- | sed 's/"//g' )"
fi
if [ "${os}" == "\"void\"" ]; then

if [ "${os}" == "manjaro" ]; then
osmajversion="$(uname -a | cut -f3 -d\ | cut -f-2 -d.)"
elif [ "${os}" == "\"void\"" ]; then
osmajversion="$(uname -a | cut -f3 -d\ | cut -f-2 -d.)"
else
osmajversion="$( awk -F '["=]' '/^VERSION_ID=/ {print $3}' /etc/os-release 2>&- | cut -d'.' -f1 )"
osmajversion="$( awk -F '["=]' '/^VERSION_ID=/ {print $3}' /etc/os-release 2>&- | cut -d'.' -f1 )"
fi


veildir="/var/lib/veil"
outputdir="${veildir}/output"
dependenciesdir="${veildir}/setup-dependencies"
Expand Down Expand Up @@ -386,7 +395,8 @@ func_package_deps(){
echo -e " ${RED}[ERROR] ${msg}${RESET}\n"
fi

elif [ "${os}" == "arch" ]; then
elif [ "${os}" == "arch" ] \
|| [ "${os}" == "manjaro" ]; then
AUR_packages()
{
if [ $1 == 'yay' ]; then
Expand Down Expand Up @@ -589,6 +599,7 @@ func_package_deps(){
echo -e " ${RED}[ERROR] ${msg}${RESET}\n"
fi
elif [ "${os}" == "arch" ] \
|| [ "${os}" == "blackarch" ] \
|| [ "${os}" == "blackarch" ]; then
echo -e "\n\n [*] ${YELLOW}Installing Wine 32-bit on x86_64 System (via PACMAN)${RESET}\n"
if grep -Fxq "#[multilib]" /etc/pacman.conf; then
Expand Down Expand Up @@ -1038,6 +1049,8 @@ else
echo -e " [I] ${YELLOW}Arch Linux ${arch} detected...${RESET}\n"
elif [ "${os}" == "blackarch" ]; then
echo -e " [I] ${YELLOW}BlackArch Linux ${arch} detected...${RESET}\n"
elif [ "${os}" == "manjaro" ]; then
echo -e " [I] ${YELLOW}Manjaro Linux ${arch} detected...${RESET}\n"
elif [ "${os}" == "debian" ]; then
echo -e " [!] ${YELLOW}Debian Linux sid/TESTING ${arch} *possibly* detected..."
echo -e " If you are not currently running Debian Testing, you should exit this installer!${RESET}\n"
Expand Down

0 comments on commit ab0ba08

Please sign in to comment.