SparkleShare/README.md

209 lines
5.8 KiB
Markdown
Raw Normal View History

# SparkleShare
SparkleShare is a collaboration and sharing tool that is designed to keep
2012-03-09 21:06:02 +00:00
things simple and to stay out of your way. SparkleShare is available for Linux, Mac and Windows.
2012-03-09 21:06:02 +00:00
SparkleShare allows you to instantly sync with any [Git](http://www.git-scm.org/) repository you have access to.
2011-12-26 22:20:40 +00:00
[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/thing/21770/SparkleShare-Sharing-work-made-easy)
2012-03-09 21:06:02 +00:00
## Resources
2012-03-09 21:07:56 +00:00
|||
2012-03-09 21:06:02 +00:00
|-----------------------------------:|:--------------------------|
| **Website**: | http://www.sparkleshare.org/ |
2012-04-02 10:20:03 +00:00
| **Source code**: | https://github.com/hbons/SparkleShare |
2012-03-09 21:06:02 +00:00
| **IRC channel**: | #sparkleshare on irc.gnome.org |
| **Wiki**: | http://github.com/hbons/SparkleShare/wiki/ |
| **Report issues**: | http://github.com/hbons/SparkleShare/issues/ |
| **Translation project**: | http://www.transifex.net/projects/p/sparkleshare/ |
## License
SparkleShare is free software and licensed under the GNU GPLv3 or later. You
are welcome to change and redistribute it under certain conditions. For more
information see the LICENSE file or visit http://www.gnu.org/licenses/gpl-3.0.html
2012-02-27 16:59:14 +00:00
## Running SparkleShare
### Linux
You can choose to build from source or get the packages through your distribution's repositories.
Requirements:
2012-02-27 17:06:20 +00:00
```
curl
git >= 1.7.3
gtk-sharp2
mono-core >= 2.8
notify-sharp
webkit-sharp
```
Optional:
2012-02-27 17:06:20 +00:00
```
nautilus-python
gvfs
libappindicator
```
2012-02-27 16:59:14 +00:00
### Mac
2012-02-27 16:59:14 +00:00
Download, unzip and open the SparkleShare bundle.
2012-02-27 16:59:14 +00:00
### Windows
2012-03-09 21:19:00 +00:00
Download and run the installer and start SparkleShare from the Windows menu.
2012-03-06 22:56:32 +00:00
## Building on Linux
2012-03-09 21:19:00 +00:00
### Ubuntu:
```bash
2012-03-09 21:19:00 +00:00
$ sudo apt-get install libappindicator0.1-cil-dev gtk-sharp2 mono-runtime mono-devel \
monodevelop libndesk-dbus1.0-cil-dev nant libnotify-cil-dev libgtk2.0-cil-dev mono-mcs
mono-gmcs libwebkit-cil-dev intltool libtool python-nautilus libndesk-dbus-glib1.0-cil-dev
```
2012-03-09 21:19:00 +00:00
### Fedora:
```bash
2012-03-09 21:19:00 +00:00
$ sudo yum install gtk-sharp2-devel mono-core mono-devel monodevelop \
ndesk-dbus-devel ndesk-dbus-glib-devel nautilus-python-devel nant \
notify-sharp-devel webkit-sharp-devel webkitgtk-devel libtool intltool \
desktop-file-utils
```
2012-03-09 21:19:00 +00:00
### Debian:
```bash
2012-03-09 21:19:00 +00:00
$ sudo apt-get install gtk-sharp2 mono-runtime mono-devel monodevelop \
libndesk-dbus1.0-cil-dev nant libnotify-cil-dev libgtk2.0-cil-dev mono-mcs mono-gmcs \
libwebkit-cil-dev intltool libtool python-nautilus libndesk-dbus-glib1.0-cil-dev \
desktop-file-utils
```
### openSUSE:
```bash
$ sudo zypper install gtk-sharp2 mono-core mono-devel monodevelop \
ndesk-dbus-glib-devel python-nautilus-devel nant desktop-file-utils \
notify-sharp-devel webkit-sharp libwebkitgtk-devel libtool intltool
```
You can then build and install SparkleShare like this:
```bash
$ ./configure --prefix=/usr (or ./autogen.sh if you build from the repository)
$ make
$ sudo make install
```
2012-03-09 21:19:00 +00:00
**Note:** The Nautilus extension will only be enabled if you build with `--prefix=/usr`.
2012-03-06 22:56:32 +00:00
## Building on Mac
2012-03-09 21:19:00 +00:00
Install [Xcode](https://developer.apple.com/xcode/), the [Mono Framework](http://www.mono-project.com/)
and [MonoDevelop](http://monodevelop.com/).
Start MonoDevelop and install the MonoMac add-in (it's in <tt>MonoDevelop</tt> > <tt>Add-in Manager</tt>).
You may need to adjust some environment variables to let the build environment tools find mono:
```bash
$ export PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin:$PATH
$ export PKG_CONFIG=/Library/Frameworks/Mono.framework/Versions/Current/bin/pkg-config
$ export PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig
```
Install <tt>git</tt>, <tt>automake</tt>, <tt>libtool</tt> and <tt>intltool</tt> using <tt>MacPorts</tt>:
```bash
$ sudo port install git-core automake intltool libtool
```
Start the first part of the build:
```bash
$ ./autogen.sh --enable-gtkui=no
$ make
```
Now that you have compiled the libraries, open `SparkleShare/Mac/SparkleShare.sln` in
MonoDevelop and start the build.
2012-03-06 22:56:32 +00:00
2012-03-09 21:19:00 +00:00
### Creating a Mac bundle
2012-03-06 22:56:32 +00:00
To create the <tt>SparkleShare.app</tt>, make sure the project is focused and select Project from the menu bar
and click <tt>"Create Mac Installer..."</tt>. Make sure to select <tt>"Don't link assemblies"</tt>.
Save the <tt>SparkleShare.app</tt> somewhere. Copy `SparkleShare/Mac/config` to
`SparkleShare.app/Contents/MonoBundle/config` (adjust the paths to where you saved the .app):
```
cp SparkleShare/Mac/config SparkleShare.app/Contents/MonoBundle/config
```
Copy `/Library/Frameworks/Mono.framework/Versions/Current/lib/libintl.dylib` to `SparkleShare.app/Contents/Resources`
Now you should have a working bundle that you can run.
2012-03-06 22:56:32 +00:00
## Building on Windows
2012-02-27 14:02:56 +00:00
2012-02-27 16:59:14 +00:00
Install version 4.0 of the [.NET Framework](http://www.microsoft.com/download/en/details.aspx?id=17851) if you haven't already.
2012-02-27 14:02:56 +00:00
2012-02-27 17:04:54 +00:00
Install [msysGit](http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.8-preview20111206.exe). Change the install location to `C:\msysgit` and use the default settings for the other settings during the installation. Copy the `C:\msysgit` directory into `bin\msysgit` (in the SparkleShare source directory).
2012-02-27 14:02:56 +00:00
2012-02-27 16:59:14 +00:00
Open a command prompt and execute the following:
2012-02-27 14:02:56 +00:00
2012-02-27 16:59:14 +00:00
```
2012-02-27 17:04:54 +00:00
cd C:\path\to\SparkleShare\source
2012-02-27 16:59:14 +00:00
cd SparkleShare\Windows
build
```
2012-02-27 14:02:56 +00:00
2012-03-06 23:03:30 +00:00
`C:\path\to\SparkleShare\source\bin` should now contain `SparkleShare.exe`, which you can run.
2012-03-06 22:56:32 +00:00
2012-02-27 14:02:56 +00:00
2012-03-06 22:59:13 +00:00
### Creating a Windows installer
2012-03-06 22:56:32 +00:00
2012-03-11 21:10:32 +00:00
To create an installer package, install [WiX 3.5](http://wix.sourceforge.net/), restart Windows and run:
2012-02-27 14:02:56 +00:00
2012-02-27 16:59:14 +00:00
```
build installer
```
2012-02-27 14:02:56 +00:00
2012-03-06 22:56:32 +00:00
This will create `SparkleShare.msi` in the same directory.
## Reset SparkleShare settings
### Linux and Mac:
```
rm -Rf ~/SparkleShare
2012-03-09 20:56:30 +00:00
rm -Rf ~/.config/sparkleshare
```
### Windows
Remove `My Documents\SparkleShare` and `AppData\Roaming\sparkleshare` (`AppData` is hidden by default).
2012-03-09 21:06:02 +00:00
## Finally
2012-03-09 21:06:02 +00:00
Have fun! :)