OSDN Git Service

fix flatpak opener
[instantos/instantARCH.git] / depend / system.sh
index 35cad0f..0b54aa5 100755 (executable)
@@ -13,30 +13,51 @@ while ! pacman -S xorg --noconfirm --needed; do
 
 done
 
+# the comments are used for parsing while building a live iso. Do not remove
+
+# install begin
 while ! pacman -S --noconfirm --needed \
     sudo \
     lightdm \
     bash \
     zsh \
-    vim \
     xterm \
     systemd-swap \
     neofetch \
     pulseaudio \
+    granite \
     alsa-utils \
     usbutils \
     lightdm-gtk-greeter \
     inetutils \
     xdg-desktop-portal-gtk \
-    steam \
-    alacritty \
+    xorg-xinit \
     firefox \
+    nitrogen \
     lshw \
+    gxkb \
+    udiskie \
+    ntfs-3g \
     gedit \
+    ttf-liberation \
+    ttf-joypixels \
     mpv \
+    bc \
+    gvfs-mtp \
+    exfat-utils \
+    unzip \
+    engrampa \
+    unrar \
+    p7zip \
     xdg-user-dirs-gtk \
+    noto-fonts-emoji \
+    xf86-input-evdev \
+    xf86-input-synaptics \
     accountsservice \
-    grub; do
+    cups \
+    system-config-printer \
+    gnome-font-viewer \
+    grub; do # install end
 
     sleep 10
     command -v reflector &&
@@ -44,3 +65,37 @@ while ! pacman -S --noconfirm --needed \
         pacman -Sy --noconfirm
 
 done
+
+# iso for postinstall guestadditions
+if iroot guestadditions; then
+    echo "installing virtualbox guest addidions"
+    pacman -S --noconfirm --needed virtualbox-guest-iso
+fi
+
+# optional extra packages
+if iroot packages &>/dev/null; then
+    echo "installing extra packages"
+    iroot packages | pacman -S --noconfirm --needed -
+fi
+
+if command -v systemctl; then
+    pacman -S --noconfirm --needed steam steam-native-runtime
+fi
+
+# artix packages
+if command -v sv; then
+    echo "installing additional runit packages"
+    pacman -S --noconfirm --needed lightdm-runit networkmanager-runit
+fi
+
+# auto install processor microcode
+if uname -m | grep '^x'; then
+    echo "installing microcode"
+    if lscpu | grep -i 'name' | grep -i 'amd'; then
+        echo "installing AMD microcode"
+        pacman -S --noconfirm --needed amd-ucode
+    elif lscpu | grep -i 'name' | grep -i 'intel'; then
+        echo "installing Intel microcode"
+        pacman -S --noconfirm --needed intel-ucode
+    fi
+fi