
upsync
Silent install package for upsync
3.0.2-15
- package: tis-upsync
- name: upsync
- version: 3.0.2-15
- maintainer: WAPT Team,Tranquil IT, Thomas Prudhomme
- locale: all
- target_os: debian
- architecture: x64
- signature_date:
- size: 50.63 Mo
package : tis-upsync
version : 3.0.2-15
architecture : x64
section : base
priority : optional
name : upsync
categories :
maintainer : WAPT Team,Tranquil IT, Thomas Prudhomme
description :
depends :
conflicts :
maturity : PROD
locale : all
target_os : debian
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 : cd0b4e8f-3776-444d-b4ea-4430922f47d3
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10
max_os_version :
icon_sha256sum : 1460db9c3885967269ebbc71d898181ab7d1506f3212bafc2df3acc648d43db0
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-02-17T12:13:20.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 : FuuBVeKYj/OKJoV+HBqhaBqulTPfNHxRWXXbBQFmAAyEzPMWku/pp40hcGuFS5J/0YzXkv2jGVlP+X7LdFTT31JmIBsrG16EdN/bsqqt6tbvPa9UEsza4n7r6j3jmEK/s55MhZexr05CjKiUuXNcHpAFSCRe062GcElJXBioKFkkcFiDigLTbV10R4LnIdU8ul3R78iJAJkuCZRPOM/Pu5+V0d/miNZomEhLqhhzMzZTiPlM6mdGSIVY6WOd3L+/IJ6ZrO73kcInrmP1ua+5odW6B5754hQkJqR1ZKibTxybZyt7o0KkE72GaMEbnAipUzZ/Ha9tKjsj7Lu+HJG3TQ==
# -*- coding: utf-8 -*-
from setuphelpers import *
dst_dir = '/opt/upsync'
dst_bin = makepath(dst_dir,'upsync')
def install():
if type_debian():
filecopyto('ms-auth.crt', makepath('/usr','local','share','ca-certificates'))
print(run('update-ca-certificates -f'))
install_apt('cabextract')
else:
filecopyto('ms-auth.crt', makepath('/etc','pki','ca-trust','source','anchors'))
print(run('update-ca-trust'))
install_yum('cabextract')
if not isdir(dst_dir):
mkdirs(dst_dir)
if isfile(dst_bin):
remove_file(dst_bin)
filecopyto('upsync',dst_bin)
run('chmod a+x %s' % dst_bin)
def audit():
if isfile(dst_bin):
return 'OK'
else:
return "ERROR"
def uninstall():
remove_tree(dst_dir)
# -*- 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]
run('dotnet publish -p:PublishSingleFile=true --self-contained -c Release %s' % (build_path))
output_path = glob.glob("**/publish/upsync", 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')
remove_tree(folder)
50c37c4e84716a46f83bdd23bbfaaeb8faa72c9014284462a754967a252f5e8a : 3.0.2.zip
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
8a470e7fac75aa47e0a3005622b748682db7c87c96775edbaaf0801542ba3e15 : WAPT/control
1460db9c3885967269ebbc71d898181ab7d1506f3212bafc2df3acc648d43db0 : WAPT/icon.png
24e54860caaf2bb754bbc3fcbfbd5c67b7668d4508d8f029f9928dc2f0f8bf24 : luti.json
7544b7d1a0574366446fc73181a94c7e635505132f20399f8469211d1dbc1dff : ms-auth.crt
8abac21f23b03658eeac4d92ea752445e5a5cd9b465d44f6aecadb744fa2b0ca : setup.py
150283560acca2c376e27464235ae06044d7b1664cd129a15edd77f0b4c6a266 : update_package.py
e2a3d69d9d82ffb1fdde97d281c0eade96ca787d016619ad309337c70aae23ba : upsync