Add help entry and set PATH in windows installer.
This commit is contained in:
parent
7d299c1b1d
commit
731fd4e0cf
|
@ -1,5 +1,5 @@
|
||||||
include MANIFEST.in
|
include MANIFEST.in
|
||||||
include COPYING doc/*.1 doc/*.txt doc/*.tmpl doc/icon/*
|
include COPYING doc/*.1 doc/*.txt doc/*.tmpl doc/icon/*
|
||||||
include Makefile *.bash-completion
|
include Makefile *.bash-completion
|
||||||
include scripts/*.bat
|
include scripts/*.bat scripts/*.iss
|
||||||
recursive-include tests *.py
|
recursive-include tests *.py
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
* Add support for searching in archive contents.
|
* Add support for searching in archive contents.
|
||||||
* Add support for ISO image handling.
|
* Add support for ISO image handling.
|
||||||
* Allow multiple --verbose options to increase program output.
|
* Allow multiple --verbose options to increase program output.
|
||||||
|
* Add patool.exe to the PATH in the windows installer.
|
||||||
* Fixed Python lzma archive handling.
|
* Fixed Python lzma archive handling.
|
||||||
* Fixed lzop, lrzip and rzip archive handling.
|
* Fixed lzop, lrzip and rzip archive handling.
|
||||||
* Fixed Python 3.x support.
|
* Fixed Python 3.x support.
|
||||||
|
|
19
setup.py
19
setup.py
|
@ -178,7 +178,7 @@ class InnoScript:
|
||||||
print("SetupIconFile=%s" % self.icon, file=fd)
|
print("SetupIconFile=%s" % self.icon, file=fd)
|
||||||
print(file=fd)
|
print(file=fd)
|
||||||
print("[Tasks]", file=fd)
|
print("[Tasks]", file=fd)
|
||||||
print("Name: modifypath; Description: Add app directory to environment PATH; Flags: unchecked", file=fd)
|
print("Name: modifypath; Description: Add application directory to %PATH%; Flags: checked", file=fd)
|
||||||
print(file=fd)
|
print(file=fd)
|
||||||
# List of source files
|
# List of source files
|
||||||
files = self.windows_exe_files + \
|
files = self.windows_exe_files + \
|
||||||
|
@ -194,8 +194,9 @@ class InnoScript:
|
||||||
for path in self.windows_exe_files:
|
for path in self.windows_exe_files:
|
||||||
print(r'Name: "{group}\%s"; Filename: "{app}\%s"' %
|
print(r'Name: "{group}\%s"; Filename: "{app}\%s"' %
|
||||||
(self.name, path), file=fd)
|
(self.name, path), file=fd)
|
||||||
if self.console_exe_files:
|
for path in self.console_exe_files:
|
||||||
print(r'Name: "{group}\Patool command prompt"; Filename: "cmd.exe"', file=fd)
|
name = os.path.basename(path).capitalize()
|
||||||
|
print(r'Name: "{group}\%s help"; Filename: "cmd.exe"; Parameters "/C %s --help";' % (name, path), file=fd)
|
||||||
print(r'Name: "{group}\Uninstall %s"; Filename: "{uninstallexe}"' % self.name, file=fd)
|
print(r'Name: "{group}\Uninstall %s"; Filename: "{uninstallexe}"' % self.name, file=fd)
|
||||||
print(file=fd)
|
print(file=fd)
|
||||||
# Uninstall optional log files
|
# Uninstall optional log files
|
||||||
|
@ -207,13 +208,13 @@ class InnoScript:
|
||||||
print("""\
|
print("""\
|
||||||
const
|
const
|
||||||
ModPathName = 'modifypath';
|
ModPathName = 'modifypath';
|
||||||
ModPathType = 'user';
|
ModPathType = 'user';
|
||||||
|
|
||||||
function ModPathDir(): TArrayOfString;
|
function ModPathDir(): TArrayOfString;
|
||||||
begin
|
begin
|
||||||
setArrayLength(Result, 1)
|
setArrayLength(Result, 1)
|
||||||
Result[0] := ExpandConstant('{app}');
|
Result[0] := ExpandConstant('{app}');
|
||||||
end;
|
end;
|
||||||
#include "modpath.iss"
|
#include "modpath.iss"
|
||||||
""", file=fd)
|
""", file=fd)
|
||||||
shutil.copy(r"scripts\modpath.iss", "dist")
|
shutil.copy(r"scripts\modpath.iss", "dist")
|
||||||
|
|
Loading…
Reference in New Issue