Adding README to installer.
This commit is contained in:
parent
ba33695c9f
commit
c9b4cf35a1
|
@ -5,6 +5,8 @@ syntax: glob
|
||||||
luminotes.log
|
luminotes.log
|
||||||
luminotes_error.log
|
luminotes_error.log
|
||||||
luminotes.db
|
luminotes.db
|
||||||
|
README.txt
|
||||||
|
COPYING.txt
|
||||||
session/*
|
session/*
|
||||||
files/*
|
files/*
|
||||||
build/*
|
build/*
|
||||||
|
|
2
README
2
README
|
@ -8,8 +8,6 @@ and even includes some tips on creating your wiki. You can check it out at:
|
||||||
|
|
||||||
http://luminotes.com/guide
|
http://luminotes.com/guide
|
||||||
|
|
||||||
If you'd like to actually install the Luminotes server, see the INSTALL file.
|
|
||||||
|
|
||||||
Enjoy!
|
Enjoy!
|
||||||
|
|
||||||
Luminotes Copyright (C) 2007-2008 Dan Helfman
|
Luminotes Copyright (C) 2007-2008 Dan Helfman
|
||||||
|
|
28
setup.py
28
setup.py
|
@ -94,11 +94,15 @@ class InnoScript:
|
||||||
print >> ofi, r"DefaultDirName={pf}\%s" % self.name
|
print >> ofi, r"DefaultDirName={pf}\%s" % self.name
|
||||||
print >> ofi, r"DefaultGroupName=%s" % self.name
|
print >> ofi, r"DefaultGroupName=%s" % self.name
|
||||||
print >> ofi, r"SetupIconFile=static\images\luminotes.ico"
|
print >> ofi, r"SetupIconFile=static\images\luminotes.ico"
|
||||||
|
print >> ofi, r"UninstallIconFile=static\images\luminotes.ico"
|
||||||
print >> ofi
|
print >> ofi
|
||||||
|
|
||||||
print >> ofi, r"[Files]"
|
print >> ofi, r"[Files]"
|
||||||
for path in self.windows_exe_files + self.lib_files:
|
for path in self.windows_exe_files + self.lib_files:
|
||||||
print >> ofi, r'Source: "%s"; DestDir: "{app}\%s"; Flags: ignoreversion' % (path, os.path.dirname(path))
|
if "readme" in path.lower():
|
||||||
|
print >> ofi, r'Source: "%s"; DestDir: "{app}\%s"; Flags: ignoreversion isreadme' % (path, os.path.dirname(path))
|
||||||
|
else:
|
||||||
|
print >> ofi, r'Source: "%s"; DestDir: "{app}\%s"; Flags: ignoreversion' % (path, os.path.dirname(path))
|
||||||
print >> ofi
|
print >> ofi
|
||||||
|
|
||||||
print >> ofi, r"[Icons]"
|
print >> ofi, r"[Icons]"
|
||||||
|
@ -148,10 +152,10 @@ try:
|
||||||
import py2exe
|
import py2exe
|
||||||
from py2exe.build_exe import py2exe
|
from py2exe.build_exe import py2exe
|
||||||
|
|
||||||
class Build_installer(py2exe):
|
class Build_installer( py2exe ):
|
||||||
# This class first builds the exe file(s), then creates a Windows installer.
|
# This class first builds the exe file(s), then creates a Windows installer.
|
||||||
# You need InnoSetup for it.
|
# You need InnoSetup for it.
|
||||||
def run(self):
|
def run( self ):
|
||||||
# generate an initial database file
|
# generate an initial database file
|
||||||
try:
|
try:
|
||||||
os.remove( "luminotes.db" )
|
os.remove( "luminotes.db" )
|
||||||
|
@ -161,6 +165,10 @@ try:
|
||||||
from tools import initdb
|
from tools import initdb
|
||||||
initdb.main( ( "-l", ) )
|
initdb.main( ( "-l", ) )
|
||||||
|
|
||||||
|
# copy the README and COPYING files to have ".txt" extensions and Windows newlines
|
||||||
|
self.copy_doc( "README" )
|
||||||
|
self.copy_doc( "COPYING" )
|
||||||
|
|
||||||
# First, let py2exe do it's work.
|
# First, let py2exe do it's work.
|
||||||
py2exe.run(self)
|
py2exe.run(self)
|
||||||
|
|
||||||
|
@ -179,6 +187,17 @@ try:
|
||||||
print "*** compiling the inno setup script***"
|
print "*** compiling the inno setup script***"
|
||||||
script.compile()
|
script.compile()
|
||||||
# Note: By default the final setup.exe will be in an Output subdirectory.
|
# Note: By default the final setup.exe will be in an Output subdirectory.
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def copy_doc( path ):
|
||||||
|
out = file( "%s.txt" % path, "w" )
|
||||||
|
|
||||||
|
for line in file( path ).readlines():
|
||||||
|
line = line.rstrip( "\r\n" )
|
||||||
|
out.write( "%s\r\n" % line )
|
||||||
|
|
||||||
|
out.close()
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
class Build_installer:
|
class Build_installer:
|
||||||
pass
|
pass
|
||||||
|
@ -194,6 +213,8 @@ setup(
|
||||||
distclass = Luminotes,
|
distclass = Luminotes,
|
||||||
cmdclass = { "py2exe": Build_installer }, # override default py2exe class
|
cmdclass = { "py2exe": Build_installer }, # override default py2exe class
|
||||||
data_files = [
|
data_files = [
|
||||||
|
( "", [ "README.txt", ] ),
|
||||||
|
( "", [ "COPYING.txt", ] ),
|
||||||
( "", [ "luminotes.db", ] ),
|
( "", [ "luminotes.db", ] ),
|
||||||
( "static/css", files( "static/css/*.*" ) ),
|
( "static/css", files( "static/css/*.*" ) ),
|
||||||
( "static/html", files( "static/html/*.*" ) ),
|
( "static/html", files( "static/html/*.*" ) ),
|
||||||
|
@ -201,6 +222,7 @@ setup(
|
||||||
( "static/images/toolbar", files( "static/images/toolbar/*.*" ) ),
|
( "static/images/toolbar", files( "static/images/toolbar/*.*" ) ),
|
||||||
( "static/images/toolbar/small", files( "static/images/toolbar/small/*.*" ) ),
|
( "static/images/toolbar/small", files( "static/images/toolbar/small/*.*" ) ),
|
||||||
( "static/js", files( "static/js/*.*" ) ),
|
( "static/js", files( "static/js/*.*" ) ),
|
||||||
|
( "static/js", files( "static/js/*_LICENSE" ) ),
|
||||||
( "files", files( "files/.empty" ) ),
|
( "files", files( "files/.empty" ) ),
|
||||||
],
|
],
|
||||||
options = dict(
|
options = dict(
|
||||||
|
|
Reference in New Issue