installer.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. RELEASEVER="0.7.1"
  2. echo "plainInstaller $RELEASEVER"
  3. echo "==> Installing plainDE into your system."
  4. echo " Please ensure you are allowed to use sudo"
  5. echo " or run root installer."
  6. echo ":: Press enter to proceed or Ctrl-C to cancel."
  7. read
  8. echo "==> Make sure all dependencies are installed."
  9. echo ":: Press enter to proceed or Ctrl-C to cancel."
  10. read
  11. # Removing old files
  12. sudo rm -rf /usr/share/plainDE
  13. sudo rm -rf /usr/bin/plain{Panel,About,ControlCenter}
  14. # Preventing from mess in current directory :)
  15. mkdir plainDE-tmp-src
  16. cd plainDE-tmp-src
  17. # Cloning all repos
  18. git clone https://github.com/plainDE/plainBase
  19. git clone https://github.com/plainDE/plainPanel
  20. git clone https://github.com/plainDE/plainAbout
  21. git clone https://github.com/plainDE/plainControlCenter
  22. git clone https://github.com/plainDE/plainArtwork
  23. # Creating plainDE directory and copying base files
  24. sudo mkdir /usr/share/plainDE
  25. sudo cp -R plainBase/usr/* /usr/
  26. sudo chmod 755 /usr/share/plainDE/tools/*
  27. # Copying artwork
  28. sudo cp -R plainArtwork/flags /usr/share/
  29. sudo mkdir /usr/share/plainDE/icons
  30. sudo cp -R plainArtwork/icons /usr/share/plainDE/
  31. # Compiling plainPanel
  32. cd plainPanel
  33. git checkout $RELEASEVER
  34. qmake
  35. make
  36. sudo install -m 0755 plainPanel /usr/bin/plainPanel
  37. cd ..
  38. # Compiling plainAbout
  39. cd plainAbout
  40. git checkout $RELEASEVER
  41. qmake
  42. make
  43. sudo install -m 0755 plainAbout /usr/bin/plainAbout
  44. cd ..
  45. # Compiling plainControlCenter
  46. cd plainControlCenter
  47. git checkout $RELEASEVER
  48. qmake
  49. make
  50. sudo install -m 0755 plainControlCenter /usr/bin/plainControlCenter
  51. cd ..
  52. cd ..
  53. # Removing temprorary files
  54. rm -rf plainDE-tmp-src
  55. echo "Installation finished. Now add 'plainPanel' in autostart of your window manager and start exploring new DE!"