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: x86
  • signature_date:
  • size: 47.66 Mo
  • depends:

package           : tis-upsync
version           : 3.0.2-10
architecture      : x86
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      : 75fb6566-6f76-4ebb-8254-481cc6db098c
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:13:48.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         : Ppdvv8zv9MyWpNqOfsovcrGGpPcbcUmeIEbum/uKnr8TIZzD8T+kmmKZJWXph+++hCvN3ES0Vt//7+rT/QV20uP392HeHZsPDK02m3GqamoOMl0DGyf32m/OLzZbQZzOFqxcSh4XQuWfcN4vi1+Pbl0A2byN2Od2TBubrgIhKprY94Bjbcs6TyH2xqYf8ZhPtMV3nYxMvFPDiwsyRn6EchK/TxxkWRoRA92+F9gSspF1Fi6saegUGt60VXcbU9J4Cl18qKcGwm2EUkPZVKtS04parV/9aO+rnpvJ+HmaTq5IotsEfnlFDZ77i5g0aPdXjKtQfakx7s2uxcXz/Zs0CQ==

# -*- 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
dcb563c90fc9102e14e22e89e80de3c4790ef74616df052cb1e5ec09187903b2 : WAPT/control
1460db9c3885967269ebbc71d898181ab7d1506f3212bafc2df3acc648d43db0 : WAPT/icon.png
1c40e3cacad3ddeddab2c145d41bf43c04c9a98e9c2b5a1ff26e7eb63264e7af : luti.json
6a332cd997993b3d70ff1cbb0a5087c34ba8f6a9a8b5a2fdd0ddec78c6bea566 : setup.py
3a6ea72840604af9960920fd3845300015f162960dd04097cb0a73cac13d6fff : update_package.py
1c635cb7581d3aea6e93bcf7f8954e245a3c2c2a0866b3ecd1cad43d7f359257 : upsync.exe