From d8c05814df3f4153d6d17f138177781041a176ef Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 7 Feb 2016 16:32:59 +0000 Subject: [PATCH] Add install for atom --- atom/packages.json | 25 +++++++++++++++++++++++++ atom/packages.yml | 23 ----------------------- wscript | 11 +++++++++++ 3 files changed, 36 insertions(+), 23 deletions(-) create mode 100644 atom/packages.json delete mode 100644 atom/packages.yml diff --git a/atom/packages.json b/atom/packages.json new file mode 100644 index 0000000..ff64d85 --- /dev/null +++ b/atom/packages.json @@ -0,0 +1,25 @@ +[ + "sublime-style-column-selection", + "zen", + "activate-power-mode", + "atom-alignment", + "atom-html-preview", + "autoclose-html", + "change-case", + "file-icons", + "glowing-cursor", + "highlight-selected", + "keybinding-cheatsheet", + "language-babel", + "linter", + "linter-eslint", + "merge-conflicts", + "minimap", + "minimap-highlight-selected", + "multi-cursor", + "open-recent", + "react", + "script", + "trailint-spaces", + "monokai" +] diff --git a/atom/packages.yml b/atom/packages.yml deleted file mode 100644 index 0bdaabf..0000000 --- a/atom/packages.yml +++ /dev/null @@ -1,23 +0,0 @@ -- sublime-style-column-selection -- zen -- activate-power-mode -- atom-alignment -- atom-html-preview -- autoclose-html -- change-case -- file-icons -- glowing-cursor -- highlight-selected -- keybinding-cheatsheet -- language-babel -- linter -- linter-eslint -- merge-conflicts -- minimap -- minimap-highlight-selected -- multi-cursor -- open-recent -- react -- script -- trailint-spaces -- monokai diff --git a/wscript b/wscript index 247e994..6781bfc 100644 --- a/wscript +++ b/wscript @@ -30,6 +30,17 @@ def apt_install_extras(ctx): for package in packages: print("apt-get install {} -y".format(package)) +def install_atom(ctx): + FILENAME = "atom.deb" + os.system('wget https://atom.io/download/deb -O {}'.format(FILENAME)) + os.system('dpkg -i {}'.format(FILENAME)) + os.remove(FILENAME) + +def install_atom_packages(ctx): + packages = json.load(open(DIR + '/atom/packages.json')) + packages = " ".join(packages) + os.system("apm install {}".format(packages)) + if __name__ == '__main__': print("Please run this file using waf, not directly.")