Skip to content
myii edited this page May 27, 2015 · 40 revisions

First, right-click on the CmisSync.Lib project, choose "Properties", then in the "Application" tab click on "Assembly Information..." and:

  • Increment the "Assembly version",
  • Generate a new GUID (for instance here).

Windows

To create a Windows installer package (MSI), you will need to install WiX 3.5.

If you have Visual C#:

  • Right-click the solution and select "Clean",
  • Right-click the "Installer" project and select "Rebuild",
  • Right-click the "InstallerBootstrapper" project and select "Rebuild".

A .exe installer has been generated in CmisSync\Windows\InstallerBootstrapper\bin\Debug.

Command-line

Also doable via command line in CmisSync\Windows:

build

This will create CmisSync.msi in the Installer\bin\Debug directory.
But not sure how to create the bootstrapper.

Linux RPM

  1. Modify the version number in configure.ac.
  2. Rebuild (from make -f Makefile.am)
  3. Copy DotCMIS.dll from external location to Extras/
  4. Run make dist (this produces a tar.bz2 archive)
  5. Run rpmbuild -ta cmissync-<version>.tar.bz2

Linux DEB

Based on http://ubuntuforums.org/showthread.php?t=910717
TODO: Investigate http://www.asic-linux.com.mx/~izto/checkinstall/ or even better build from Debian source package

  1. Modify the version number in configure.ac.
  2. Rebuild (from make -f Makefile.am)
  3. Copy DotCMIS.dll from external location to Extras/
  4. Build CmisSync normally, including make install
  5. Copy all installed files using these commands:
# Set the version number here to be used for the package
# This is also used to automatically modify the version number in the DEBIAN/control file:
VER=2.4-0

# Copy and paste the following block to get everything prepared in one go:
mkdir cmissync_${VER} \
&& cd cmissync_${VER} \
&& cp -r ../build/DEBIAN . \
&& rsync -aR /usr/local/bin/cmissync . \
&& rsync -aR /usr/local/lib/cmissync . \
&& rsync -aR /usr/local/share/cmissync . \
&& rsync -aR /usr/local/share/applications/cmissync.desktop . \
&& rsync -aR /usr/local/share/icons/hicolor/16x16/apps/app-cmissync.png . \
&& rsync -aR /usr/local/share/icons/hicolor/22x22/apps/app-cmissync.png . \
&& rsync -aR /usr/local/share/icons/hicolor/24x24/apps/app-cmissync.png . \
&& rsync -aR /usr/local/share/icons/hicolor/24x24/status/process-syncing-* . \
&& rsync -aR /usr/local/share/icons/hicolor/32x32/apps/app-cmissync.png . \
&& rsync -aR /usr/local/share/icons/hicolor/48x48/apps/app-cmissync.png . \
&& rsync -aR /usr/local/share/icons/hicolor/256x256/apps/app-cmissync.png . \
&& rsync -aR /usr/local/share/icons/ubuntu-mono-dark/status/24/process-syncing-* . \
&& rsync -aR /usr/local/share/icons/ubuntu-mono-light/status/24/process-syncing-* . \
&& sed -i "s_^Version: .*_Version: ${VER}_" DEBIAN/control \
&& cat DEBIAN/control \
&& cd ..
  1. Check the output - if still necessary, update the version number in cmissync_${VER}/DEBIAN/control
  2. To build the package, run:
fakeroot dpkg-deb --build cmissync_${VER}

Mac

If needed, modify the version number by changing AssemblyVersion and Guid in CmisSync.Lib/Properties/AssemblyInfo.cs, then rebuild as explained in the CmisSync Mac README to update the version number.

To create the CmisSync.app Mac bundle, make sure the solution is focused in Monodevelop, select Build from the menu bar and click "Build All".

Now you have a working bundle "bin/CmisSync.app" that you can run by double-clicking.

To create a dmg package file, execute the commands below:

cd build
./dmg-creator.sh ../bin/CmisSync.app

Now you have a dmg package file in "bin/CmisSync.dmg".