-
Notifications
You must be signed in to change notification settings - Fork 12
Developers guide: Getting started
Lezh1k edited this page Nov 23, 2017
·
6 revisions
Download SubutaiTray source tree.
- Download and install QT SDK. instruction. It's not recommended to use mingw because our build server uses qt with visual studio 2017 and related compiler. Also there is no need to rebuild libssh2, because we have built one (with all related lib, exp files) in our repo. If you want to use mingw or another compiler you have to rebuild libssh2 and move result
dll
,lib
andexp
files to SubutaiTray/libssh2/lib/win32 . - Add QT/bin to PATH. QT/bin here is folder containing qmake.exe, moc.exe etc. Qt installer asks about this path at the beginning of installation. Example :
F:\Programs\QT\Tools\QtCreator\bin
F:\Programs\QT\5.9.2\msvc2017_64\bin
- Add
git
to PATH too. - Download OpenSSL libraries (libeay32.dll and ssleay32.dll are required) built with chosen compiler.
- Launch command line (WARNING: our build server uses x64 Native Tools Command Promt for VS2017), go to source directory and run
build_win.bat "path_to_(libeay32.dll and ssleay32.dll)"
. - After successful build executable should be located in
src_dir\subutai_tray_bin
.
- Download and install XCode
- Download and install QT SDK. instruction
- Launch CLI and modify PATH like this :
export PATH=path_to_qmake_bin:$PATH
- Run
./build_mac.sh
- After successful build bundle SubutaiTray.app should be located in
src_dir\subutai_tray_bin\
- You can launch it with
open -a SubutaiTray.app
command
- You need to create static version of qt libraries. instruction
- Modify PATH like this :
export PATH=path_to_static_qt_bin:$PATH
- Run
./build_linux.sh
- After successful build executabble SubutaiTray should be located in
src_dir\subutai_tray_bin
.
- There is SubutaiTraySetup.sln (vs solution) here in win folder.
- If you don't want to use CLI - open this solution in VisualStudio. Download and install (if not installed) "Visual Studio Setup Project" plugin. Change everything you need there and just press "Rebuild"
-
devenv SubutaiTraySetup.sln /Rebuild Release
from CLI does same. - Now these operations are in build-*.bat files here
- Build tray with "build_mac.sh" (instructions are above)
- Create folder /Applications/Subutai and move result bundle (named SubutaiTray.app in subutai_tray_bin) to that folder.
- Then use command
pkgbuild --component /Applications/Subutai/SubutaiTray.app --version $(cat version) --identifier com.subutai-io.SubutaiTray
subutai-tray-$branch.pkg` . Branch should be defined before this call or you can set it manually. - Done . Now you have subutai-tray.pkg file. You can provide it to users.
- Everything does
pack_debian.sh
script .