Commit 98304e6c authored by Jondy Zhao's avatar Jondy Zhao

Fix user-guide about how to generate installer

parent e5fad53a
...@@ -196,7 +196,7 @@ cd /opt ...@@ -196,7 +196,7 @@ cd /opt
wget http://www.dashingsoft.com/products/slapos/slapos-patches.tar.gz wget http://www.dashingsoft.com/products/slapos/slapos-patches.tar.gz
tar xzf slapos-patches.tar.gz --no-same-owner tar xzf slapos-patches.tar.gz --no-same-owner
cd /opt/slapos/eggs/slapos.core-0.35-py2.7.egg cd /opt/slapos/eggs/slapos.core-0.35-py2.7.egg
patch --dry-run -p1 < /opt/patches/slapos-core-format.patch && patch -p1 < /opt/patches/slapos-core-format.patch patch -f --dry-run -p1 < /opt/patches/slapos-core-format.patch > /dev/null && patch -p1 < /opt/patches/slapos-core-format.patch
</programlisting> </programlisting>
It seems netifaces.dll need to rebase, It seems netifaces.dll need to rebase,
<programlisting> <programlisting>
...@@ -211,10 +211,10 @@ After exit cygwin, double click autorebase.bat in the Windows explorer. If the c ...@@ -211,10 +211,10 @@ After exit cygwin, double click autorebase.bat in the Windows explorer. If the c
<section><title>Preparing the sources files for installer</title> <section><title>Preparing the sources files for installer</title>
<para>Let's we start cygwin box, then clone slapos.package.git <para>Let's we start cygwin box, then clone slapos.package.git
<programlisting> <programlisting>
mkdir /opt/git mkdir -p /opt/git
cd /opt/git cd /opt/git
git pull || git clone -b cygwin http://git.erp5.org/repos/slapos.core.git (cd slapos.core ; git pull) || git clone -b cygwin http://git.erp5.org/repos/slapos.core.git
git pull || git clone -b cygwin http://git.erp5.org/repos/slapos.package.git (cd slapos.package ; git pull) || git clone -b cygwin http://git.erp5.org/repos/slapos.package.git
cp /opt/git/slapos.package/windows/scripts/* /usr/local/bin cp /opt/git/slapos.package/windows/scripts/* /usr/local/bin
</programlisting> </programlisting>
Then build babeld and openvpn for cygwin, we need use the sources in the slapos.package.git, they are patched for cygwin: Then build babeld and openvpn for cygwin, we need use the sources in the slapos.package.git, they are patched for cygwin:
...@@ -251,7 +251,7 @@ wget http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.tar.gz -O min ...@@ -251,7 +251,7 @@ wget http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.tar.gz -O min
Get re6stnet for cygwin Get re6stnet for cygwin
<programlisting> <programlisting>
cd /opt/git cd /opt/git
git pull || git clone -b cygwin http://git.erp5.org/repos/re6stnet.git (cd re6stnet ; git pull) || git clone -b cygwin http://git.erp5.org/repos/re6stnet.git
cd re6stnet cd re6stnet
python setup.py sdist python setup.py sdist
</programlisting> </programlisting>
...@@ -295,6 +295,8 @@ Assum SourceDir in the section "Setup" is "D:\slapos", the builder will find "D: ...@@ -295,6 +295,8 @@ Assum SourceDir in the section "Setup" is "D:\slapos", the builder will find "D:
<para>Then open cygwin box as Administrator, if the current user isn't Administrator, then right click cygwin icon, click Run As Administrator. Be suer you have enough rights to run the following commands: <para>Then open cygwin box as Administrator, if the current user isn't Administrator, then right click cygwin icon, click Run As Administrator. Be suer you have enough rights to run the following commands:
<programlisting> <programlisting>
(cd /opt/downloads; cp pyOpenSSL-0.13.tar.gz miniupnpc-1.8.tar.gz /) (cd /opt/downloads; cp pyOpenSSL-0.13.tar.gz miniupnpc-1.8.tar.gz /)
mkdir -p /etc/slapos/scripts
cp /opt/git/slapos.core/slapos*.cfg.example /etc/slapos
/usr/local/bin/slapos-configure.sh /usr/local/bin/slapos-configure.sh
/usr/local/bin/slapos-node.sh /usr/local/bin/slapos-node.sh
</programlisting> </programlisting>
......
...@@ -6,7 +6,7 @@ AppVersion=0.158 ...@@ -6,7 +6,7 @@ AppVersion=0.158
AppVerName=SlapOS Windows 0.158.5 AppVerName=SlapOS Windows 0.158.5
DefaultDirName=C:\slapos DefaultDirName=C:\slapos
DefaultGroupName=SlapOS DefaultGroupName=SlapOS
OutputBaseFilename=slapos-0.158.5-windows-i386-all-in-one OutputBaseFilename=slapos-0.158.5-windows-x86-all-in-one
OutputDir=D:\slapos\publish\Output OutputDir=D:\slapos\publish\Output
SourceDir=D:\slapos SourceDir=D:\slapos
Uninstallable=yes Uninstallable=yes
......
...@@ -7,7 +7,7 @@ AppVerName=SlapOS Windows 0.158.5 ...@@ -7,7 +7,7 @@ AppVerName=SlapOS Windows 0.158.5
DefaultDirName=C:\slapos DefaultDirName=C:\slapos
DefaultGroupName=SlapOS DefaultGroupName=SlapOS
OutputDir=D:\slapos\publish\Output OutputDir=D:\slapos\publish\Output
OutputBaseFilename=slapos-0.158.5-windows-i386 OutputBaseFilename=slapos-0.158.5-windows-x86
SourceDir=D:\slapos SourceDir=D:\slapos
Uninstallable=yes Uninstallable=yes
......
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