tis-cryptomator icon

Cryptomator

Paquet d’installation silencieuse pour Cryptomator

1.17.1-2

  • package: tis-cryptomator
  • name: Cryptomator
  • version: 1.17.1-2
  • categories: Security
  • maintainer: WAPT Team,Tranquil IT,Jordan ARNAUD
  • editor: Skymatic GmbH
  • licence: opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
  • locale: all
  • target_os: linux
  • impacted_process: Cryptomator
  • architecture: arm64
  • signature_date:
  • size: 55.10 Mo
  • installed_size: 125.91 Mo
  • homepage : https://cryptomator.org/

package           : tis-cryptomator
version           : 1.17.1-2
architecture      : arm64
section           : base
priority          : optional
name              : Cryptomator
categories        : Security
maintainer        : WAPT Team,Tranquil IT,Jordan ARNAUD
description       : Cryptomator is an open source encryption software that provides encryption for cloud drives
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : linux
min_wapt_version  : 2.3
sources           : https://cryptomator.org/downloads/
installed_size    : 125914727
impacted_process  : Cryptomator
description_fr    : Cryptomator est un logiciel de cryptage open source qui permet de crypter les disques en nuage
description_pl    : Cryptomator to oprogramowanie szyfrujące typu open source, które zapewnia szyfrowanie dysków w chmurze
description_de    : Cryptomator ist eine Open-Source-Verschlüsselungssoftware, die Verschlüsselung für Cloud-Laufwerke bietet
description_es    : Cryptomator es un software de cifrado de código abierto que proporciona cifrado para unidades en la nube
description_pt    : O Cryptomator é um software de encriptação de fonte aberta que fornece encriptação para unidades de nuvem
description_it    : Cryptomator è un software di crittografia open source che fornisce la crittografia per le unità cloud
description_nl    : Cryptomator is een open source encryptiesoftware die encryptie biedt voor cloud drives
description_ru    : Cryptomator - это программное обеспечение для шифрования с открытым исходным кодом, которое обеспечивает шифрование облачных дисков
audit_schedule    : 
editor            : Skymatic GmbH
keywords          : encryption,cloud
licence           : opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
homepage          : https://cryptomator.org/
package_uuid      : 5da07d09-068f-46c6-ad26-0fdca4ad2fa4
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/cryptomator/cryptomator/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : a7daeb8a79d3f7d529fbf25397e87a1848f84b311b7e112654c043350934a1b8
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-13T17:04:08.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         : KFvtcLIJaMbGGH8nakydKSybXXNY7x4EJSESftHasRUP3+FcWGSiZXbc+xQ4KDQ8zZY42+IVRgCH9lOXo6g1gthBAYC7b9tRcgmuQKQTx+43UwEckVzmtRKWsnIJzBW6dV8bTA4GMZxkif4hUYTIfxd70wnQ6of0VeK/d5faemKeOBf6APK7qDkNHtly4+KVXaQSEtC+1zkneUAGzVxtRxMU3S3QHeyDSjuiKl1ZSEn+wzvMG0oZcmyXEXXZM5trxcwXB3OsyQLcZgHYVDc5DFY1vtKIfLHk5Tp7xIhrsiPkXBTTRDmgA5gUXa3l38NbCN6x5SzlxjwU1HA+LnvMoQ==

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2024
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *
from iniparse import ConfigParser
import os


def install():
    install_dir = makepath('/','opt',control.package.split('-',1)[1])
    appimage = glob.glob("*.AppImage")[0]
    install_appimage(appimage,install_dir)

def uninstall():
    install_dir = makepath('/','opt',control.package.split('-',1)[1])
    uninstall_appimage(install_dir)

def install_appimage(appimage,install_dir,binaliasname=None):
    run('chmod a+x ./' + appimage)

    if isdir(install_dir):
        uninstall_appimage(install_dir)

    mkdirs(install_dir)

    name_appimage = appimage.split('/')[-1]
    filecopyto(appimage, makepath(install_dir, name_appimage))
    run('"./%s" --appimage-extract' % appimage)
    

    for desktop in glob.glob(makepath('squashfs-root','*.desktop')):
 
        desktop_cp = ConfigParser()
        desktop_cp.optionxform = str
        desktop_file = open(desktop, encoding="utf-8")
        desktop_cp.readfp(desktop_file)
        bin_path = desktop_cp.get('Desktop Entry',"Exec")

        newbin_path = install_dir + '/' + name_appimage
        if ' %' in bin_path:
            newbin_path = newbin_path + ' %' + bin_path.split(' %',1)[1]

        icon_path = desktop_cp.get('Desktop Entry',"Icon")

        srcicon = makepath('squashfs-root',icon_path +'.svg')
        if not isfile(srcicon):
            srcicon = makepath('squashfs-root',icon_path +'.png')

        if not isfile(srcicon):
            lstglob = glob.glob(makepath('squashfs-root','*.svg'))
            if lstglob :
                srcicon=lstglob[0]

        if not isfile(srcicon):
            lstglob = glob.glob(makepath('squashfs-root','*.png'))
            if lstglob :
                srcicon=lstglob[0]
            else:
                srcicon = None

        if srcicon:            
            new_icon = install_dir + '/' + srcicon.split('/')[-1]
            filecopyto(srcicon,new_icon)
            desktop_cp.set('Desktop Entry',"Icon",new_icon) 

        desktop_cp.set('Desktop Entry',"Exec",newbin_path)
       
        with open(desktop, 'w', encoding="utf-8") as f:
            desktop_cp.write(f)

        pathdesk = makepath(install_dir,desktop.split('/')[-1])
        filecopyto(desktop, pathdesk)
        run('chown root:root "%s" ' % pathdesk)

    for f in glob.glob(makepath(install_dir,'*.desktop')):
        run('ln -sf "%s" "/usr/share/applications/%s"' % (f,f.split('/')[-1]))

    if binaliasname :
        run(f"ln -sf {install_dir}/{name_appimage} /usr/bin/{binaliasname}")

    remove_tree('squashfs-root')

def uninstall_appimage(install_dir):

    if not glob.glob(makepath(install_dir,'*.desktop')):
        error('.desktop not found')

    for f in glob.glob(makepath(install_dir,'*.desktop')):
        deskfile = f.split('/')[-1]
        system_desktop = makepath("/","usr","share","applications",deskfile)
        if isfile(system_desktop):
            remove_file(system_desktop)
    remove_tree(install_dir)

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    api_url = "https://api.github.com/repos/cryptomator/cryptomator/releases/latest"
    
    update_dict = {
        "windows-x64" : ".msi",
        "darwin-x64" : "x64.dmg",
        "darwin-arm" : "arm64.dmg",
        "linux-x64" : "x86_64.AppImage",
        "linux-arm64" : "aarch64.AppImage"
    }

    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    for to_download in json_load["assets"]:
        if update_dict[os_type] in to_download["name"]:
            download_url = to_download["browser_download_url"]
            latest_bin = to_download["name"]
            version = json_load["tag_name"].split("-")[-1].replace("v", "")
            latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
            break

    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
3f1bf8344b1dfbc438005c591f75cc1806c82567e8a3c47e404ed6250a4e2f20 : WAPT/control
a7daeb8a79d3f7d529fbf25397e87a1848f84b311b7e112654c043350934a1b8 : WAPT/icon.png
5bb552c3f801c0007c5dc5c2a7e9e29eaf2ec0c28e5dca1d5e52c473905fba2f : cryptomator-1.17.1-aarch64.AppImage
7134aa0f05bd10d998e7d233238ea16eda46e9bb1a0dd14889a84a91cfd5b2ac : luti.json
223fa6ca0b4ed15f7d1a2e29893619511e043c7907d145e8c8991405677bb4e1 : setup.py
8eed981932daec45f9374df635800b9100302021461077952ee773f86acf712e : update_package.py