tis-syncthing 0.14.26-1

  • package : tis-syncthing
  • version : 0.14.26-1
  • description : Clone opensource de de btsync syncthing. Synchronisation optimisée de répertoires entre machines.
  • maintainer : Hubert TOUVET
  • date : 2018-02-27 19:08:25

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

destdir = makepath(programfiles,'syncthing')

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    print('Installing syncthing file synchronisation')
    run_notfatal('net stop Syncthing')
    mkdirs(destdir)
    if iswin64():
        copytree2('x64',destdir,onreplace=default_overwrite)
        nssm = os.path.join(WAPT.wapt_base_dir,'waptservice','win64','nssm.exe')
    else:
        copytree2('x86',destdir,onreplace=default_overwrite)
        nssm = os.path.join(WAPT.wapt_base_dir,'waptservice','win32','nssm.exe')

    print('Register Syncthing as service with nssm')
    run_notfatal('"%s" install Syncthing "%s" -no-console -no-browser' % (nssm, os.path.join(destdir,'syncthing.exe')))
    run_notfatal('net start Syncthing')

def uninstall():
    if iswin64():
        nssm = os.path.join(WAPT.wapt_base_dir,'waptservice','win64','nssm.exe')
    else:
        nssm = os.path.join(WAPT.wapt_base_dir,'waptservice','win32','nssm.exe')
    run_notfatal('net stop Syncthing')
    run_notfatal('"%s" remove Syncthing confirm' % nssm)
    if isdir(destdir):
        print('removing %s ...' % destdir)
        remove_tree(destdir)





    

Changelog

No changelog
    

manifest.sha256

[["x86/AUTHORS.txt", "6346c8412038428dc352ffdb6f568830487ae5350e8f441a7f5d458aabad9b8d"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "df0b280a4dff05ccc3b6185cf1dd39ac9a0aeca883450cc1836a4004baee2567"], ["x86/syncthing.exe", "55185312906123113f24a4c5928eeae864d2477c8dbfe23cfc9a1b7eaf8223d4"], ["x64/AUTHORS.txt", "6346c8412038428dc352ffdb6f568830487ae5350e8f441a7f5d458aabad9b8d"], ["x86/LICENSE.txt", "4f4f6eaba1a10842edd42f2788537ae7490d6d5c0ee35c75e695577c2f01d3ee"], ["x86/nssm.exe", "472232ca821b5c2ef562ab07f53638bc2cc82eae84cea13fbe674d6022b6481c"], ["x64/LICENSE.txt", "4f4f6eaba1a10842edd42f2788537ae7490d6d5c0ee35c75e695577c2f01d3ee"], ["x86/README.txt", "44f1a2e78b8665adced9348857876755747187d0f24b960bc4788a87ded69d19"], ["x64/README.txt", "44f1a2e78b8665adced9348857876755747187d0f24b960bc4788a87ded69d19"], ["setup.py", "c638dd25d8dec144caa1bf4adf0f9e2257b178b1a947f0bef0ea424fb38f3fff"], ["x64/syncthing.exe", "82e1c899537814cdc5d0b6ea5c48d4c69736d533ad9f4621108593d9bf7d1ec7"], ["x64/nssm.exe", "f689ee9af94b00e9e3f0bb072b34caaf207f32dcb4f5782fc9ca351df9a06c97"], ["WAPT/control", "205eb9a7f666d42f36d26b13e63319c30cbf2a8760321dce5790ac1cda52bf97"]]