Commit 8b497142 authored by Jondy Zhao's avatar Jondy Zhao

Add batch file used to build ipwin

parent 3bcd34bc
...@@ -299,9 +299,9 @@ cp src/openvpn/.libs/openvpn.exe /usr/bin ...@@ -299,9 +299,9 @@ cp src/openvpn/.libs/openvpn.exe /usr/bin
<!-- Now downlaod openvpn 2.3 for your window version, and install it. We need OpenVPN Tap-Windows Drivers files. --> <!-- Now downlaod openvpn 2.3 for your window version, and install it. We need OpenVPN Tap-Windows Drivers files. -->
Now, build ipwin.exe which used to manage slapos network. If you have msvc build environments, build the solution "D:/slapos/opt/git/slapos.packages/windows/ipwin/ipwin.sln" as your perfer. If you have no idea about msvc, do as the following steps: Now, build ipwin.exe which used to manage slapos network. If you have msvc build environments, build the solution "D:/slapos/opt/git/slapos.packages/windows/ipwin/ipwin.sln" as your perfer. If you have no idea about msvc, do as the following steps:
<itemizedlist> <itemizedlist>
<listitem><para>Install Microsoft Visual C++ 2008 Express Edition, you can download package from <ulink url=""/>, it's free.</para></listitem> <listitem><para>Install Microsoft Visual C++ 2008 Express Edition or later version, you can download package from <ulink url="http://www.microsoft.com/visualstudio/express"/>, it's free.</para></listitem>
<listitem><para>If you're running X64 environments, install Microsoft Windows SDK v7.0. You can download the package from <ulink url="http://download.microsoft.com/download/2/E/9/2E911956-F90F-4BFB-8231-E292A7B6F287/GRMSDKX_EN_DVD.iso"/>.</para></listitem> <listitem><para>If you're running X64 environments, install Microsoft Windows SDK v7.0. You can download the package from <ulink url="http://download.microsoft.com/download/2/E/9/2E911956-F90F-4BFB-8231-E292A7B6F287/GRMSDKX_EN_DVD.iso"/>.</para></listitem>
<listitem><para>Double click D:/slapos/opt/git/slapos.packages/windows/ipwin/ipwin/build.bat, be sure there is no error.</para></listitem> <listitem><para>Double click D:/slapos/opt/git/slapos.packages/windows/ipwin/ipwin/build.bat, be sure there is no error. This script assumes your vcvarsall.bat installed at "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat", and installed at "" (required only for x64 platform), if not, please edit the script as your install path first.</para></listitem>
</itemizedlist> </itemizedlist>
</para> </para>
<para> <para>
......
@ECHO OFF
SETLOCAL
SET VCVARSALL="C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bata"
SET SETENV="C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.cmd"
IF /I "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO ARCH_X86
IF /I "%PROCESSOR_ARCHITECTURE%" == "AMD64" GOTO ARCH_AMD64
ECHO.
ECHO Failed to build, unknown architecture: %PROCESSOR_ARCHITECTURE%
ECHO.
GOTO END
:ARCH_X86
IF EXIST %VCVARSALL%. (
%VCVARSALL%
cl /D"UNICODE" /D"_UNICODE" ipwin.cpp netcfg.cpp setupapi.lib iphlpapi.lib advapi32.lib
GOTO END )
ECHO.
ECHO Failed to build ipwin.exe
ECHO.
ECHO Can't find %VCVARSALL%, be sure VC 2008 or later version have been installed.
ECHO If VC is installed on other path, edit this script at first.
ECHO.
GOTO END
:ARCH_AMD64
IF EXIST %SETENV%. (
SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL ENABLEDELAYEDEXPANSION
CALL %SETENV%
cl /D"UNICODE" /D"_UNICODE" ipwin.cpp netcfg.cpp setupapi.lib iphlpapi.lib advapi32.lib
GOTO END )
ECHO.
ECHO Failed to build ipwin.exe
ECHO.
ECHO Can't find %SETENV%, be sure Microsoft Windows SDK V7 have been installed.
ECHO If it's installed on other path, edit this script at first.
ECHO.
GOTO END
:END
ENDLOCAL
Pause ...
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
[Setup] [Setup]
AppName=SlapOS AppName=SlapOS
AppVersion=0.158 AppVersion=0.158
AppVerName=SlapOS Windows 0.158.6 AppVerName=SlapOS Windows 0.158.7
DefaultDirName=C:\slapos-node DefaultDirName=C:\slapos-node
DefaultGroupName=SlapOS DefaultGroupName=SlapOS
OutputBaseFilename=slapos-0.158.6-windows-x86-all-in-one OutputBaseFilename=slapos-0.158.7-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
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
[Setup] [Setup]
AppName=SlapOS AppName=SlapOS
AppVersion=0.158 AppVersion=0.158
AppVerName=SlapOS Windows 0.158.6 AppVerName=SlapOS Windows 0.158.7
DefaultDirName=C:\slapos-node DefaultDirName=C:\slapos-node
DefaultGroupName=SlapOS DefaultGroupName=SlapOS
OutputDir=D:\slapos\publish\Output OutputDir=D:\slapos\publish\Output
OutputBaseFilename=slapos-0.158.6-windows-x86 OutputBaseFilename=slapos-0.158.7-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