How do I make CrushSync self update on OS X? |
|
You need to make a sync that downloads a new copy of CrushSync, and executes a pre-script, and post-script command. You must install the daemon for this to work, and the sync that runs must be a scheduled sync that runs while the GUI is not open.
Set the destination for the CrushSync.jar to be in a folder named "update" inside the CrushSync folder. See screenshot. This folder doesn't need to exist, and if it does, it will be deleted automatically.
The pre-script creates this folder for the purpose of the update, then the sync downloads the new CrushSync.jar file, then runs the post-script which runs the daemon to do a self update. The daemon stops the real CrushSync daemon, copies the CrushSync.jar file over the original, starts the real CrushSync daemon, then exits.
The pre command should be:
/bin/mkdir;update
The post command should be:
launchctl;start;com.crushsync.CrushSyncUpdater
The username and password are "crushsync".


|
How do I make CrushSync self update on windows? |
|
You need to make a sync that downloads a new copy of CrushSync, and executes a pre-script, and post-script command. You must install the service for this to work, and the sync that runs must be a scheduled sync that runs while the GUI is not open.
Set the destination for the CrushSync.jar to be in a folder named "update" inside the CrushSync folder. See screenshot. This folder doesn't need to exist, and if it does, it will be deleted automatically.
The pre-script creates this folder for the purpose of the update, then the sync downloads the new CrushSync.jar file, then runs the post-script which runs the service to do a self update. The service stops the real CrushSync service, copies the CrushSync.jar file over the original, starts the real CrushSync service, then exits.
The pre command should be:
cmd;/C;mkdir ..\update
The post command should be:
cmd;/C;net start CrushSyncUpdater
The username and password are "crushsync".


|