Win32 installer

master
Yevgen Muntyan 2006-04-10 04:51:25 -05:00
parent da9d539e20
commit ada83f0165
5 changed files with 107 additions and 0 deletions

View File

@ -94,6 +94,12 @@ nodist_libmoo_sources = $(moo_nodist_sources)
EXTRA_DIST += $(moo_extra_dist)
mooedit_datadir = ${MOO_DATA_DIR}
mooedit_data_DATA = ui.xml.example actions.cfg.example
ui.xml.example: tests/medit-ui.xml
cp $(srcdir)/tests/medit-ui.xml ui.xml.example
EXTRA_DIST += actions.cfg.example
##############################################################################
# tests

17
actions.cfg.example Normal file
View File

@ -0,0 +1,17 @@
## weferger
#rgreger
#ergergerg
action: DoSomething
label: Do Something
command: shell
ls $file
action: DoSomethingElse
label: Do Something Else
accel: <ctrl>B
if doc.file then
output = Exec('ls ' + doc.file);
else
output = Exec('ls');
fi;
Insert(output);

View File

@ -71,6 +71,7 @@ moo/moo.pc
moo/moo-version.h
tests/pyapp.py
m4/Makefile
wininstaller/medit.iss
])

50
makewin Executable file
View File

@ -0,0 +1,50 @@
#!/bin/sh
dir=`pwd`
builddir=/home/muntyan/projects/moo/build
medit_windir=/usr/local/win/medit
if [ x$1 != x -a x$1 != x"--no-cygwin" ]; then
medit_builddir=`cd $1 && pwd`
else
medit_builddir=$builddir/mingw
fi
config=`basename $medit_builddir`
installdir=$dir/$config-root
issdir=Z:$medit_builddir/wininstaller
iss=$issdir/medit.iss
installer=medit`echo $config | sed s/mingw//`.exe
do_cmd () {
echo "*** " $*
$*
return $?
}
copy_files () {
do_cmd cp $1/usr/local/bin/medit.exe $2/ && \
do_cmd cp -r $1/usr/local/share/moo/ui.xml.example $2/ui.xml && \
do_cmd cp -r $1/usr/local/share/moo/actions.cfg.example $2/actions.cfg && \
do_cmd cp -r $1/usr/local/share/moo/syntax $2/
}
build () {
do_cmd mkdir $medit_windir && \
do_cmd mkdir $installdir && \
do_cmd cd $medit_builddir && \
do_cmd make install-strip DESTDIR=$installdir && \
copy_files $installdir $medit_windir && \
echo "*** " wine /usr/local/win/InnoSetup5/ISCC.exe $iss && \
wine /usr/local/win/InnoSetup5/ISCC.exe $iss && \
do_cmd mv $medit_builddir/wininstaller/Output/setup.exe $dir/$installer
}
clean () {
do_cmd rm -rf $medit_windir
do_cmd rm -rf $installdir
do_cmd rm -rf $medit_builddir/wininstaller/Output
}
build
clean

33
wininstaller/medit.iss.in Normal file
View File

@ -0,0 +1,33 @@
[Setup]
AppName=medit
AppVerName=medit @MOO_VERSION_UNQUOTED@
AppPublisher=Yevgen Muntyan
AppPublisherURL=http://ggap.sourceforge.net/
AppSupportURL=http://ggap.sourceforge.net/
AppUpdatesURL=http://ggap.sourceforge.net/
DefaultDirName={pf}\medit
DefaultGroupName=medit
AllowNoIcons=yes
; LicenseFile=C:\ggap\license.txt
Compression=lzma
SolidCompression=yes
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
[Files]
Source: C:\medit\medit.exe; DestDir: {app}; Flags: ignoreversion
Source: C:\medit\syntax\*; DestDir: {app}\syntax; Flags: ignoreversion recursesubdirs
Source: C:\medit\actions.cfg; DestDir: {app}; Flags: ignoreversion
Source: C:\medit\ui.xml; DestDir: {app}; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: {group}\medit; Filename: {app}\medit.exe
Name: {group}\{cm:UninstallProgram,medit}; Filename: {uninstallexe}
Name: {userdesktop}\medit; Filename: {app}\medit.exe; Tasks: desktopicon
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\medit; Filename: {app}\medit.exe; Tasks: quicklaunchicon
[Run]
Filename: {app}\medit.exe; Description: {cm:LaunchProgram,medit}; Flags: nowait postinstall skipifsilent