InstallMacosx: wikidpad-2.2beta05-osx10.6-install-script.bash

File wikidpad-2.2beta05-osx10.6-install-script.bash, 2.2 kB (added by level323, 6 years ago)

Automated installer for wikidpad 2.2beta05 on OSX 10.6

Line 
1#!/bin/bash -e
2#
3# Script to automate the installation of wikidpad and dependencies on Mac OSX
4# as well as an Automator script to easily open wikidpad
5#
6# Confirmed on OSX 10.6.7 Intel machine
7#
8# Warning: This script worked for me, but may break yours! Use at own risk. No warranty whatsoever.
9
10
11cd /tmp
12
13
14#
15# Step 1: Download and install a suitable version of python
16#
17
18echo "Downloading Python:"
19curl -O 'http://www.python.org/ftp/python/2.7.2/python-2.7.2-macosx10.6.dmg'
20
21echo "Mounting the disk image:"
22hdiutil attach python-2.7.2-macosx10.6.dmg
23
24echo "Starting the installer:"
25open -W -a Installer.app "/Volumes/Python 2.7.2/Python.mpkg"
26
27echo "Unmounting the disk image:"
28hdiutil detach "/Volumes/Python 2.7.2"
29
30#
31# Step 2: Download and install a suitable version of wxPython
32#
33
34echo "Downloading wxPython:"
35curl -O 'http://superb-sea2.dl.sourceforge.net/project/wxpython/wxPython/2.8.12.0/wxPython2.8-osx-unicode-2.8.12.0-universal-py2.7.dmg'
36
37echo "Mounting the disk image:"
38hdiutil attach wxPython2.8-osx-unicode-2.8.12.0-universal-py2.7.dmg
39
40echo "Starting the installer:"
41open -W -a Installer.app "/Volumes/wxPython2.8-osx-unicode-2.8.12.0-universal-py2.7/wxPython2.8-osx-unicode-universal-py2.7.pkg"
42
43echo "Unmounting the disk image:"
44hdiutil detach "/Volumes/wxPython2.8-osx-unicode-2.8.12.0-universal-py2.7"
45
46
47#
48# Step 3: Download and install wikidpad (for the current user only)
49#
50
51echo "Downloading wikidpad:"
52curl -C - -O 'http://superb-sea2.dl.sourceforge.net/project/wikidpad/wikidpad/2.2/2.2beta05/WikidPad-2.2beta05-src.zip'
53echo "Downloading wikidpad Automator app from wikidpad Trac website"
54curl -O 'http://wikidpad2.webfactional.com/raw-attachment/wiki/InstallMacosx/wikidpad-2.2beta05.app.zip'
55
56echo "Creating install folder (if it doesn't already exist) for wikidpad"
57mkdir -p ~/bin-install/wikidpad-2.2beta05-src
58
59echo "Extracting wikidpad to install folder"
60cd ~/bin-install/wikidpad-2.2beta05-src
61unzip /tmp/WikidPad-2.2beta05-src.zip
62
63echo "Creating local user ~/Applications folder to house the Automator script (if it doesn't already exist)"
64mkdir -p ~/Applications
65cd ~/Applications
66ditto -xk /tmp/wikidpad-2.2beta05.app.zip ./
67
68echo "Opening Finder at ~/Applications folder to show you your new wikidpad launcher"
69open -a Finder.app ~/Applications
70
71echo "DONE!"