Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos-caddy
Commits
d197529b
Commit
d197529b
authored
Sep 05, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos-windows-installer: refine the self installer
parent
45bd7748
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
53 deletions
+10
-53
software/slapos-windows-installer/instance.cfg.in
software/slapos-windows-installer/instance.cfg.in
+6
-9
software/slapos-windows-installer/software.cfg
software/slapos-windows-installer/software.cfg
+4
-44
No files found.
software/slapos-windows-installer/instance.cfg.in
View file @
d197529b
...
...
@@ -11,25 +11,22 @@ recipe = slapos.recipe.cmmi
# This url is useless
path = $${buildout:directory}
pre-configure =
declare -r installer=
${installer:location}
/slapos-windows-all-in-one.exe
declare -r installer=
/opt/publish
/slapos-windows-all-in-one.exe
declare -r targetdir=$(cygpath -w $${buildout:directory})
declare -r logfile=$(cygpath -w $${buildout:directory}/slapos-windows-installer.log)
echo "$installer /DIR=\"\$targetdir\" /LOG=\"\$logfile\" /VERYSILENT" > $${:configure-command}
chmod +x $${:configure-command}
configure-command = $${buildout:directory}/bootloader.sh
pre-install =
declare -r cyghome="$(cygpath -m -a /)/.."
cp $cyghome/setup.exe $${buildout:directory}
cp $cyghome/certificate $${buildout:directory}/cygwin/certificate
cp $cyghome/key $${buildout:directory}/cygwin/key
cp $cyghome/test-computer.crt $${buildout:directory}/cygwin/computer.crt
cp $cyghome/test-computer.key $${buildout:directory}/cygwin/computer.key
cp ${installer:cygroot}/slapos-windows-wrapper.bat $${buildout:directory}/slapos-windows-wrapper.bat
cp /certificate $${buildout:directory}/cygwin/certificate
cp /key $${buildout:directory}/cygwin/key
cp /test-computer.crt $${buildout:directory}/cygwin/computer.crt
cp /test-computer.key $${buildout:directory}/cygwin/computer.key
cp /etc/slapos/scripts/slapos-windows-wrapper.bat $${buildout:directory}/slapos-windows-wrapper.bat
make-binary = true
post-install =
$${buildout:directory}/slapos-windows-wrapper.bat /etc/slapos/scripts/slapos-configure.sh \
--password=slaptester \
--ipv4-local-network=10.89.208.0/24 \
--client-certificate=/certificate \
--client-key=/key \
--computer-certificate=/computer.crt \
...
...
software/slapos-windows-installer/software.cfg
View file @
d197529b
...
...
@@ -7,52 +7,12 @@ parts =
installer
instance-template
[inno-setup]
recipe = hexagonit.recipe.download
url = http://dashingsoft.com/products/slapos/inno-setup.tar.bz2
md5sum = 44620b8619c9cc5b3e262655f0089f05
download-only = true
[slapos-build-installer]
recipe = hexagonit.recipe.download
url = http://git.erp5.org/gitweb/slapos.package.git/blob_plain/heads/cygwin:/windows/scripts/slapos-build-installer
md5sum = 7aafc3fcf21596c61a8e532bea3275ed
download-only = true
[slapos-windows-wrapper]
recipe = hexagonit.recipe.download
url = http://git.erp5.org/gitweb/slapos.package.git/blob_plain/heads/cygwin:/windows/scripts/slapos-windows-wrapper.bat
md5sum = e7f1443dab3c0180a906534a1fe95ceb
download-only = true
[setup-cygwin]
recipe = hexagonit.recipe.download
url = http://git.erp5.org/gitweb/slapos.package.git/blob_plain/heads/cygwin:/windows/scripts/setup-cygwin.bat
md5sum = eb868bed0d0fd9d950f4f972b09a2479
download-only = true
[cygwin-packages]
recipe = hexagonit.recipe.download
url = http://dashingsoft.com/products/slapos/cygwin-packages.tar.bz2
md5sum = b0e3f3cf51573c3c94c787201fbb8cdf
download-only = true
[installer]
recipe = slapos.recipe.cmmi
path = ${buildout:parts-directory}/${:_buildout_section_name_}
cygroot = ${buildout:parts-directory}/${:_buildout_section_name_}
pre-configure=
mkdir -p ${:cygroot}/cygwin
(cd ${:cygroot} ; wget http://dashingsoft.com/products/slapos/inno-setup.tar.bz2 ; tar xjf inno-setup.tar.bz2)
(cd ${:cygroot} ; wget http://dashingsoft.com/products/slapos/cygwin-packages.tar.bz2 ; tar xjf cygwin-packages.tar.bz2)
cp $(cygpath -m -a /)/../setup.exe ${:cygroot}
cp ${slapos-build-installer:location}/slapos-build-installer ${:cygroot}/cygwin
cp ${slapos-windows-wrapper:location}/slapos-windows-wrapper.bat ${:cygroot}
cp ${setup-cygwin:location}/setup-cygwin.bat ${:cygroot}
chmod +x ${:cygroot}/*.bat
configure-command = ${:cygroot}/setup-cygwin.bat
configure-command = /etc/slapos/scripts/build-slapos.sh
configure-options = /opt/buildout
make-binary = true
post-install
= ${:cygroot}/slapos-windows-wrapper.bat /slapos-build-installer
post-install
= /etc/slapos/scripts/slapos-build-installer ${:configure-options}
#----------------
#-- Instance-level buildout profiles.
...
...
@@ -60,7 +20,7 @@ post-install= ${:cygroot}/slapos-windows-wrapper.bat /slapos-build-installer
[instance-template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
md5sum =
8af79052227761407fae5c5a6cb5ec02
md5sum =
450861d13f5165a800d849050a6a6821
output = ${buildout:directory}/instance.cfg
mode = 0644
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment