2.3 KB
Newer Older
Efthymia Bika's avatar
Efthymia Bika committed
1 2 3 4
# BaaS

Backup as a Service

5 6
## Build instructions

7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
### Cygwin installation and setup
To build a package on Windows you need cygwin.

1. Download Cygwin setup.exe from in
this directory.
2. Run `make_cygwin.bat build` to install the environment we need to build
duplicity under `build\cygwin_build`.
3. Run `make_cygwin.bat dist` to build a smaller instance needed for
deployment under `build\cygwin`.

### Install Node.js and npm

1. Install Node.js from
2. Make sure that npm is also installed.
3. Install nw-builder : npm -g install nw-builder

* Note that on some systems node executable is installed as nodejs, and
  nw-builder fails to start. You will need to change the first line of
  /usr/local/bin/nwbuild to look for nodejs.

### Build duplicity

1. You will need python and gnupg. Make sure you have librsync-dev
installed. On Windows, these are provided by cygwin installed previously.
2. Run; this will build duplicity and collect its
dependencies under build/duplicity. Note that on Windows you need to run it
with build\cygwin_build\bin\bash.exe.

Giorgos Korfiatis's avatar
Giorgos Korfiatis committed
35 36 37
* If it fails to find librsync, specify its location by setting variable
  LIBRSYNC_DIR before running the script.

38 39 40 41
### Build the package

1. Run <platform> (again, with
build\cygwin_build\bin\bash.exe on Windows) to build the nwjs application
42 43 44
and collect everything under dist/baas (or dist/ on OSX)

2. Run python <platform> to make a tar.gz (for Linux) or zip
45 46
archive (for Windows and OSX). On Windows it must be run as
build\cygwin_build\bin\bash.exe -c "/usr/bin/python <platform>"

Efthymia Bika's avatar
Efthymia Bika committed
48 49
## Copyright and license

Copyright (C) 2015-2016 GRNET S.A.
Efthymia Bika's avatar
Efthymia Bika committed
51 52 53 54 55 56 57 58 59 60 61 62 63

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <>.