Merge lp:~mikemc/ubuntuone-windows-installer/bump-mac-version-4-0-1 into lp:ubuntuone-windows-installer

Proposed by Mike McCracken
Status: Merged
Approved by: dobey
Approved revision: 166
Merged at revision: 161
Proposed branch: lp:~mikemc/ubuntuone-windows-installer/bump-mac-version-4-0-1
Merge into: lp:ubuntuone-windows-installer
Prerequisite: lp:~mikemc/ubuntuone-windows-installer/fix-signing-certname
Diff against target: 144 lines (+64/-50)
2 files modified
scripts/README-mac.txt (+62/-48)
scripts/data/macapp_template.plist (+2/-2)
To merge this branch: bzr merge lp:~mikemc/ubuntuone-windows-installer/bump-mac-version-4-0-1
Reviewer Review Type Date Requested Status
dobey (community) Approve
Brian Curtin (community) Approve
Review via email: mp+144821@code.launchpad.net

Commit message

- Change mac client version to 4.0.1, update README-mac.

Description of the change

- Change mac client version to 4.0.1, update README-mac.

To post a comment you must log in.
Revision history for this message
Brian Curtin (brian.curtin) :
review: Approve
164. By Mike McCracken

fix typo that breaks update checking

165. By Mike McCracken

Merged fix-signing into bump-version-4-0-1.

166. By Mike McCracken

merge, resolve

Revision history for this message
dobey (dobey) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/README-mac.txt'
2--- scripts/README-mac.txt 2012-06-13 15:36:52 +0000
3+++ scripts/README-mac.txt 2013-02-01 21:16:19 +0000
4@@ -6,33 +6,70 @@
5 Overview
6 ========
7
8-NOTE: you must use the python wrapper from the buildout to run
9-setup-mac.py.
10-
11-Run 'python setup-mac.py prepare --from-trunk py2app' to download and build
12-all dependencies, and package the .app bundles together into a
13-standalone dist/ubuntuone-control-panel/UbuntuOne.app
14-
15-For development, omit --from-trunk to build from the buildout's
16+Use the python wrapper from the buildout to run setup-mac.py:
17+
18+% cd scripts/devsetup
19+% source env-mac
20+
21+Then add the path to a *built* fsevents.py and _fsevents.so from
22+macfsevents to PYTHONPATH, as this is not currently added to the path
23+automatically like everything else.
24+
25+% export PYTHONPATH=$PYTHONPATH:/path to fsevents.py/
26+
27+Set U1_CODESIGN_CN to the *full* common name of a valid code signing
28+cert with correctly attached private key that is accessible in your
29+system keychain.
30+
31+The one we use for releases can only be generated by the Canonical
32+employee who is currently our Apple dev program agent. The cert itself
33+will always be called "Developer ID Application: Canonical Group
34+Limited"
35+
36+% export U1_CODESIGN_CN="Developer ID Application: Canonical Group Limited"
37+
38+Run the setup-mac script to complete the packaging:
39+
40+% cd scripts/
41+% python setup-mac.py prepare py2app
42+
43+At this point there is a folder dist/build_to_sign with Ubuntu
44+One.app, the fsevents daemon program, and two scripts.
45+
46+Before you do the code signing, run each of the executables to make
47+sure python generates the .pyo file for site.py. Do something like
48+this to check if you're done:
49+
50+% find . -name "site.py*"
51+
52+For each of those, run the corresponding executable until there are no
53+.py without corresponding .pyo.
54+
55+Finally, The codesign-darwin.sh script does the actual code signing of each
56+executable in the app. - there are currently ~30 things to sign. Call
57+it with the same full cert name:
58+
59+% ./codesign-darwin.sh $U1_CODESIGN_CN
60+
61+NOTE: you may have to call it twice before it stops complaining about invalid signatures.
62+
63+
64+# The prepare step
65+
66+'setup-mac.py prepare' builds and installs the subprojects into a
67+staging directory 'installed/'.
68+
69+prepare --from-lp will grab the trunk of the relevant projects from
70+launchpad and put them in ./sources/projectname
71+
72+For development, omit --from-lp to build from the buildout's
73 'parts' directory.
74-
75-The Prepare Step
76-================
77-
78-Prepare builds and installs the subprojects into a staging directory
79-'installed/'.
80-
81-prepare --from-trunk will grab the trunk of the relevant projects from
82-launchpad and put them in ./sources/projectname
83
84-prepare --only-prepare allows you to pick which of the three
85+prepare --only-prepare allows you to pick which of the
86 subprojects to stage (default is all).
87-
88 This is mostly only useful for development, to make the build-test loop faster.
89
90-
91-The py2app Step
92-===============
93+# The py2app Step
94
95 The py2app action does the dependency detection and .app bundle
96 building.
97@@ -41,29 +78,6 @@
98 Testing
99 =======
100
101-As of June 12, 2012, none of the generated .app bundles do anything
102-when double-clicked in the OS X Finder.
103-
104-The main UbuntuOne.app will launch the ubuntuone-control-panel but is
105-pending some platform integration work.
106-
107-The project that is the furthest along is the ubuntu-sso-client, and
108-you can test its operation from within the main package like this:
109-
110-# build:
111-
112-% cd buildout-env/scripts/devsetup/parts/ubuntuone-windows-installer/scripts
113-% PYTHONPATH=. python setup-mac.py prepare py2app
114-
115-
116-# test:
117-
118-% U1_DEBUG=1 dist/ubuntuone-control-panel/UbuntuOne.app/Contents/Resources/Ubuntu\ Single\ Sign-On.app/Contents/MacOS/ubuntu-sso-login-qt --app_name holycowmacpac
119-
120-# or test login only:
121-% U1_DEBUG=1 dist/ubuntuone-control-panel/UbuntuOne.app/Contents/Resources/Ubuntu\ Single\ Sign-On.app/Contents/MacOS/ubuntu-sso-login-qt --app_name holycowmacpac --login_only
122-
123-
124-This should show the Ubuntu SSO screen (it may show behind the topmost
125-window, move the terminal window to reveal it). The account creation
126-and login steps should work properly.
127+As of January 7, 2013, the test suites for the various components work
128+on darwin, with the exception being ubuntuone-client, which should
129+improve soon.
130
131=== modified file 'scripts/data/macapp_template.plist'
132--- scripts/data/macapp_template.plist 2012-12-10 18:13:57 +0000
133+++ scripts/data/macapp_template.plist 2013-02-01 21:16:19 +0000
134@@ -9,8 +9,8 @@
135 <key>CFBundleDevelopmentRegion</key>
136 <string>English</string>
137 <key>CFBundleShortVersionString</key>
138- <string>4.0</string>
139+ <string>4.0.1</string>
140 <key>CFBundleVersion</key>
141- <string>4.0</string>
142+ <string>4.0.1</string>
143 </dict>
144 </plist>

Subscribers

People subscribed via source and target branches