tis-upsync icon

upsync

Silent install package for upsync

3.0.2-10

  • package: tis-upsync
  • name: upsync
  • version: 3.0.2-10
  • maintainer: WAPT Team,Tranquil IT, Thomas Prudhomme
  • locale: all
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 50.94 Mo
  • depends:

package           : tis-upsync
version           : 3.0.2-10
architecture      : x64
section           : base
priority          : optional
name              : upsync
categories        : 
maintainer        : WAPT Team,Tranquil IT, Thomas Prudhomme
description       : 
depends           : tis-dotnet9
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 3b1f5b5d-e62c-417c-9cab-9d63664c5728
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 1460db9c3885967269ebbc71d898181ab7d1506f3212bafc2df3acc648d43db0
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-02-16T17:07:22.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : n0p2XV8QPh5jyEhxdK5uoXBbPRRdOsJHs3KekZIH6TXieBEg63qVKDTAzSOeXZip6X50pRLCNX6eqPMq1B265hAQ7t6VFsyI0GaOsyGfBJEt64dLfA1p4wohl70MaaOU9sTLqRc6JUiZYQrnw0e3EUKHP4e4fE7yWPkMBy0ritDG4tMquQuANSgjkrfXPVutNgDXssN34hwSNBVkZAJQIiohHUluGXXIUMwIWoRPPGO8S8Oci8AT4rMg4ICmxC7E/NPgULfhfLqe9xTm/76CBaF//VyxoZ1M/wZQA94gc+N5PK+LEiujmUd+ZZjZmeZH6dPPqo9iKSsMDVwSR3vjow==

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

binary = 'upsync.exe'
bin_folder = makepath(programfiles(),'upsync')
full_bin_path = makepath(bin_folder,binary)

def install():
    if not isdir(bin_folder) :
        mkdirs(bin_folder)
    if isfile(full_bin_path):
        remove_file(full_bin_path)
    filecopyto(binary,full_bin_path)

def audit():
    if isfile(full_bin_path):
        return "OK"
    else:
        return "ERROR"

def uninstall():
    remove_tree(bin_folder)

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


def update_package():
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    upsync_version = ".".join(control.get_software_version().split(".")[:3])

    folder = "upsync-%s" % (upsync_version)
    binary = "%s.zip" % (upsync_version)
    url = "https://codeload.github.com/tranquilit/update-server-server-sync/zip/c04ca86dfcf165049835779d9d09b0557d6177c0"

    print("Download URL is: %s" % url)
    wget(url, binary, proxies=proxies)

    unzip(binary, folder)
    files = glob.glob("**/*.csproj", recursive=True)

    for file in files:
        content = ''
        f = open(file, 'r')
        tmp = f.read()
        while tmp != '':
            content = content + tmp
            tmp = f.read()
        f.close()
        pos = content.find('net6.0')
        pos2 = pos + len('net6.0')
        l_content = list(content)
        l_content[pos:pos2] = list('net9.0')
        content = "".join(l_content)
        f = open(file, 'w')
        f.write(content)
        f.close()

    # build_path = makepath(folder, 'update-server-server-sync-%s' % upsync_version, 'src', 'tools', 'upsync', 'upysync.csproj')
    build_path = glob.glob("**/upsync.csproj", recursive=True)[0]
    dotnet_path = makepath(programfiles(), 'dotnet', 'dotnet.exe')
    run('"%s" publish -p:PublishSingleFile=true --self-contained -c Release %s' % (dotnet_path, build_path))
    output_path = glob.glob("**/publish/upsync.exe", recursive=True)[0]
    # output_path = makepath(folder, 'update-server-server-sync-%s' % upsync_version, 'out', 'upsync', 'Release', 'net9.0', 'upsync.exe')
    shutil.move(output_path, 'upsync.exe')
    remove_tree(folder)

50c37c4e84716a46f83bdd23bbfaaeb8faa72c9014284462a754967a252f5e8a : 3.0.2.zip
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
e2657dc7a5cbd6e0316cc9cc68d1cb6c2550c8bffd7bc957db63f591241defd2 : WAPT/control
1460db9c3885967269ebbc71d898181ab7d1506f3212bafc2df3acc648d43db0 : WAPT/icon.png
c49631532027369490304f88b51334b45b0a0546395626f97e7f4116b9650d37 : luti.json
6a332cd997993b3d70ff1cbb0a5087c34ba8f6a9a8b5a2fdd0ddec78c6bea566 : setup.py
3a6ea72840604af9960920fd3845300015f162960dd04097cb0a73cac13d6fff : update_package.py
2b5f125c633f1688c802cdbc4080efb28b9bc2119d5917030c71ca948d7bc784 : upsync.exe