Zim

Merge lp:~bkidwell/zim/pyzim-win-installer into lp:~jaap.karssenberg/zim/pyzim

Proposed by Brendan Kidwell
Status: Superseded
Proposed branch: lp:~bkidwell/zim/pyzim-win-installer
Merge into: lp:~jaap.karssenberg/zim/pyzim
Diff against target: 877 lines (+502/-189)
10 files modified
setup.py (+3/-3)
windows/README-BUILD-win32.txt (+89/-34)
windows/build_win32.py (+99/-39)
windows/create-zim-setup.nsi (+93/-112)
windows/env.cmd (+0/-1)
windows/src/AppInfo/Launcher/ZimDesktopWikiPortable.ini (+6/-0)
windows/src/AppInfo/appinfo.ini (+37/-0)
windows/src/Other/Source/EULA.rtf (+128/-0)
windows/src/help.html (+37/-0)
windows/src/zim.ico.txt (+10/-0)
To merge this branch: bzr merge lp:~bkidwell/zim/pyzim-win-installer
Reviewer Review Type Date Requested Status
Jaap Karssenberg Pending
Review via email: mp+74928@code.launchpad.net

This proposal has been superseded by a proposal from 2011-09-11.

Commit message

* Created thumbdrive-ready Portable installer package using PortableApps.com tools.
* Desktop installer clears "$PROGRAMFILES/Zim Desktop Wiki" before writing to it.
* Desktop UNINSTALLER correctly removes user-level and "all users"-level Desktop icon and Start Menu shortcuts (2008, 7, Vista).
* Added 256x256 resolution image to zim.ico file for better appearance in Desktop folder (2008, 7, Vista).
* Fixed GTK default look and feel in Windows to "MS-Windows" theme https://bugs.launchpad.net/zim/+bug/830043 .
* Added EULA.rtf (converted from ./LICENSE.txt) to Desktop and Portable installers.

Description of the change

This supercedes a merge request from a couple of hours ago. I added one more revision to remove a comment in the Portable build's help file regarding the startup script creating a new notebooks.list each time.

* Created thumbdrive-ready Portable installer package using PortableApps.com tools.
* Desktop installer clears "$PROGRAMFILES/Zim Desktop Wiki" before writing to it.
* Desktop UNINSTALLER correctly removes user-level and "all users"-level Desktop icon and Start Menu shortcuts (2008, 7, Vista).
* Added 256x256 resolution image to zim.ico file for better appearance in Desktop folder (2008, 7, Vista).
* Fixed GTK default look and feel in Windows to "MS-Windows" theme https://bugs.launchpad.net/zim/+bug/830043 .
* Added EULA.rtf (converted from ./LICENSE.txt) to Desktop and Portable installers.

To post a comment you must log in.
lp:~bkidwell/zim/pyzim-win-installer updated
440. By Jaap Karssenberg

Added tooltips for index pane

441. By Jaap Karssenberg

Merged windows installer branch

442. By Jaap Karssenberg

Fixed normal background color of text entries for theming with revesed color scheme

443. By Jaap Karssenberg

* Fix for regression in notebook list, showing default double
* Fixed style for assistent dialog heading to match theme
* Fixed count of all open tasks in task dialog
* Made pathname check more strict, now explicitly shows starting "_" as invalid

444. By Jaap Karssenberg

Imported new translations

445. By Jaap Karssenberg

Fixes to make test suite run on windows

446. By Jaap Karssenberg

Small change to build scripts for windows to make setup.py run without 'windows/' being present

447. By Jaap Karssenberg

Release updates

448. By Jaap Karssenberg

Very small update for the website

449. By Jaap Karssenberg

Added mono icons for ubuntu

450. By Jaap Karssenberg

* Bug fix for relative links to parents of current page
* Updated zim.desktop with ubuntu unity specific shortcuts

451. By Jaap Karssenberg

Fixed problem in test suite when loading gtk pixbufs

452. By Jaap Karssenberg

Fixed bug in "You found a bug" error reporting :S
and added a test case.

453. By Jaap Karssenberg

Tasklist plugin now supports nested tasks and shows an hierarchic list.

454. By Jaap Karssenberg

Added an "automount" plugin to automatically mount notebook folders.

455. By Jaap Karssenberg

Fixed bug which prevented following links in read-only mode (and thus the manual :( ) regression of earlier fix in rev432 - mea culpa

456. By Jaap Karssenberg

* Fixed a bug causing the index to jump with every page selection
* Fixed a bug causing the default icon for custom tools to be missing in the toolbar
* Fixed a bug causing the trayicon to be missing when run from source

457. By Jaap Karssenberg

Updated translation template

458. By Jaap Karssenberg

* Fix for drag and drop of files on windows
* Interwiki lookup now goes over all urls.list files in the config and data paths
* More strict parsing for .desktop files
* Fix for notebook= parameter quickstart plugin

459. By Jaap Karssenberg

* Tasklist now keeps selection when data is refreshed
* Calendar now updates the label with todays date every few minutes

460. By Jaap Karssenberg

Fixed autocomplete for page entry in quicknote

461. By Jaap Karssenberg

* Fix bug when tag selected in tag cloud is deleted
* Add option in context menu to sort tag cload alphabetically

462. By Jaap Karssenberg

Possible fix for encoding issues in strftime

463. By Jaap Karssenberg

* Updated manual page on templates
* Small bug fix in tasklist

464. By Jaap Karssenberg

Imported translations

465. By Jaap Karssenberg

Update package data for release

466. By Jaap Karssenberg

Updated tasklist to use markup - fixes bug with tooltips

467. By Jaap Karssenberg

Added cancel option to search dialog and made it report results iterative

468. By Jaap Karssenberg

Added spinner to search dialog

469. By Jaap Karssenberg

Further optimization for search

470. By Jaap Karssenberg

Added Table Of Contents plugin

471. By Jaap Karssenberg

Small fix for ToC

472. By Jaap Karssenberg

* ToC plugin now has context menu with "promote" and "demote" items
* Refactored code for context menu popup in BrowserTreeView

473. By Jaap Karssenberg

Fixed docs

474. By Jaap Karssenberg

Fixed regression in rev472

475. By Jaap Karssenberg

Additional fixes and feature for tasklist
* Fixed regression for tags in tasklist dialog
* Made sorting of tags case insensitive
* Fixed continuity for tasklist whith normal bullet in between
* Introduced "Next" keyword and allow hiding not-yet-actionable tasks

476. By Jaap Karssenberg

Made index sort naturally and locale aware :)

477. By Jaap Karssenberg

Merged update of windows installer files

478. By Jaap Karssenberg

Update logic in table-of-contents plugin to find a heading

479. By Jaap Karssenberg

Refactored Clipboard code

480. By Jaap Karssenberg

Fixed critical bug that caused progress bar for export to hang ad infinitum

481. By Jaap Karssenberg

Fixed running zim daemon with proper python executable

482. By Jaap Karssenberg

Fixed small bug when attaching a file for selected text

483. By Jaap Karssenberg

Decoupled recent pages from history stack

484. By Jaap Karssenberg

Made history test not use private arguments

485. By Jaap Karssenberg

Fixed behavior when replacing a formatted word

486. By Jaap Karssenberg

Patch to improve behavior of automatic selections

487. By Jaap Karssenberg

* Fixed regression for pasting by middle button
* Small fix for recent paths pathbar

488. By Jaap Karssenberg

Very small fix for testcase

489. By Jaap Karssenberg

Fixed to make zim icons more customizable - Andrei

490. By Jaap Karssenberg

Fixed bug for latex templates

491. By Jaap Karssenberg

Small fix for making tasklist more robust

492. By Jaap Karssenberg

Fixed small regression in trayicon

493. By Jaap Karssenberg

* Fixed case-sensitive rename on windows (case-insensitive file system)
* Fixed small regression in Latex test case

494. By Jaap Karssenberg

Added Markdown with pandoc extensions as export format

495. By Jaap Karssenberg

Merge feature numbered lists

496. By Jaap Karssenberg

Added context menu item for mocing selected text to new page

497. By Jaap Karssenberg

Updated translations

498. By Jaap Karssenberg

* Fixed bug with uistate for export dialog
* Small update for website

499. By Jaap Karssenberg

Updated testing for formats and fixed regression in Markdown format

500. By Jaap Karssenberg

"Move text" now uses new page template

501. By Jaap Karssenberg

Small fix for zim.desktop

502. By Jaap Karssenberg

Fixed remembering folder for exporting single file

503. By Jaap Karssenberg

Fix for undoing numbered list changes

504. By Jaap Karssenberg

Added more formal alternative keybindings

505. By Jaap Karssenberg

Fixes in attachment browser to use proper file system calls (cross fingers - no testing...)

506. By Jaap Karssenberg

Further refactoring of attachmentbrowser thumbnailing, now with testcase

507. By Jaap Karssenberg

Added async queue again for thumbnailmanager - cross fingers

508. By Jaap Karssenberg

Small spelling fixes

509. By Jaap Karssenberg

Updated translations

510. By Jaap Karssenberg

Version 0.55

511. By Jaap Karssenberg

Oops - switched 'promote' and 'demote' in table of contents plugin

512. By Jaap Karssenberg

Added drag&drop for attachment browser

513. By Jaap Karssenberg

Updated bounty

514. By Jaap Karssenberg

Fixed bug for opening email adresses

515. By Jaap Karssenberg

Added test for fix in rev514

516. By Jaap Karssenberg

* Made sidepane remember state
* Made tag cloud remember state

517. By Jaap Karssenberg

Small fix to make daemon process more robust

518. By Jaap Karssenberg

Small fix in clipboard (lp:954091)

519. By Jaap Karssenberg

Merge Git & Hg support

520. By Jaap Karssenberg

Some refactoring on versioncontrol plugin

521. By Jaap Karssenberg

* Made version control backend an option for init dialog
* Fixed UTF-8 support for version control

522. By Jaap Karssenberg

Merged plugin for "ditaa" diagrams

523. By Jaap Karssenberg

Updated translation template

524. By Jaap Karssenberg

Merging patch for config profiles

525. By Jaap Karssenberg

Refactored profile loading

526. By Jaap Karssenberg

Small fix for style linked to profile

527. By Jaap Karssenberg

Fix for context menu page index

528. By Jaap Karssenberg

Small fix for GNU R plugin

529. By Jaap Karssenberg

Small fix for git support

530. By Jaap Karssenberg

Small fix for trayicon

531. By Jaap Karssenberg

Small fix for windows paths

532. By Jaap Karssenberg

Fix for small bugje in Insert Date dialog

533. By Jaap Karssenberg

Version 0.56

534. By Brendan Kidwell

removing "[version]" section from PortableApps ini file; this is added by build script

535. By Brendan Kidwell

Fixing "Zim 0.54 doesn't work on Windows XP"

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'setup.py'
2--- setup.py 2011-08-13 08:18:21 +0000
3+++ setup.py 2011-09-11 23:12:23 +0000
4@@ -301,17 +301,17 @@
5 py2exeoptions = {
6 'windows': [ {
7 "script": "zim.py",
8- "icon_resources": [(1, "windows/zim.ico")] # Windows 16x16, 32x32, and 48x48 icon based on PNG
9+ "icon_resources": [(1, "windows/src/zim.ico")] # Windows 16x16, 32x32, and 48x48 icon based on PNG
10 } ],
11 'zipfile': None,
12 'options': {
13 "py2exe": {
14- "compressed": 0,
15+ "compressed": 1,
16 "optimize": 2,
17 "ascii": 1,
18 "bundle_files": 3,
19 "packages": ["encodings", "cairo", "atk", "pangocairo", "zim", "bzrlib"],
20- "dist_dir" : "windows/build"
21+ "dist_dir" : "windows/build/ZimDesktopWikiPortable/App/ZimDesktopWiki"
22 }
23 }
24 }
25
26=== modified file 'windows/README-BUILD-win32.txt'
27--- windows/README-BUILD-win32.txt 2011-06-20 20:02:00 +0000
28+++ windows/README-BUILD-win32.txt 2011-09-11 23:12:23 +0000
29@@ -1,35 +1,66 @@
30 How to Build pyzim on Windows
31+=============================
32+
33+
34+Overview
35+--------
36+
37+To build Zim for Windows, you must install all the requirements listed
38+below. Then follow the steps in the "Building Zim" section.
39+
40+To make the regular desktop installer package, see "Packaging the
41+Regular Installer".
42+
43+To make the portable package, see "Packaging the PortableApps.com
44+Installer".
45
46
47 Requirements
48+------------
49
50 1. Install Python 2.6 or greater for Windows from
51+
52 http://www.python.org/download/
53
54 Note: Python version must be 2.6 or greater, but less than 3.0
55
56 2. Install the py2exe library from
57+
58 http://sourceforge.net/projects/py2exe/files/
59
60-3. Download the latest GTK+ bundle for Windows from
61- http://ftp.gnome.org/pub/GNOME/binaries/win32/gtk+/[newest version]/gtk+-bundle*.zip
62- Extract that Zip file to
63- C:\Program Files\Common Files\GTK\2.22
64+3. Download GTK+ Bundle from
65+
66+ http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/
67+
68+ Or a newer version if one exists. Extract this Zip file to a
69+ convenient place such as
70+
71+ C:\Program Files (x86)\Common Files\GTK+ Bundle
72
73 4. Install PyCairo, PyGObject, and PyGTK from
74- http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/[newest version]/pycairo-*.win32*.exe
75- http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/[newest version]/pygobject-*.win32*.exe
76- http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/[newest version]/pygtk-*.win32*.exe
77+
78+ http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/[newest version]/pycairo-VERSION.win32-pyVER.msi
79+ http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/[newest version]/pygobject-VERSION.win32-pyVER.msi
80+ http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/[newest version]/pygtk-VERSION.win32-pyVER.msi
81+
82+ Make sure that the Python version matches the one you're using, and
83+ that you don't download a pygtk library with a version newer than
84+ the bundle from the previous step.
85
86 5. Jpeg for Windows
87+
88 http://gnuwin32.sourceforge.net/packages/jpeg.htm
89+
90 Get jpeg62.dll and put it in ./windows .
91
92 6. Install Bazaar using the PYTHON-BASED installer from
93+
94 http://wiki.bazaar.canonical.com/WindowsDownloads
95- The build script depends on Bazaar.
96+
97+ The build script depends on Python Bazaar.
98
99 7. Install NSIS from
100+
101 http://nsis.sourceforge.net/Download
102
103 7a. You will also want to download Venis IX if you want to edit the
104@@ -37,31 +68,55 @@
105 if you don't want to use an IDE.)
106 http://nsis.sourceforge.net/Venis_IX
107
108+8. For the PortableApps.com build, additionally install these three
109+ utilities:
110+
111+ http://portableapps.com/apps/development/nsis_portable (Unicode version)
112+ http://portableapps.com/apps/development/portableapps.com_installer
113+ http://portableapps.com/apps/development/portableapps.com_launcher
114+
115+ These tools default to installing in ~/Desktop, but I personally
116+ put them in ~/Apps. Be sure to put them all in the same folder.
117+
118
119 Building Zim
120-
121-1. Look at "windows\env.cmd" -- make sure that your paths to GTK and
122- Python binaries are correct.
123-
124-2. Run "windows\env.cmd" to initialize your $PATH environment variable..
125-
126-3. Run "python.exe windows\build_win32.py".
127-
128- Note: If you installed GTK to another path than suggested, you must change it also in the
129- file build_win32.py.
130-
131-4. Make sure it built okay by running ".\windows\build\zim.exe".
132-
133-
134-Packaging the Installer
135-
136-1. Build zim.exe (see steps above)
137-
138-2. Create or modify ./windows/version-and-date.nsi . (Fill in the appropriate values.)
139-
140- !define VER "version_number_goes_here"
141- !define BUILDDATE "yyyy-mm-dd"
142-
143-3. Run ./windows/create-zim-setup.nsi .
144-
145-4. Find its output in ./dist/Zim-setup-*.exe and test it.
146+------------
147+
148+1. Add your Python root folder and your "GTK+ Bundle\bin" folder to
149+ your $PATH environment variable.
150+
151+2. At the command prompt, CD into the Zim project's root folder.
152+
153+3. Run "python.exe windows\build_win32.py" in the command prompt.
154+ NOTE: Sometimes I get "Access denied" errors in this step. Closing
155+ all windows except the command prompt usually helps.
156+
157+4. Make sure it built okay by running
158+ ".\windows\build\ZimDesktopWikiPortable\App\ZimDesktopWiki\zim.exe"
159+
160+
161+Packaging the Regular Installer
162+-------------------------------
163+
164+1. Build zim.exe (see steps above).
165+
166+2. Run "./windows/create-zim-setup.nsi".
167+
168+3. Find its output in "./dist/Zim-setup-*.exe" and test it.
169+
170+
171+Packaging the PortableApps.com Installer
172+----------------------------------------
173+
174+1. Build zim.exe (see steps above).
175+
176+2. Run the PortableApps.comLauncher app on the folder
177+ "./windows/build/ZimDesktopWikiPortable".
178+
179+2a. Test the launcher built in "./windows/build/ZimDesktopWikiPortable".
180+
181+3. Run the PortableApps.comInstaller app on the folder
182+ "./windows/build/ZimDesktopWikiPortable".
183+
184+4. You will find the installer named as
185+ "./windows/build/ZimDesktopWikiPortable_VERSION.paf.exe"/
186
187=== modified file 'windows/build_win32.py'
188--- windows/build_win32.py 2010-11-30 07:56:14 +0000
189+++ windows/build_win32.py 2011-09-11 23:12:23 +0000
190@@ -1,67 +1,127 @@
191+# --------------------------------------------------------------------
192+# For the complete Windows build procedure, please read
193+# README-BUILD-win32.txt .
194+#
195+# Some general advice for building PyGTK-based Windows .EXEs can be
196+# found here:
197+# http://www.no-ack.org/2010/09/complete-guide-to-py2exe-for-pygtk.html
198+# --------------------------------------------------------------------
199+
200 import os
201+from os import path
202 import sys
203 import shutil
204 import glob
205 import datetime
206 import subprocess
207 import distutils.dir_util
208+from distutils.sysconfig import get_python_lib
209
210+# load version number constant from zim package
211 sys.path.append(".")
212 from zim import __version__
213
214-# For the complete Windows build procedure, please read
215-# README-BUILD-win32.txt
216-
217-# Clean up the build directory
218-shutil.rmtree("windows/build", True)
219-
220-# create main.exe and any files generated by setup.py
221+# contants for this script
222+#
223+# windows
224+# /build BUILD_ROOT
225+# /ZimDesktopWikiPortable APP_ROOT
226+# /App
227+# /ZimDesktopWiki EXE_ROOT
228+#
229+BUILD_ROOT = r"windows\build"
230+APP_ROOT = path.join(BUILD_ROOT, "ZimDesktopWikiPortable")
231+EXE_ROOT = path.join(APP_ROOT, r"App\ZimDesktopWiki")
232+
233+#GTK_ROOT = path.join(get_python_lib(), r"gtk-2.0\runtime")
234+for libdir in os.environ["PATH"].split(path.pathsep):
235+ if path.exists(path.join(libdir, "libgtk-win32-2.0-0.dll")):
236+ GTK_ROOT = path.dirname(libdir)
237+
238+# --------------------------------------
239+# BUILD
240+# --------------------------------------
241+
242+# Clean up and initialize the build directory
243+shutil.rmtree(BUILD_ROOT, True)
244+os.makedirs(EXE_ROOT)
245+
246+# Create main zim.exe and any files generated by setup.py
247 subprocess.check_call(['python.exe', 'setup.py', 'build'])
248 subprocess.check_call(['python.exe', 'setup.py', 'py2exe'])
249
250-# update "data" folder
251-shutil.copytree("data", "windows/build/data")
252-
253-# Use function from distutils because shutil.copytree
254-# fails when destination folder exists
255-
256-# If you installed GTK to a different folder, change these lines:
257-distutils.dir_util.copy_tree("c:/Program Files/Common Files/GTK/2.22/etc", "windows/build/etc", update=1)
258-distutils.dir_util.copy_tree("c:/Program Files/Common Files/GTK/2.22/lib", "windows/build/lib", update=1)
259-distutils.dir_util.copy_tree("c:/Program Files/Common Files/GTK/2.22/share", "windows/build/share", update=1)
260-shutil.rmtree("windows/build/share/doc", True)
261-shutil.rmtree("windows/build/share/gtk-doc", True)
262-files = glob.iglob(os.path.join("c:/Program Files/Common Files/GTK/2.22/bin", "*.exe"))
263-for file in files:
264- if os.path.isfile(file):
265- shutil.copy2(file, "windows/build")
266+# Copy GTK runtime
267+for d in ["etc", "lib", "share"]:
268+ distutils.dir_util.copy_tree(path.join(GTK_ROOT, d), path.join(EXE_ROOT, d), update=1)
269+for ext in ["*.exe", "*.dll"]:
270+ files = glob.iglob(os.path.join(GTK_ROOT, "bin", ext))
271+ for file in files:
272+ if os.path.isfile(file):
273+ shutil.copy(file, EXE_ROOT)
274+os.remove(os.path.join(EXE_ROOT, "gtk-demo.exe"))
275+
276+# Remove docs from copied GTK runtime
277+shutil.rmtree(path.join(EXE_ROOT, r"share\doc"), True)
278+shutil.rmtree(path.join(EXE_ROOT, r"share\gtk-doc"), True)
279+
280+# Load Zim's data folder
281+shutil.copytree("data", path.join(EXE_ROOT, "data"))
282
283 # Copy icon files
284-distutils.dir_util.copy_tree("icons", "windows/build/icons", update=1)
285+distutils.dir_util.copy_tree("icons", path.join(EXE_ROOT, "icons"), update=1)
286
287 # Copy translation files
288-distutils.dir_util.copy_tree("locale", "windows/build/locale", update=1)
289+distutils.dir_util.copy_tree("locale", path.join(EXE_ROOT, "locale"), update=1)
290
291 # Copy plugins folder so Preferences dialog can iterate through them
292-distutils.dir_util.copy_tree("zim/plugins", "windows/build/zim/plugins", update=1)
293+distutils.dir_util.copy_tree(r"zim\plugins", path.join(EXE_ROOT, r"zim\plugins"), update=1)
294
295 # Copy the hicolor icon theme from windows folder because it's missing from Gtk/win32 distro
296-if not os.path.exists("windows/build/share/icons/hicolor"):
297- os.makedirs("windows/build/share/icons/hicolor")
298-shutil.copyfile(
299- "windows/hicolor-icon-theme__index.theme",
300- "windows/build/share/icons/hicolor/index.theme"
301+p = path.join(EXE_ROOT, r"share\icons\hicolor")
302+if not path.exists(p): os.makedirs(p)
303+shutil.copy(
304+ r"windows\src\hicolor-icon-theme__index.theme",
305+ path.join(EXE_ROOT, r"share\icons\hicolor\index.theme")
306 )
307
308 # Copy jpeg62.dll
309-shutil.copyfile("windows/jpeg62.dll", "windows/build/jpeg62.dll")
310-
311-# print out version number
312-f = open("windows/version-and-date.nsi", "w")
313-f.write('!define VER "%s"\n' % __version__)
314-f.write('!define BUILDDATE "%s"\n' % datetime.datetime.now().strftime("%Y-%m-%d"))
315+shutil.copy(r"windows\jpeg62.dll", EXE_ROOT)
316+
317+# Set theme to MS-Windows
318+f = open(os.path.join(EXE_ROOT, r"etc\gtk-2.0\gtkrc"), "w")
319+print >>f, 'gtk-theme-name = "MS-Windows"'
320+f.close()
321+
322+# --------------------------------------
323+# NSIS STUFF
324+# --------------------------------------
325+
326+# print out version number to NSIS include file
327+f = open(r"windows\build\version-and-date.nsi", "w")
328+print >>f, '!define VER "%s"' % __version__
329+print >>f, '!define BUILDDATE "%s"' % datetime.datetime.now().strftime("%Y-%m-%d")
330 f.close()
331
332 # NSIS script compiles to "dist" folder but compiler won't create it if it's needed
333-if not os.path.exists("dist"):
334- os.mkdir("dist")
335+if not path.exists("dist"): os.mkdir("dist")
336+
337+# --------------------------------------
338+# PORTABLEAPPS.COM STUFF
339+# --------------------------------------
340+
341+# Fill out PortableApps.com installer skeleton
342+distutils.dir_util.copy_tree(r"windows\src\AppInfo", path.join(APP_ROOT, r"App\AppInfo"), update=1)
343+os.makedirs(path.join(APP_ROOT, r"App\DefaultData\Config\zim"))
344+os.makedirs(path.join(APP_ROOT, r"App\DefaultData\Notebooks"))
345+distutils.dir_util.copy_tree(r"windows\src\Other", path.join(APP_ROOT, "Other"), update=1)
346+shutil.copy(r"windows\src\zim.ico", path.join(APP_ROOT, r"App\AppInfo\appicon.ico"))
347+shutil.copy(r"icons\zim16.png", path.join(APP_ROOT, r"App\AppInfo\appicon_16.png"))
348+shutil.copy(r"icons\zim32.png", path.join(APP_ROOT, r"App\AppInfo\appicon_32.png"))
349+shutil.copy(r"windows\src\help.html", APP_ROOT)
350+
351+# Add version number to appinfo.ini
352+f = open(path.join(APP_ROOT, r"App\AppInfo\appinfo.ini"), "a")
353+print >>f ,"[Version]"
354+print >>f, "PackageVersion=%s.0.0" % __version__
355+print >>f, "DisplayVersion=%s\n" % __version__
356+f.close()
357
358=== modified file 'windows/create-zim-setup.nsi'
359--- windows/create-zim-setup.nsi 2010-05-24 02:53:11 +0000
360+++ windows/create-zim-setup.nsi 2011-09-11 23:12:23 +0000
361@@ -1,41 +1,39 @@
362 ; Script generated with the Venis Install Wizard
363
364 ; Define your application name
365-!define APPNAME "Zim Desktop Wiki"
366-
367-; Define VER and BUILDDATE
368-!include "version-and-date.nsi"
369-
370+!define APPNAME "Zim Desktop Wiki"
371+
372+; Define VER and BUILDDATE
373+!include "build\version-and-date.nsi"
374+
375 !define APPNAMEANDVERSION "Zim Desktop Wiki ${VER} for Windows"
376
377 ; Main Install settings
378 Name "${APPNAMEANDVERSION}"
379 InstallDir "$PROGRAMFILES\Zim Desktop Wiki"
380 InstallDirRegKey HKLM "Software\${APPNAME}" ""
381-OutFile "..\dist\Zim-setup-${VER}_${BUILDDATE}.exe"
382+OutFile "..\dist\Zim-setup-${VER}_${BUILDDATE}.exe"
383
384 ; Modern interface settings
385 !include "MUI.nsh"
386-
387-; Register Extension function
388-!include "registerExtension.nsh"
389+
390+; Register Extension function
391+!include "src\registerExtension.nsh"
392
393 !define MUI_ABORTWARNING
394 !define MUI_FINISHPAGE_RUN "$INSTDIR\zim.exe"
395-
396-!define MUI_HEADERIMAGE
397-!define MUI_HEADERIMAGE_BITMAP "zim-logo-big.bmp" ; optional
398-!define MUI_ICON "zim.ico"
399-
400-!define MUI_DIRECTORYPAGE_TEXT_TOP \
401- "Setup will install ${APPNAME} in the following folder. \
402- $\r$\r \
403- BE SURE TO CHOOSE ANOTHER FOLDER NOW if you want to install Zim \
404- to a portable storage device."
405-
406-!define MUI_COMPONENTSPAGE_SMALLDESC
407+
408+!define MUI_HEADERIMAGE
409+!define MUI_HEADERIMAGE_BITMAP "src\zim-logo-big.bmp" ; optional
410+!define MUI_ICON "src\zim.ico"
411+
412+!define MUI_DIRECTORYPAGE_TEXT_TOP \
413+ "Setup will install ${APPNAME} in the following folder."
414+
415+!define MUI_COMPONENTSPAGE_SMALLDESC
416
417 !insertmacro MUI_PAGE_WELCOME
418+!insertmacro MUI_PAGE_LICENSE "src\Other\Source\EULA.rtf"
419 !insertmacro MUI_PAGE_COMPONENTS
420 !insertmacro MUI_PAGE_DIRECTORY
421 !insertmacro MUI_PAGE_INSTFILES
422@@ -47,92 +45,75 @@
423 ; Set languages (first is default language)
424 !insertmacro MUI_LANGUAGE "English"
425 !insertmacro MUI_RESERVEFILE_LANGDLL
426-
427-Section "-Main program" SecMain
428-
429- SectionIn 1 2
430-
431- ; Set Section properties
432- SetOverwrite on
433-
434- ; Set Section Files and Shortcuts
435- SetOutPath "$INSTDIR\"
436- File /r /x .svn /x Zim-setup*.exe /x "zim.exe.log" "build\*.*"
437- File "zim.ico"
438-
439-SectionEnd
440-
441-SectionGroup "Desktop" GroupDesktop
442-
443- Section "Start Menu shortcut" SecStartShortcut
444-
445- SectionIn 1
446-
447- CreateDirectory "$SMPROGRAMS\Zim Desktop Wiki"
448- CreateShortCut "$SMPROGRAMS\Zim Desktop Wiki\Zim.lnk" "$INSTDIR\zim.exe"
449- CreateShortCut "$SMPROGRAMS\Zim Desktop Wiki\Uninstall.lnk" "$INSTDIR\uninstall.exe"
450-
451- SectionEnd
452-
453- Section "Desktop shortcut" SecDesktopShortcut
454-
455- SectionIn 1
456-
457- ; Set Section properties
458- SetOverwrite on
459-
460- ; Set Section Files and Shortcuts
461- CreateShortCut "$DESKTOP\Zim Desktop Wiki.lnk" "$INSTDIR\zim.exe"
462-
463- SectionEnd
464-
465- Section ".zim file association" SecAssociate
466-
467- SectionIn 1
468- ${registerExtension} "$INSTDIR\zim.exe" ".zim" "Zim Desktop Wiki" "$INSTDIR\zim.ico"
469-
470- SectionEnd
471-
472- Section "Create Registry Keys and Uninstaller" SecUninstall
473-
474- SectionIn 1
475- WriteRegStr HKLM "Software\${APPNAME}" "" "$INSTDIR"
476- WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayName" "${APPNAME}"
477- WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" "$INSTDIR\uninstall.exe"
478- WriteUninstaller "$INSTDIR\uninstall.exe"
479-
480- SectionEnd
481-
482-SectionGroupEnd
483-
484-SectionGroup "Portable" GroupPortable
485-
486- Section "Set portable mode" SecPortable
487-
488- SectionIn 2
489- SetOutPath "$INSTDIR\"
490-
491- SectionEnd
492-
493-SectionGroupEnd
494-
495+
496+
497+Section "-Main program" SecProgramFiles
498+
499+ ; Clear installation folder, to be sure to get rid of orphaned files
500+ RMDir /r "$INSTDIR"
501+
502+ ; Set Section properties
503+ SetOverwrite on
504+
505+ ; Set Section Files and Shortcuts
506+ SetOutPath "$INSTDIR\"
507+ File /r /x .svn /x Zim-setup*.exe /x "zim.exe.log" "build\ZimDesktopWikiPortable\App\ZimDesktopWiki\*.*"
508+ File "src\zim.ico"
509+
510+SectionEnd
511+
512+
513+Section "Start Menu shortcut" SecStartShortcut
514+
515+ CreateDirectory "$SMPROGRAMS\Zim Desktop Wiki"
516+ CreateShortCut "$SMPROGRAMS\Zim Desktop Wiki\Zim.lnk" "$INSTDIR\zim.exe"
517+ CreateShortCut "$SMPROGRAMS\Zim Desktop Wiki\Uninstall.lnk" "$INSTDIR\uninstall.exe"
518+
519+SectionEnd
520+
521+Section "Desktop shortcut" SecDesktopShortcut
522+
523+ ; Set Section properties
524+ SetOverwrite on
525+
526+ ; Set Section Files and Shortcuts
527+ CreateShortCut "$DESKTOP\Zim Desktop Wiki.lnk" "$INSTDIR\zim.exe"
528+
529+SectionEnd
530+
531+Section ".zim file association" SecAssociate
532+
533+ ${registerExtension} "$INSTDIR\zim.exe" ".zim" "Zim Desktop Wiki" "$INSTDIR\zim.ico"
534+
535+SectionEnd
536+
537+Section "Create Registry Keys and Uninstaller" SecUninstall
538+
539+ WriteRegStr HKLM "Software\${APPNAME}" "" "$INSTDIR"
540+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayName" "${APPNAME}"
541+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" "$INSTDIR\uninstall.exe"
542+ WriteUninstaller "$INSTDIR\uninstall.exe"
543+
544+SectionEnd
545+
546
547 ; Modern install component descriptions
548-!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
549- !insertmacro MUI_DESCRIPTION_TEXT ${GroupDesktop} "Install to this computer."
550- !insertmacro MUI_DESCRIPTION_TEXT ${SecStartShortcut} "Install a shortcut to Zim in your Start Menu."
551- !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} "Install a shortcut to Zim on your Desktop."
552- !insertmacro MUI_DESCRIPTION_TEXT ${SecAssociate} "Associate .zim files with Zim."
553- !insertmacro MUI_DESCRIPTION_TEXT ${SecUninstall} "Create uninstaller and registry keys necessary for uninstallation."
554- !insertmacro MUI_DESCRIPTION_TEXT ${GroupPortable} "Install to portable storage device. (Work in progress! Uses %USERPROFILE% folder when running.)"
555- !insertmacro MUI_DESCRIPTION_TEXT ${SecPortable} "Set the installed application to portable mode (does not use Registry nor My Documents or Program Files folders)."
556-!insertmacro MUI_FUNCTION_DESCRIPTION_END
557+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
558+ !insertmacro MUI_DESCRIPTION_TEXT ${SecStartShortcut} \
559+ "Install a shortcut to Zim in your Start Menu."
560+ !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} \
561+ "Install a shortcut to Zim on your Desktop."
562+ !insertmacro MUI_DESCRIPTION_TEXT ${SecAssociate} \
563+ "Associate .zim files with Zim."
564+ !insertmacro MUI_DESCRIPTION_TEXT ${SecUninstall} \
565+ "Create uninstaller and registry keys necessary for uninstallation."
566+!insertmacro MUI_FUNCTION_DESCRIPTION_END
567
568 ;Uninstall section
569 Section Uninstall
570-
571- ;Remove file association
572- ${unregisterExtension} ".zim" "Zim Desktop Wiki"
573+
574+ ;Remove file association
575+ ${unregisterExtension} ".zim" "Zim Desktop Wiki"
576
577 ;Remove from registry...
578 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}"
579@@ -141,21 +122,21 @@
580 ; Delete self
581 Delete "$INSTDIR\uninstall.exe"
582
583- ; Delete Shortcuts
584- Delete "$SMPROGRAMS\Zim Desktop Wiki\Zim.lnk"
585- Delete "$SMPROGRAMS\Zim Desktop Wiki\Uninstall.lnk"
586- Delete "$DESKTOP\Zim Desktop Wiki.lnk"
587-
588- ; Delete configuration
589- RMDir /r "$APPDATA\zim"
590+ ; Delete configuration
591+ RMDir /r "$APPDATA\zim"
592
593 ; Remove remaining directories
594 RMDir "$SMPROGRAMS\Zim Desktop Wiki"
595 RMDir /r "$INSTDIR"
596
597+ ; Detel desktop icon and Start Menu shortcuts
598+ SetShellVarContext all
599+ Delete "$DESKTOP\Zim Desktop Wiki.lnk"
600+ RMDir /r "$SMPROGRAMS\Zim Desktop Wiki"
601+ SetShellVarContext current
602+ Delete "$DESKTOP\Zim Desktop Wiki.lnk"
603+ RMDir /r "$SMPROGRAMS\Zim Desktop Wiki"
604+
605 SectionEnd
606-
607-InstType "Desktop Install"
608-InstType "Portable Install"
609
610 ; eof
611\ No newline at end of file
612
613=== removed file 'windows/env.cmd'
614--- windows/env.cmd 2010-11-30 07:47:14 +0000
615+++ windows/env.cmd 1970-01-01 00:00:00 +0000
616@@ -1,1 +0,0 @@
617-SET PATH=%PATH%;C:\Program Files\Common Files\GTK\2.22\bin;c:\Programs\Python26
618
619=== added directory 'windows/src'
620=== added directory 'windows/src/AppInfo'
621=== added directory 'windows/src/AppInfo/Launcher'
622=== added file 'windows/src/AppInfo/Launcher/ZimDesktopWikiPortable.ini'
623--- windows/src/AppInfo/Launcher/ZimDesktopWikiPortable.ini 1970-01-01 00:00:00 +0000
624+++ windows/src/AppInfo/Launcher/ZimDesktopWikiPortable.ini 2011-09-11 23:12:23 +0000
625@@ -0,0 +1,6 @@
626+[Launch]
627+ProgramExecutable=ZimDesktopWiki\zim.exe
628+
629+[Environment]
630+XDG_CONFIG_HOME=%PAL:DataDir%\Config
631+HOME=%PAL:DataDir%
632
633=== added file 'windows/src/AppInfo/appicon_128.png'
634Binary files windows/src/AppInfo/appicon_128.png 1970-01-01 00:00:00 +0000 and windows/src/AppInfo/appicon_128.png 2011-09-11 23:12:23 +0000 differ
635=== added file 'windows/src/AppInfo/appinfo.ini'
636--- windows/src/AppInfo/appinfo.ini 1970-01-01 00:00:00 +0000
637+++ windows/src/AppInfo/appinfo.ini 2011-09-11 23:12:23 +0000
638@@ -0,0 +1,37 @@
639+[Format]
640+Type=PortableApps.comFormat
641+Version=2.0
642+
643+[Details]
644+Name=Zim Desktop Wiki Portable
645+AppId=ZimDesktopWikiPortable
646+Publisher=Brendan Kidwell
647+Homepage=glump.net/software/zim
648+Category=Office
649+Description=Zim is a graphical text editor used to maintain a collection of wiki pages.
650+Language=Multilingual
651+Trademarks=
652+InstallType=
653+
654+[License]
655+Shareable=true
656+OpenSource=true
657+Freeware=true
658+CommercialUse=true
659+EULAVersion=1
660+
661+[SpecialPaths]
662+Plugins=NONE
663+
664+[Dependencies]
665+UsesJava=false
666+UsesDotNetVersion=
667+
668+[Control]
669+Icons=1
670+Start=ZimDesktopWikiPortable.exe
671+
672+; -- The following will be filled out by build_win32.py
673+;[Version]
674+;PackageVersion=0.0.0.0
675+;DisplayVersion=0.0
676
677=== added directory 'windows/src/Other'
678=== added directory 'windows/src/Other/Help'
679=== added directory 'windows/src/Other/Help/images'
680=== added file 'windows/src/Other/Help/images/globe_64.png'
681Binary files windows/src/Other/Help/images/globe_64.png 1970-01-01 00:00:00 +0000 and windows/src/Other/Help/images/globe_64.png 2011-09-11 23:12:23 +0000 differ
682=== added directory 'windows/src/Other/Source'
683=== added file 'windows/src/Other/Source/EULA.rtf'
684--- windows/src/Other/Source/EULA.rtf 1970-01-01 00:00:00 +0000
685+++ windows/src/Other/Source/EULA.rtf 2011-09-11 23:12:23 +0000
686@@ -0,0 +1,128 @@
687+{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fprq2\fcharset0 Microsoft Sans Serif;}}
688+{\colortbl ;\red0\green0\blue0;}
689+{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\qc\cf1\lang1033\f0\fs16 GNU GENERAL PUBLIC LICENSE\par
690+Version 2, June 1991\par
691+\pard\par
692+Copyright (C) 1989, 1991 Free Software Foundation, Inc.,\par
693+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\par
694+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\par
695+\par
696+\pard\qc Preamble\par
697+\pard\par
698+ The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.\par
699+\par
700+ When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.\par
701+\par
702+ To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.\par
703+\par
704+ For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\par
705+\par
706+ We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.\par
707+\par
708+ Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.\par
709+\par
710+ Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.\par
711+\par
712+ The precise terms and conditions for copying, distribution and modification follow.\par
713+\par
714+\pard\qc GNU GENERAL PUBLIC LICENSE\par
715+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\par
716+\pard\par
717+ 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".\par
718+\par
719+Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.\par
720+\par
721+ 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.\par
722+\par
723+You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.\par
724+\par
725+ 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:\par
726+\par
727+\pard\li360 a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.\par
728+\par
729+b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.\par
730+\par
731+c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)\par
732+\pard\par
733+These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.\par
734+\par
735+Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.\par
736+\par
737+In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.\par
738+\par
739+ 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:\par
740+\par
741+\pard\li360 a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\par
742+\par
743+b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\par
744+\par
745+c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)\par
746+\pard\par
747+The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.\par
748+\par
749+If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.\par
750+\par
751+ 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.\par
752+\par
753+ 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.\par
754+\par
755+ 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.\par
756+\par
757+ 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.\par
758+\par
759+If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.\par
760+\par
761+It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.\par
762+\par
763+This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.\par
764+\par
765+ 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.\par
766+\par
767+ 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\par
768+\par
769+Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.\par
770+\par
771+ 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.\par
772+\par
773+\pard\qc NO WARRANTY\par
774+\pard\par
775+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\par
776+\par
777+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\par
778+\par
779+\pard\qc END OF TERMS AND CONDITIONS\par
780+\par
781+How to Apply These Terms to Your New Programs\par
782+\pard\par
783+ If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\par
784+\par
785+ To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.\par
786+\par
787+\pard\li360 <one line to give the program's name and a brief idea of what it does.>\par
788+Copyright (C) <year> <name of author>\par
789+\par
790+This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\par
791+\par
792+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\par
793+\par
794+You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\par
795+\pard\par
796+Also add information on how to contact you by electronic and paper mail.\par
797+\par
798+If the program is interactive, make it output a short notice like this when it starts in an interactive mode:\par
799+\par
800+\pard\li360 Gnomovision version 69, Copyright (C) year name of author\par
801+Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\par
802+\pard\par
803+The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.\par
804+\par
805+You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:\par
806+\par
807+\pard\li360 Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.\par
808+\par
809+<signature of Ty Coon>, 1 April 1989\par
810+Ty Coon, President of Vice\par
811+\pard\par
812+This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License.\par
813+}
814+
815\ No newline at end of file
816
817=== added file 'windows/src/help.html'
818--- windows/src/help.html 1970-01-01 00:00:00 +0000
819+++ windows/src/help.html 2011-09-11 23:12:23 +0000
820@@ -0,0 +1,37 @@
821+<html>
822+<head>
823+<title>Zim Desktop Wiki Portable</title>
824+<style type="text/css">
825+ body { margin: 1em; }
826+ h1, h2, h3 { font-family: sans-serif; }
827+ h1 { font-size: 1.5em; font-weight: bold; }
828+ h2 { font-size: 1.25em; font-weight: bold; }
829+ h3 { font-size: 1.15em; }
830+</style>
831+</head>
832+<body>
833+
834+<h1>
835+<img src="Other/Help/images/globe_64.png" style="vertical-align:middle;" />
836+Zim Desktop Wiki Portable
837+</h1>
838+
839+<p><a href="http://www.zim-wiki.org">www.zim-wiki.org</a></p>
840+
841+<p><b>Zim</b> is a graphical text editor used to maintain a collection of wiki pages. Each page can contain links to other pages, simple formatting and images. Pages are stored in a folder structure, like in an outliner, and can have attachments. Creating a new page is as easy as linking to a nonexistent page. All data is stored in plain text files with wiki formatting. Various plugins provide additional functionality, like a task list manager, an equation editor, a tray icon, and support for version control.</p>
842+
843+<p><b>Zim</b> can be used to:</p>
844+
845+<ul>
846+<li>Keep an archive of notes</li>
847+<li>Take notes during meetings or lectures</li>
848+<li>Organize task lists</li>
849+<li>Draft blog entries and emails</li>
850+<li>Do brainstorming</li>
851+</ul>
852+
853+<h2>How to Use Zim Desktop Wiki Portable</h2>
854+
855+<p>If you have any exiting notebooks, put them in <code>./Data/Notebooks</code>. When <b>Zim Desktop Wiki Portable</b> starts, your notebook list will automatically be populated with the contents of that folder. If there is a notebook called <code>Default</code>, this notebook will be opened automatically and the <b>Open Notebook</b> dialog box will be bypassed.</p>
856+
857+<p>To launch <b>Zim Desktop Wiki Portable</b>, run <code>ZimDesktopWikiPortable.exe</code>
858
859=== renamed file 'windows/hicolor-icon-theme__index.theme' => 'windows/src/hicolor-icon-theme__index.theme'
860=== renamed file 'windows/registerExtension.nsh' => 'windows/src/registerExtension.nsh'
861=== renamed file 'windows/zim-logo-big.bmp' => 'windows/src/zim-logo-big.bmp'
862=== renamed file 'windows/zim.ico' => 'windows/src/zim.ico'
863Binary files windows/zim.ico 2010-06-28 18:27:14 +0000 and windows/src/zim.ico 2011-09-11 23:12:23 +0000 differ
864=== added file 'windows/src/zim.ico.txt'
865--- windows/src/zim.ico.txt 1970-01-01 00:00:00 +0000
866+++ windows/src/zim.ico.txt 2011-09-11 23:12:23 +0000
867@@ -0,0 +1,10 @@
868+If the Zim application icon has changed, you must manually rebuild it
869+here before running the Windows build scripts.
870+
871+1. Using IcoFX (free software), import Zim's zim16.png, zim32.png, and
872+zim48.png to a fresh ICO file.
873+
874+2. Using InkScape, convert zim48.svg to a temporary 256x256 PNG file
875+and import that into the same ICO file as step 1.
876+
877+3. Save as ./windows/src/zim.ico .