tis-upsync-metadata icon

upsync

Silent install package for upsync

20250410-16

  • package: tis-upsync-metadata
  • name: upsync
  • version: 20250410-16
  • maintainer: WAPT Team,Tranquil IT, Thomas Prudhomme
  • locale: all
  • target_os: windows,debian
  • architecture: x64
  • signature_date:
  • size: 4.95 Go
  • depends:

package           : tis-upsync-metadata
version           : 20250410-16
architecture      : x64
section           : base
priority          : optional
name              : upsync
categories        : 
maintainer        : WAPT Team,Tranquil IT, Thomas Prudhomme
description       : 
depends           : tis-upsync
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows,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      : 6271d5d7-00ad-469d-994f-69eeb244c814
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : 84ea7df1dddebfac1a4fa0cd25703d6229d0c4728ea10a14f3fdea7976765c7f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-15T11:52:57.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         : ED9eve3lCxJ6F6AwvVR5CmtRCn8sUg35zc+bso6b7IAgYnO7sHXHGv1noTeGJCH4Zde8P7MicSGSj8SWhOqPKDR2+vh6/5OBmIFz7VySSGDNW5MTpXnhF60vm+9b3OUGHoAzUqiqDBgD0CzKmuJguu/QtUrobp16m9D2yFUkiLByqaLWmX4Z5tO0/YevvIMbG0yEEJF03FSp8vum+OrJ2ZgyW1QDFjptHP30w8A+t6fB2dvYkRGPVhd/zLZp39XW8em+eGoHcN98XJiQLtrUFSytZ9c45zlKWYVdQAL3MUK1Kz7S5TFDDk+aWv96BFTHiL7A2c0c0QytIJyYhg8RGQ==

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


if platform.system() == 'Windows':
    binary = 'upsync.exe'
    bin_folder = makepath(programfiles(),'upsync')
    full_bin_path = makepath(bin_folder,binary)
else:
    bin_folder = '/opt/upsync'
    full_bin_path = makepath(bin_folder,'upsync')

store_path = makepath(bin_folder,'store')


def install():
    if isdir(store_path):
        remove_tree(store_path)
    copytree2('store',store_path)

def uninstall():
    if isdir(store_path):
        remove_tree(store_path)

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
from common import Wapt
import datetime

if platform.system() == 'Windows':
    binary = 'upsync.exe'
    bin_folder = makepath(programfiles(),'upsync')
    full_bin_path = makepath(bin_folder,binary)
else:
    bin_folder = '/opt/upsync'
    full_bin_path = makepath(bin_folder,'upsync')

store_path = makepath(bin_folder,'store')


def update_package():
    if params.get("install_with_luti", False):
        waptinstall = Wapt(WAPT.config_filename)
        try:
            waptinstall.install(control.package)
            copytree2(store_path,'store')
        except:
            pass

    while True:
        try:
            data = run('"%s" pre-fetch --store-path "%s"' % (full_bin_path,makepath(basedir,'store')),timeout=86400)
            if 'Done!' in data:
                break
        except:
            time.sleep(1)
            

    list_cassification = {
        #"5c9376ab-8ce6-464a-b136-22113dd69801": "Application",
        #"434de588-ed14-48f5-8eed-a15e09a991f6": "Connectors",
        "e6cf1350-c01b-414d-a61f-263d14d133b4": "CriticalUpdates",
        "e0789628-ce08-4437-be74-2495b842f43b": "DefinitionUpdates",
        #"e140075d-8433-45c3-ad87-e72345b36078": "DeveloperKits",
        "b54e7d24-7add-428f-8b75-90a396fa584f": "FeaturePacks",
        #"9511d615-35b2-47bb-927f-f73d8e9260bb": "Guidance",
        "0fa1201d-4330-4fa8-8ae9-b877473b6441": "SecurityUpdates",
        "68c5b0a3-d1a6-4553-ae49-01d3a7827828": "ServicePacks",
        "b4832bd8-e735-4761-8daf-37f882276dab": "Tools",
        "28bc880e-0592-4cbf-8f95-c79b17911d5f": "UpdateRollups",
        "cd5ffd1e-e932-4e3a-bf74-18bf0b1bbd83": "Updates",
        #"3689bdc8-b205-4af4-8d4a-a63924c5e9d5": "Upgrades",
        "e0789628-ce08-4437-be74-2495b842f43b": "UpdateClassification"
    }

    for u in list_cassification:
        while True:
            try:
                data = run('"%s" fetch --store-path "%s" --classification-filter %s' % (full_bin_path,makepath(basedir,'store'),u),timeout=86400)
                if 'Done!' in data:
                    break
            except:
                time.sleep(1)
    now =datetime.datetime.now()
    version = str(int(now.strftime("%Y%m%d")))
    control.set_software_version(version)
    control.save_control_to_wapt()

                

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
d59a45a18def25524033c2e2b7bcc2a2f798b3320a9d45b8fa236eadc0b0ef97 : WAPT/control
84ea7df1dddebfac1a4fa0cd25703d6229d0c4728ea10a14f3fdea7976765c7f : WAPT/icon.png
d0cdfc17c4880b6b8cc314f181fffc0308676bc09da118cfa060d7090a839479 : luti.json
74917d8fbf8bd66ad69e08577f90237a937c7787407015053fed28c566432a0e : setup.py
a7a40a0152a1684a1bef72d9204ffed16287cbd3632ed2905aa42e49346fda5d : store/.indexes.zip
074d6a8af494e38d26a10c27aaf1ca9412c3c752d8298dde5644d2d12735f933 : store/.toc.json
6775eacc9f6cab33ac0ae991d755c87960bd6324c58bb68e57523fd86c90a6ca : store/.types.json
f820f265d36eda03dbeb653e92b9c4be5cd5235eadc85a3008d00a71a79d3b50 : store/0.zip
2d6536c6b787c0527e662105c67f36538090786d017aabba56534d47ba36ab76 : store/1.zip
192abba4a755e0b75f282bae5fe8a7c7146032443f1b2584e4ccff5c1a242e84 : store/10.zip
033794c2f06199b8950ad17a1eafc01e767a456854514fcd2b4d17f5d104675e : store/11.zip
d4606c36b37fd370706e96840b3c029203b45a1d6fe5fb015d068ca670f317b3 : store/12.zip
8f882d6d2c05f172140d62e32412fb0e732c9da3bd8a57017fb6c68562850fb2 : store/13.zip
1f801cb498304966c5b25345817ec8f7de7acbb87fbff296c5887369a2af46ee : store/14.zip
cdbbf3acd3c6ce4bc3e3cfba3fcda35ed9dd9b608155715f1de462cfcc5e420a : store/15.zip
81d7de850285a46262ee15a24d727bb3791a23796b0092d63658457af00f3847 : store/16.zip
76147d12041032303e4bda84a6233cfc6fcdabac2e2723d8630c9976a67b0745 : store/17.zip
246f7c463cee7dcb31e4ff005f7016e61b6ddb1f76b514c0c740ce5f8926e09e : store/18.zip
bef14fa26cd5dc55a8c1d8b8805feaf8ef2ae0d735a753a1136bce5502afce72 : store/2.zip
06e49d092d536dacafd7fcd906b9d87aa6659901f4a2db9c4f8634cc25000999 : store/3.zip
839081a7f9f40422231997166ea92108e648c2952bde20ccbfe2f0f4e46461c0 : store/4.zip
d594466fe69bb97a6f052584a050817e67f1ef6ac44c01cf2bc3fcd093b5bde6 : store/5.zip
82cc5c103a9d792ed3332c9dd69df4c93a0f675cdefe4bbe5b9204ea81f553e1 : store/6.zip
0161562c0bfaf6c6a0fa16db0df4a0268bf330799d1dd08a214623fc02b62837 : store/7.zip
26eca10c028e03e0e17482567d4b4a2b01a18c0da2c68275ec3a28da6f2dd97d : store/8.zip
04ab6bf1e484e331c47bfb3e2a6d4fb958c08f9d3a0e3fe913b711c55cb175b2 : store/9.zip
2213c4d93f0d6880076c3514262993b81da8d86a30e0490ac09d3561b924ba30 : store/identities/MicrosoftUpdate/.identities.json
6323cb12b6776c22ad640e3cf5928712775ce8137252cc5cecea8dc22bc2eb51 : update_package.py