A cross platfom desktop file synchronization application for SmartFile
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
Prerequisites:
Nsis requires the following plugins:
- NsProcess (http://nsis.sourceforge.net/NsProcess_plugin)
- 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"
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"