Restructured scripts and new list of apps/packages

James Peret 7 years ago
parent
commit
ec4fd920bc
10 changed files with 206 additions and 146 deletions
  1. 133 0
      config-apps.sh
  2. 0 0
      config-atom.sh
  3. 0 0
      config-mac.sh
  4. 36 0
      config-node.sh
  5. 0 0
      core/core.sh
  6. 0 0
      core/countdown.sh
  7. 33 29
      install.sh
  8. 0 12
      node-config.sh
  9. 4 4
      readme.md
  10. 0 101
      script.sh

+ 133 - 0
config-apps.sh

@@ -0,0 +1,133 @@
1
+#!/bin/bash
2
+
3
+# Load installer script dependencies
4
+DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5
+source $DIR/core.sh
6
+
7
+# Browsers
8
+install_app "Google Chrome" "Google Chrome.app" "google-chrome"
9
+install_app "Firefox" "Firefox.app" "firefox"
10
+install_app "Safari" "Safari.app"
11
+install_app "Opera" "Opera.app" "opera"
12
+
13
+# COMMs
14
+install_app "Skype" "Skype.app" "skype"
15
+install_app "Slack" "Slack.app" "slack"
16
+install_app "WhatsApp" "WhatsApp.app" "whatsapp"
17
+
18
+# Office
19
+install_app "Pages" "Pages.app"
20
+install_app "Numbers" "Numbers.app"
21
+install_app "Keynote" "Keynote.app"
22
+install_app "Microsoft Excel" "Microsoft Excel.app"
23
+install_app "Microsoft PowerPoint" "Microsoft PowerPoint.app"
24
+install_app "Microsoft Word" "Microsoft Word.app"
25
+#install_app "Gitbook Editor" "Gitbook Editor.app" "gitbook-editor"
26
+
27
+# Design
28
+install_app "Adobe Acrobat X Pro" "Adobe Acrobat X Pro/Adobe Acrobat Pro.app"
29
+install_app "Adobe Bridge CS6" "Adobe Bridge CS6/Adobe Bridge CS6.app"
30
+install_app "Adobe Illustrator CS6" "Adobe Illustrator CS6"
31
+install_app "Adobe InDesign CS6" "Adobe InDesign CS6/Adobe InDesign CS6.app"
32
+install_app "Adobe Photoshop CS6" "Adobe Photoshop CS6/Adobe Photoshop CS6.app"
33
+#install_app "BrushPilot" "BrushPilot.app"
34
+install_app "xScope" "xScope.app"
35
+install_app "Pickr" "Pickr.app"
36
+install_app "Sketch" "Sketch.app"
37
+#install_app "Sketch Toolbox" "Sketch Toolbox.app"
38
+install_app "OmniGraffle" "OmniGraffle.app"
39
+install_app "FontLab" "FontLab VI.app"
40
+
41
+# Libraries
42
+install_app "Evernote" "Evernote.app" "evernote"
43
+install_app "Google Photos Backup" "Google Photos Backup.app" "google-photos-backup"
44
+#install_app "Aperture" "Aperture.app"
45
+#install_app "FontCase" "FontCase.app"
46
+#install_app "Ember" "Ember.app"
47
+
48
+# Dev
49
+install_app "Xcode" "Xcode.app"
50
+install_app "Atom" "Atom.app" "atom"
51
+install_app "Dash" "Dash.app" "dash"
52
+install_app "iTerm" "iTerm.app" "iterm2"
53
+install_app "Mou" "Mou.app" "mou"
54
+install_app "Transmit" "Transmit.app" "transmit"
55
+install_app "Postgres" "Postgres.app" "postgres"
56
+install_app "Monodraw" "Monodraw.app" "monodraw"
57
+install_app "Go2Shell" "Go2Shell.app" "go2shell"
58
+
59
+# Video
60
+install_app "Final Cut Pro" "Final Cut Pro.app"
61
+install_app "Compressor" "Compressor.app"
62
+install_app "Adobe After Effects CC" "Adobe After Effects CC 2014/Adobe After Effects CC 2014.app"
63
+install_app "Adobe Premiere Pro CS6" "Adobe Premiere Pro CS6/Adobe Premiere Pro CS6.app"
64
+install_app "ScreenFlow" "ScreenFlow.app"
65
+install_app "Screenflick" "ScreenFlick.app"
66
+install_app "HandBrake" "HandBrake.app" "handbrake"
67
+install_app "HitFilm 4 Express" "HitFilm 4 Express.app"
68
+install_app "Shotcut" "Shotcut.app" "shotcut"
69
+install_app "Lumen" "Lumen.app"
70
+install_app "Livestream Producer" "Livestream Producer.app" "livestream-producer"
71
+
72
+# Audio
73
+install_app "Logic Pro X" "Logic Pro X.app"
74
+install_app "Main Stage" "Main Stage.app"
75
+install_app "Arturia Moog Modular" "Arturia/Modular V2.app"
76
+install_app "Arturia ARP 2600" "Arturia/ARP 2600 V2.app"
77
+install_app "Arturia CS-80" "Arturia/CS-80 V2.app"
78
+install_app "Arturia Jupiter-8" "Arturia/Jupiter-8 V2.app"
79
+install_app "Audio Hijack" "Audio Hijack.app"
80
+install_app "Sonic Pi" "Sonic Pi.app" "sonic-pi"
81
+install_app "Bfxr" "Bfxr.app" "bfxr"
82
+install_app "xAct" "xAct.app" "xact"
83
+install_app "Soundflower" "Soundflower" "soundflower"
84
+install_app "Reason" "Reason 8/Reason.app"
85
+install_app "Mixlr" "Mixlr.app" "mixlr"
86
+
87
+# Game Design/ 3D
88
+install_app "Cinema 4D" "Cinema 4D.app"
89
+install_app "Unity 3D" "Unity/Unity.app" "unity"
90
+install_app "Unity Web Player" "unity-web-player" "unity-web-player"
91
+install_app "Substance Designer" "Substance Designer.app"
92
+install_app "Z-Brush" "zBrush.app"
93
+install_app "Hexels" "Hexels.app"
94
+install_app "Twine" "Twine.app" "twine"
95
+
96
+# Utilities
97
+install_app "1Password" "1Password.app"
98
+install_app "Alfred 2" "Alfred 2.app"
99
+install_app "AppCleaner" "AppCleaner.app" "appcleaner"
100
+install_app "Dropbox" "Dropbox.app" "dropbox"
101
+install_app "Nylas N1" "Nylas N1.app" "nylas-n1"
102
+install_app "HyperSwitch" "HyperSwitch.app" "hyperswitch"
103
+install_app "iScrobbler" "iScrobbler.app"
104
+install_app "iStat Menus" "iStat Menus.app"
105
+install_app "Sunrise" "Sunrise.app"
106
+install_app "The Unarchiver" "The Unarchiver.app" "the-unarchiver"
107
+install_app "Transmission" "Transmission.app" "transmission"
108
+install_app "VLC" "VLC.app" "vlc"
109
+install_app "VLC Remote" "VLC Remote Setup.app" "vlc-remote"
110
+install_app "DaisyDisk" "DaisyDisk.app"
111
+install_app "Soulver" "Soulver.app"
112
+install_app "SerialSeeker" "SerialSeeker.app"
113
+install_app "Wifi Explorer" "Wifi Explorer.app"
114
+install_app "Network Radar" "Network Radar.app"
115
+install_app "OmniPlan" "OmniPlan.app"
116
+install_app "SiteSucker" "SiteSucker.app" "sitesucker"
117
+install_app "OmniFocus" "OmniFocus.app"
118
+install_app "PopcornTime" "PopcornTime.app"
119
+install_app "RescueTime" "RescueTime.app" "rescuetime"
120
+install_app "SleepDisplay" "SleepDisplay.app"
121
+install_app "Spectacle" "spectacle" "spectacle"
122
+install_app "Awaken" "Awaken.app"
123
+install_app "ControllerMate" "ControllerMate.app" "controllermate"
124
+install_app "iExplorer" "iExplorer.app" "iexplorer"
125
+install_app "Path Finder" "Path Finder.app"
126
+install_app "Lightgallery" "Lightgallery.app"
127
+
128
+install_app "Quicklook Markdown" "qlmarkdown" "qlmarkdown"
129
+install_app "Quicklook JSON" "quicklook-json" "quicklook-json"
130
+
131
+# Games
132
+install_app "Minecraft" "Minecraft.jar" "minecraft"
133
+install_app "Kerbal Space Program" "ksp.app"

atom-installer.sh → config-atom.sh


configs.sh → config-mac.sh


+ 36 - 0
config-node.sh

@@ -0,0 +1,36 @@
1
+# Load installer script dependencies
2
+DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
3
+source $DIR/core.sh
4
+
5
+# Set permissions to the node modules folder
6
+# sudo chown -R $(whoami) ~/.npm
7
+# sudo chown -R $(whoami) /usr/local/lib/node_modules/
8
+# more info: https://docs.npmjs.com/getting-started/fixing-npm-permissions
9
+
10
+install_npm_package "grunt"
11
+install_npm_package "grunt-cli"
12
+install_npm_package "grunt-contrib-concat"
13
+install_npm_package "grunt-contrib-copy"
14
+install_npm_package "grunt-contrib-cssmin"
15
+install_npm_package "grunt-contrib-jshint"
16
+install_npm_package "grunt-contrib-nodeunit"
17
+install_npm_package "grunt-contrib-qunit"
18
+install_npm_package "grunt-contrib-uglify"
19
+install_npm_package "grunt-contrib-watch"
20
+install_npm_package "grunt-filerev"
21
+install_npm_package "grunt-serve"
22
+install_npm_package "grunt-sftp-deploy"
23
+install_npm_package "grunt-usemin"
24
+install_npm_package "grunt-wiredep"
25
+install_npm_package "jshint-stylish"
26
+install_npm_package "bower"
27
+install_npm_package "grunt-bower"
28
+install_npm_package "yo"
29
+install_npm_package "serve"
30
+install_npm_package "testacular"
31
+install_npm_package "uglifyjs"
32
+install_npm_package "requirejs"
33
+install_npm_package "slap"
34
+install_npm_package "peerflix"
35
+install_npm_package "speed-test"
36
+install_npm_package "ionic"

core.sh → core/core.sh


countdown.sh → core/countdown.sh


+ 33 - 29
install.sh

@@ -18,14 +18,16 @@ function install_mac_osx_updates {
18 18
   sw_vers |grep ProductVersion
19 19
 }
20 20
 
21
-function install_git {
22
-  echo "- Installing git"
23
-  sudo port install git-core +svn +doc +bash_completion +gitweb
24
-}
25
-
26 21
 function install_homebrew {
27 22
   echo "- Installing homebrew"
28 23
   ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
24
+  brew update
25
+}
26
+
27
+function install_git {
28
+  echo "- Installing git"
29
+  #sudo port install git-core +svn +doc +bash_completion +gitweb
30
+  brew install git
29 31
 }
30 32
 
31 33
 function install_cask {
@@ -39,22 +41,28 @@ function install_rvm {
39 41
   \curl -L https://get.rvm.io | bash -s stable
40 42
 }
41 43
 
42
-function install_node {
43
-  echo "- Installing node.js"
44
-  brew cask install --caskroom="/opt/homebrew-cask/Caskroom" node
45
-}
46
-
47 44
 function install_nvm {
48 45
   echo "Installing NVM - Node Version Manager"
49
-  curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
46
+  #curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
47
+  brew install nvm
48
+  source $(brew --prefix nvm)/nvm.sh
49
+}
50
+
51
+function install_node {
52
+  echo "- Installing node.js 0.10"
53
+  # brew cask install --caskroom="/opt/homebrew-cask/Caskroom" node
54
+  nvm install 0.10
55
+  nvm use 0.10
50 56
 }
51 57
 
52 58
 function install_zShell {
53 59
   echo "- Installing zShell with dotfiles"
54
-
60
+  cd
61
+  git clone https://github.com/jamesperet/dotfiles.git
62
+  cd dotfiles
63
+  sh makesymlinks.sh
55 64
 }
56 65
 
57
-
58 66
 function install_youtube_dl {
59 67
   echo "- Installing youtube-dl"
60 68
   sudo curl https://yt-dl.org/downloads/2013.09.24.2/youtube-dl -o /usr/local/bin/youtube-dl
@@ -80,34 +88,30 @@ function install_teamocil {
80 88
   cp teamocil/avalanche.yml $HOME/.teamocil/avalanche.yml
81 89
 }
82 90
 
83
-echo "Installing brew cask apps"
84
-brewCaskApps=(atom dropbox google-chrome firefox iterm2 evernote rescuetime transmit dash postgres mou monodraw sketch-toolbox unity unity-web-player bfxr sonic-pi xact slack skype vlc transmission sitesucker the-unarchiver appcleaner hyperswitch)
85
-
86
-brew cask install ${brewCaskApps[@]}
91
+function install_redis {
92
+  echo "- Installing Redis"
93
+  brew install redis
94
+}
87 95
 
96
+function install_pgcli {
97
+  echo "- Installing PostGres CLI"
98
+  brew install pgcli
99
+}
88 100
 
89 101
 # Run Functions
102
+tput civis -- invisible
90 103
 install_command_line_tools
91 104
 install_mac_osx_updates
92 105
 install_git
93 106
 install_homebrew
94 107
 install_cask
95 108
 install_rvm
96
-install_node
97 109
 install_nvm
98
-
110
+install_node
99 111
 install_youtube_dl
100 112
 install_ImageMagik
101 113
 install_tmux
102 114
 install_teamocil
103
-
104
-tput civis -- invisible
105
-install_app atom Atom.app
106
-install_app craxxxp Crap.app
107
-install_program "node"
108
-install_npm_package "grunt"
109
-install_npm_package "serve"
110
-install_npm_package "testacular"
111
-install_npm_package "uglifyjs"
112
-install_npm_package "requirejs"
115
+install_redis
116
+install_pgcli
113 117
 tput cnorm

+ 0 - 12
node-config.sh

@@ -1,12 +0,0 @@
1
-# Set permissions to the node modules folder
2
-sudo chown -R $(whoami) ~/.npm
3
-sudo chown -R $(whoami) /usr/local/lib/node_modules/
4
-# more info: https://docs.npmjs.com/getting-started/fixing-npm-permissions
5
-
6
-npm install -g grunt-cli
7
-npm install -g serve
8
-
9
-# Ruby configured
10
-brew install redis
11
-brew install pgcli
12
-#brew install go

+ 4 - 4
readme.md

@@ -9,10 +9,10 @@ Scripts for migrating and installing software on a fresh OSX install.
9 9
 On a fresh install, run the scripts in this order:
10 10
 
11 11
 1. ``install.sh`` - Upgrades the system and installs dependecies like xCode command line tools and git.
12
-2. ``configs.sh`` - Configures several Mac OS X settings like the dock, timezone and wallpaper.
13
-3. ``node-config.sh`` - Installs and configures node with NVM and installs a list of packages thru NPM.
14
-4. ``atom-installer.sh`` - Install the Atom IDE, installs a plugin list and sets up several configuration files.
15
-5. ``scripts.sh`` - Reads a list of apps and checks if each one is installed. If the app is not installed, it trys to install it using Cask, Homebrew or NPM.
12
+2. ``config-mac.sh`` - Configures several Mac OS X settings like the dock, timezone and wallpaper.
13
+3. ``config-node.sh`` - Installs and configures node with NVM and installs a list of packages thru NPM.
14
+4. ``config-atom.sh`` - Install the Atom IDE, installs a plugin list and sets up several configuration files.
15
+5. ``config-apps.sh`` - Reads a list of apps and checks if each one is installed. If the app is not installed, it trys to install it using Cask, Homebrew or NPM.
16 16
 
17 17
 To run one of the scripts:
18 18
 

+ 0 - 101
script.sh

@@ -1,101 +0,0 @@
1
-#!/bin/bash
2
-
3
-# Load installer script dependencies
4
-DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5
-source $DIR/core.sh
6
-
7
-# Browsers
8
-install_app "Google Chrome" "Google Chrome.app"
9
-install_app "Firefox" "Firefox.app"
10
-
11
-# COMMs
12
-install_app "Skype" "Skype.app"
13
-install_app "Slack" "Slack.app"
14
-
15
-# Office
16
-install_app "Pages" "Pages.app"
17
-install_app "Numbers" "Numbers.app"
18
-install_app "Keynote" "Keynote.app"
19
-install_app "Microsoft Excel" "Microsoft Excel.app"
20
-install_app "Microsoft PowerPoint" "Microsoft PowerPoint.app"
21
-install_app "Microsoft Word" "Microsoft Word.app"
22
-
23
-# Design
24
-install_app "Adobe Acrobat X Pro" "Adobe Acrobat X Pro/Adobe Acrobat Pro.app"
25
-install_app "Adobe Bridge CS6" "Adobe Bridge CS6/Adobe Bridge CS6.app"
26
-install_app "Adobe Illustrator CS6" "Adobe Illustrator CS6"
27
-install_app "Adobe InDesign CS6" "Adobe InDesign CS6/Adobe InDesign CS6.app"
28
-install_app "Adobe Photoshop CS6" "Adobe Photoshop CS6/Adobe Photoshop CS6.app"
29
-install_app "BrushPilot" "BrushPilot.app"
30
-install_app "xScope" "xScope.app"
31
-install_app "Pickr" "Pickr.app"
32
-install_app "Sketch" "Sketch.app"
33
-install_app "Sketch Toolbox" "Sketch Toolbox.app"
34
-install_app "OmniGraffle" "OmniGraffle.app"
35
-
36
-# Libraries
37
-install_app "Evernote" "Evernote.app"
38
-install_app "Ember" "Ember.app"
39
-install_app "Aperture" "Aperture.app"
40
-install_app "FontCase" "FontCase.app"
41
-
42
-# Dev
43
-install_app "Atom" "Atom.app"
44
-install_app "Dash" "Dash.app"
45
-install_app "iTerm" "iTerm.app"
46
-install_app "Mou" "Mou.app"
47
-install_app "Transmit" "Transmit.app"
48
-install_app "Postgres" "Postgres.app"
49
-install_app "Monodraw" "Monodraw.app"
50
-install_app "Go2Shell" "Go2Shell.app"
51
-
52
-# Video
53
-install_app "Final Cut Pro" "Final Cut Pro.app"
54
-install_app "Compressor" "Compressor.app"
55
-install_app "Adobe After Effects CC" "Adobe After Effects CC 2014/Adobe After Effects CC 2014.app"
56
-install_app "Adobe Premiere Pro CS6" "Adobe Premiere Pro CS6/Adobe Premiere Pro CS6.app"
57
-install_app "ScreenFlow" "ScreenFlow.app"
58
-install_app "Screenflick" "ScreenFlick.app"
59
-
60
-# Audio
61
-install_app "Logic Pro X" "Logic Pro X.app"
62
-install_app "Main Stage" "Main Stage.app"
63
-install_app "Arturia Moog Modular" "Arturia/Modular V2.app"
64
-install_app "Audio Hijack" "Audio Hijack.app"
65
-install_app "Sonic Pi" "Sonic Pi.app"
66
-install_app "Bfxr" "Bfxr.app"
67
-install_app "xAct" "xAct.app"
68
-
69
-# Game Design/ 3D
70
-install_app "Cinema 4D" "Cinema 4D.app"
71
-install_app "Unity 3D" "Unity/Unity.app"
72
-install_app "Unity Web Player" "unity-web-player" "unity-web-player"
73
-install_app "Substance Designer" "Substance Designer.app"
74
-install_app "Z-Brush" "zBrush.app"
75
-install_app "Hexels" "Hexels.app"
76
-install_app "Twine" "Twine.app"
77
-
78
-# Utilities
79
-install_app "1Password" "1Password.app"
80
-install_app "Alfred 2" "Alfred 2.app"
81
-install_app "AppCleaner" "AppCleaner.app"
82
-install_app "Dropbox" "Dropbox.app"
83
-install_app "Nylas N1" "Nylas N1.app"
84
-install_app "HyperSwitch" "HyperSwitch.app"
85
-install_app "iScrobbler" "iScrobbler.app"
86
-install_app "iStat Menus" "iStat Menus.app"
87
-install_app "Sunrise" "Sunrise.app"
88
-install_app "The Unarchiver" "The Unarchiver.app"
89
-install_app "Transmission" "Transmission.app"
90
-install_app "VLC" "VLC.app"
91
-install_app "DaisyDisk" "DaisyDisk.app"
92
-install_app "Soulver" "Soulver.app"
93
-install_app "SerialSeeker" "SerialSeeker.app"
94
-install_app "Wifi Explorer" "Wifi Explorer.app"
95
-install_app "Network Radar" "Network Radar.app"
96
-install_app "OmniPlan" "OmniPlan.app"
97
-install_app "SiteSucker" "SiteSucker.app"
98
-install_app "OmniFocus" "OmniFocus.app"
99
-install_app "PopcornTime" "PopcornTime.app"
100
-install_app "RescueTime" "RescueTime.app" "rescuetime"
101
-install_app "SleepDisplay" "SleepDisplay.app"