source: installer/ogagent-devel-installer.sh @ 01aef8db

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 01aef8db was 435c10d, checked in by ramon <ramongomez@…>, 8 years ago

#718: Instrucciones para instalar OGAgent para macOS; no usar Winetricks en nuevas distribuciones para crear OGAgent para Windows y usar Fedora 25 en MV Vagrant.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5229 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 2.9 KB
Line 
1#!/bin/bash
2#/**
3#@file     ogagent-devel-installer.sh
4#@brief    Script to download and prepare the environmnt to compile OGAgent packages.
5#@warning  Some operations need "root" privileges.
6#@note     This script will make a "ogagent" directory with 1.5 GiB approx.
7#@version  1.0 - Initial version for OpenGnsys 1.1.0.
8#@author   Ramón M. Gómez, ETSII Universidad de Sevilla
9#@date     2016-04-07
10#*/ ##
11
12
13# Variables.
14PROGDIR=$PWD/ogagent
15SVNURL=http://opengnsys.es/svn/branches/version1.1/admin/Sources/Clients/ogagent
16
17# Show prerequisites needed to build the environment.
18mkdir -p $PROGDIR || exit 1
19cat << EOT
20
21OGAgent devoloping environment installation
22
23Prerequisites:
24- Install packages, if needed:
25  - Wine for 32-bit (Winetricks may be required)
26  - Python 2.7 with pyqt4-dev-tools
27  - realpath
28  - dpkg-dev
29  - rpmbuild
30  - xar
31- Open a web browser and download Microsoft Visual C++ 2010 Redistributable Package (x86) from: http://www.microsoft.com/en-us/download/details.aspx?id=5555
32- Copy or move "vcredist_x86.exe" file to $PROGDIR directory.
33Press [Enter] key when ready to continue.
34EOT
35read
36
37# Importing OGAgent source code.
38svn export --force $SVNURL $PROGDIR || exit 1
39
40# Update PyQt components.
41pushd ogagent/src >/dev/null
42./update.sh
43popd >/dev/null
44
45# Showing instructions to configure Wine.
46cat << EOT
47
48Manual actions:
49- After all downloads, install Gecko for Wine, if needed.
50- Press [Esc] key or "Cancel" button on Winetricks screen, if needed.
51- Accept default settings for all other components.
52- Uncheck all options on "Completing NSIS Setup" screen.
53Press [Enter] key to init downloads.
54
55EOT
56read
57
58# Downloading and configuring Wine prerequisites.
59pushd ogagent/windows >/dev/null
60./py2exe-wine-linux.sh
61cp -a build.bat ogagent.nsi ..
62ln -s ../../.. wine/drive_c/ogagent
63popd >/dev/null
64
65# Download, compile and install bomutils.
66mkdir -p ogagent/macos/downloads
67svn export https://github.com/hogliux/bomutils.git/trunk ogagent/macos/downloads/bomutils
68pushd ogagent/macos/downloads/bomutils >/dev/null
69make && make install
70popd >/dev/null
71
72# Build OGAgent for Linux.
73pushd $PROGDIR/linux >/dev/null
74sudo ./build-packages.sh
75popd >/dev/null
76
77# Build OGAgent for macOS.
78pushd $PROGDIR/macos >/dev/null
79./build-pkg.sh
80popd >/dev/null
81
82# Build OGAgent for Windows.
83pushd $PROGDIR/windows >/dev/null
84./build-windows.sh
85popd >/dev/null
86
87# Showing instructions to rebuild OGAgent packages.
88cat << EOT
89
90How to rebuild OGAgent packages
91-------------------------------
92OGAgent project source code is available in $PROGDIR/src directory.
93
94- Commands to update PyQt graphical components for OGAgnet:
95    cd $PROGDIR/src
96    ./update.sh
97
98- Commands to rebuild Linux packages:
99    cd $PROGDIR/linux
100    sudo ./build-packages.sh
101
102- Commands to rebuild macOS package:
103    cd $PROGDIR/macos
104    ./build-pkg.sh
105
106- Commands to rebuild Windows installer:
107    cd $PROGDIR/windows
108    ./build-windows.sh
109
110OGAgent packages will be created into $PROGDIR directory.
111
112EOT
113
Note: See TracBrowser for help on using the repository browser.