install jetbrains toolbox
parent
d7abf97803
commit
db7b08be15
|
@ -26,7 +26,7 @@
|
||||||
;;todo: allow to pick specific package sets later
|
;;todo: allow to pick specific package sets later
|
||||||
|
|
||||||
;;installing normal xbps packages
|
;;installing normal xbps packages
|
||||||
(println "installing packages...")
|
(println "installing packages..")
|
||||||
(let [packages-to-install (flatten (vals packages))]
|
(let [packages-to-install (flatten (vals packages))]
|
||||||
(apply safe-sh (concat ["xbps-install" "-y"] packages-to-install)))
|
(apply safe-sh (concat ["xbps-install" "-y"] packages-to-install)))
|
||||||
(println "packages installed")
|
(println "packages installed")
|
||||||
|
@ -40,12 +40,15 @@
|
||||||
|
|
||||||
;;installing jetbrains toolbox
|
;;installing jetbrains toolbox
|
||||||
(println "installing jetbrains toolbox..")
|
(println "installing jetbrains toolbox..")
|
||||||
(let [download-file (str home "/Downloads/toolbox.tar.gz")
|
(let [download-file-path (str home "/Downloads/toolbox.tar.gz")
|
||||||
target-directory (str home "/Applications/JetbrainsToolbox")]
|
target-directory (str home "/Applications/JetbrainsToolbox")
|
||||||
(safe-sh "wget" "-O" download-file toolbox-link)
|
download-file (fs/file download-file-path)]
|
||||||
|
(safe-sh "wget" "-O" download-file-path toolbox-link)
|
||||||
(fs/delete-tree target-directory)
|
(fs/delete-tree target-directory)
|
||||||
(fs/create-dirs target-directory)
|
(fs/create-dirs target-directory)
|
||||||
(fs/gunzip download-file target-directory {:replace-existing true})
|
(safe-sh "tar" "-xzf" download-file-path "-C" target-directory)
|
||||||
(fs/delete (fs/file download-file))
|
(fs/delete download-file)
|
||||||
(safe-sh "chown" (str user ":" user) "-R" target-directory))
|
(safe-sh "chown" (str user ":" user) "-R" target-directory))
|
||||||
(println "jetbrains toolbox installed")
|
(println "jetbrains toolbox installed")
|
||||||
|
|
||||||
|
;;todo: installing http toolkit
|
||||||
|
|
Loading…
Reference in New Issue