mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-29 17:28:53 +00:00
3cb08209d2
this resolves problems of py2exe's modulefinder collection of sources from .zipped egg files, not by using easy_install to reach the --always-unzip option, but rather with a small tool which unpacks any zipped egg files found in misc/dependencies. this fixes the py2exe build given rollback of the easy_install stuff which had broken the unix builds. misc/hatch-eggs.py performs the honours. this also includes a misc/sub-ver.py tool which substitutes elements of the verion number for the current code base (by importing allmydata.__version__ hence make-version should be run first, and the python path carefully managed) into template files using python's string interpolation of named args from a dict as the templating syntax. i.e. %(major)d %(minor)d %(point)d %(nano)d each expand to the individual components of the version number as codified by the pyutil.version_class.Version class. there is also a %(build)s tag which expands to the string form of the whole version number. This tool is used to interpolate the automatically generated version information into the innosetup source file in a form consistent with innosetup/windows' restrictions
52 lines
2.2 KiB
Cheetah
52 lines
2.2 KiB
Cheetah
[Setup]
|
|
AppName=Allmydata Tahoe
|
|
AppVerName=Allmydata Tahoe %(major)d.%(minor)d
|
|
AppVersion=%(major)d.%(minor)d.%(point)d-%(nano)d
|
|
VersionInfoVersion=%(major)d.%(minor)d.%(point)d.%(nano)d
|
|
AppPublisher=Allmydata Inc.
|
|
AppPublisherURL=http://www.allmydata.com/
|
|
AppSupportURL=http://www.allmydata.com/support/
|
|
DefaultDirName={pf}\Allmydata.Tahoe
|
|
DefaultGroupName=Allmydata
|
|
; minumum version NT 4, no classic windows
|
|
MinVersion=0,4.0
|
|
Compression=lzma/max
|
|
SolidCompression=yes
|
|
OutputDir=./installer/
|
|
SourceDir=dist
|
|
SetupIconFile=../installer.ico
|
|
UninstallDisplayIcon=../amdicon.ico
|
|
; license file needs to be build/all dir
|
|
;LicenseFile=../license.txt
|
|
OutputBaseFilename=Allmydata_Tahoe_Setup_v%(major)d_%(minor)d_%(point)d
|
|
|
|
[Files]
|
|
; contents of 'binaries' dir. (consolidated build target)
|
|
Source: "*.*"; DestDir: "{app}\Install"; Flags: restartreplace replacesameversion uninsrestartdelete
|
|
Source: ".\web\*.*"; DestDir: "{app}\web"; Flags: recursesubdirs
|
|
|
|
[Dirs]
|
|
Name: "{app}\noderoot"
|
|
|
|
[Icons]
|
|
; Program files entries
|
|
Name: "{group}\Tahoe root dir (web)"; Filename: "{app}\Install\tahoe.exe"; Parameters: "webopen"
|
|
Name: "{group}\Allmydata Help"; Filename: "http://www.allmydata.com/help.php"
|
|
|
|
[Run]
|
|
; Things performed before the final page of the installer
|
|
Filename: "{app}\Install\tahoesvc.exe"; Parameters: "-install"; Flags: runhidden
|
|
Filename: "{app}\Install\tahoe.exe"; Parameters: "create-client ""{app}\noderoot"""; Description: "Set the node into debug logging mode"; Flags: runhidden
|
|
Filename: "{app}\Install\confwiz.exe"; Flags: hidewizard
|
|
;Filename: "{app}\Install\ReadMe.txt"; Description: "View the ReadMe file"; Flags: unchecked postinstall nowait shellexec skipifdoesntexist
|
|
|
|
[UninstallRun]
|
|
; Performed before the uninstaller runs to undo things
|
|
Filename: "{sys}\net.exe"; Parameters: "stop Tahoe"; Flags: runhidden
|
|
Filename: "{app}\Install\tahoesvc.exe"; Parameters: "-remove"; Flags: runhidden
|
|
;Filename: "http://www.allmydata.com/redirect/uninstallsurvey.php?build=%(build)%"; Flags: shellexec
|
|
|
|
[Registry]
|
|
Root: HKLM; Subkey: "Software\Allmydata"; Flags: uninsdeletekeyifempty
|
|
Root: HKLM; Subkey: "Software\Allmydata"; ValueType: string; ValueName: "Base Dir Path"; ValueData: "{app}\noderoot"; Flags: uninsdeletekey
|