Commit 1f790542 authored by Jondy Zhao's avatar Jondy Zhao

slapos-windows-installer:

  fix typos
  add wrapper for instance configure command
parent d46d59ba
......@@ -10,18 +10,16 @@ offline = true
recipe = slapos.recipe.cmmi
# This url is useless
path = $${buildout:directory}
configure-command = msiexec.exe
configure-options =
/i ${installer:location}/slapos-windows-all-in-one.exe
TARGETDIR=$${buildout:directory}
/quiet
/log $${buildout:directory}/slapos-windows-installer.log
pre-configure =
echo -e "#! /bin/bash\nmsiexec.exe /i `cygpath -w ${installer:location}/slapos-windows-all-in-one.exe` TARGETDIR=`cygpath -w $${buildout:directory}` /log `cygpath -w $${buildout:directory}/slapos-windows-installer.log` /quiet" > $${buildout:directory}/boot-installer
chmod +x $${buildout:directory}/boot-installer
configure-command = $${buildout:directory}/boot-installer
pre-install =
cp ${installer:cygroot}/slapos-windows-wrapper.bat $${buildout:directory}/
cp ${installer:cygroot}/test-computer.key $${buildout:directory}/cygwin/computer.key
cp ${installer:cygroot}/test-/computer.crt $${buildout:directory}/cygwin/computer.crt
cp ~/.slapos/key $${buildout:directory}/cygwin/key
cp ~/.slapos/certificate $${buildout:directory}/cygwin/certificate
cp ${installer:cygroot}/.slapos/key $${buildout:directory}/cygwin/key
cp ${installer:cygroot}/.slapos/certificate $${buildout:directory}/cygwin/certificate
make-binary = true
# The parameter "slaptester" is the password of slapos administrator
# passed to configure script
......
......@@ -46,7 +46,7 @@ path = ${buildout:parts-directory}/${:_buildout_section_name_}
cygroot = ${buildout:parts-directory}/${:_buildout_section_name_}
pre-configure=
mkdir -p ${:cygroot}/cygwin
(cd ${:cygroot}/cygwin ; tar xzf ${inno-setup:location}/inno-setup.tar.gz)
(cd ${:cygroot} ; tar xjf ${inno-setup:location}/inno-setup.tar.bz2)
(cd ${:cygroot} ; tar xjf ${cygwin-packages:location}/cygwin-packages.tar.bz2)
cp /usr/bin/setup.exe ${:cygroot}
cp ${slapos-build-installer:location}/slapos-build-installer ${:cygroot}/cygwin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment