Skip to content

travcunn/kissync-python

Repository files navigation

SmartFile Desktop Sync

Build Status Coverage Status

A cross platfom desktop file synchronization application for SmartFile

Running SmartFile Sync

Prerequisites:

SmartFile Sync requires PySide (cross-platform) for the GUI. On Debian based systems, this can be installed using the following command:

$ sudo apt-get install python-pyside

Other Python dependencies can be installed with the following commands:

$ pip install --timeout=30 -r requirements.txt --use-mirrors
$ pip install --timeout=30 -q -e . --use-mirrors

Build and run:

$ git clone https://github.com/travcunn/kissync-python.git kissync
$ cd kissync
$ python main.py

Building a Windows installer

Prerequisites:

  1. Python 2.7
  2. py2exe
  3. NSIS 2.46
  4. Win32 OpenSSL

Nsis requires the following plugins:

  1. NsProcess (http://nsis.sourceforge.net/NsProcess_plugin)
  2. AccessControl (http://nsis.sourceforge.net/AccessControl_plug-in)

Build:

In the console, run:

$ installer_windows.cmd

Alternatively, you can open installer_windows.cmd from the Windows file explorer.

The installer will named "smartfile-installer.exe" in the directory "installer_windows"

Resource Packaging

PySide has a simple packing system that allows for embedding of all the program resources (such as images) into one file. Using a program by Shuge Lee, these resources are collected automatically. This process has been simplified and automated in the make file. For images to be collected, they should be placed in "ui/images".

Prerequisites:

  • pyside-rcc (included in pyside-tools)

On Ubuntu/Debian, this can be installed using the following command:

$ sudo apt-get install pyside-tools

Build:

To build the resources automatically, run the following command in the console:

$ make resources

Using resources:

Since building the resources with the make file puts a "resources.py" into the UI folder, any UI component that references external images will automatically discover the resources file, assuming it is in the same folder.

To use any packaged resource in the UI, refer to the following example:

QtGui.QIcon(":/menuicon.png")

This allows us to reference a resource with the file name ":/menuicon.png"

Links

Official Kissync Website

MIT License

About

SmartFile Desktop Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •