
upsync
Silent install package for upsync
3.0.2-11
- package: tis-upsync
- name: upsync
- version: 3.0.2-11
- maintainer: WAPT Team,Tranquil IT, Thomas Prudhomme
- locale: all
- target_os: debian
- architecture: x64
- signature_date:
- size: 50.61 Mo
package : tis-upsync
version : 3.0.2-11
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 : 4b377057-e70c-4801-9f98-a4641fbc9c8d
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-16T17:32:17.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 : As+1mzsRa6r8YSJX8F9MgA9p4MGS9ompf9cUhRJFADSccuO5bj2w1mVBLds0JTZMrbRdC1NkA4L7O+0nmw4E3vyXFwtsHfvwk16QXYewz4CuG8v9UO8sQIr9ryFn+KQxx7oyAaBekR6YkZ14/ImzVs1tDzUMPHJUQwA+FEHD5AyH3+9fv9u2Q1ze2ffCirUuajMBjVS/S1byU6kYkAbyTGFjdOP8dCxLSp+AWFRXomK43dmLVaQDVZnRvpDQsrAwSntQ2sIgJC+/Sukd4p7c5PBVOAFAm9VStTJZiVisZ6JfiY6rKiwBwVG+XIMknPLhYjb13L+U7KVjleb9U9lbgg==
# -*- 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'))
else:
filecopyto('ms-auth.crt', makepath('/etc','pki','ca-trust','source','anchors'))
print(run('update-ca-trust'))
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
279a76efcc0916b8c0a951c6fab37fd36ba14fb674c952005128d00abf0d9ce1 : WAPT/control
1460db9c3885967269ebbc71d898181ab7d1506f3212bafc2df3acc648d43db0 : WAPT/icon.png
e116e92e11f2b75ba82aae348928e4854062c08dce95fe6ddaa94496507a32e3 : luti.json
7544b7d1a0574366446fc73181a94c7e635505132f20399f8469211d1dbc1dff : ms-auth.crt
22b8523933d149ef7d61108de06f51e6d01fb2360291c805c4f65bc7f5623441 : setup.py
150283560acca2c376e27464235ae06044d7b1664cd129a15edd77f0b4c6a266 : update_package.py
cee292d79f7bf899385ffca028d1d145e5dd13460d1247f6bd85d5d100680399 : upsync