tis-canva icon

Canva

Paquet d'installation silencieuse pour Canva

1.126.2-0
Utilities
Utilities

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un deuxième scan VirusTotal est effectué pour vérifier que le status n'a pas changé.
Si le paquet réussit ce dernier contrôle, il est promu en PROD et publié sur le store.

  • package: tis-canva
  • name: Canva
  • version: 1.126.2-0
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • locale: all
  • target_os: macos
  • impacted_process: Canva
  • architecture: all
  • signature_date:
  • size: 233.62 Mo
  • installed_size: 319.43 Mo

package           : tis-canva
version           : 1.126.2-0
architecture      : all
section           : base
priority          : optional
name              : Canva
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : Canva is a graphic design app.
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : all
target_os         : macos
min_wapt_version  : 2.3
sources           : 
installed_size    : 319434752
impacted_process  : Canva
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : graphic,design
licence           : 
homepage          : 
package_uuid      : 61c887d2-d5f6-4960-bc54-8a24c4383e22
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 6092eaa2beddc4aa2b3166b349b0e2fe32ebbb6a6b316b04fccf2d290091adbb
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-10-22T15:35:31.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         : iecROcqJznYlJCQqX4DWjCJHmedoZKXTk1XSq2xCQVMOQwoR/M/oiASkxYk7tIzR0acqqIPKOq9G4v+duRrVFMYTPgfovWHyzg17CoSiqFdh1M2rCNyBa0DWs4Gn/x4kJIhkhmY1mxfrSjfYaTdiHoP7Esu1Dxiay/3YNIUEe3mqzEi95vClk2BHMbAHR404LVGRr2RLdhNWqyx0n4Mkl24LifqdsTQMhd38h5fmMOS8+4A9eleypVSk0YwC8BVQ0JY4bUJAP0XEDsBjUR2RcjRoZUlDmds0Sgp2BOVcRZkX2dwjM/0TbqC8rBCCLCHcWFMzCSjfwbJWBeVSB2F8qQ==

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



def install():
    # Declaring local variables
    bin_name = glob.glob("Canva-*-universal.dmg")[0]

    install_dmg(bin_name)

def uninstall() :
    remove_tree("/Applications/Canva.app")

from setuphelpers import *
import waptlicences
import requests

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

    update_dict = {"windows": ".dmg"}
    download_url = "https://www.canva.com/download/mac/universal/canva-desktop"

    version_url = requests.head('https://www.canva.com/download/mac/universal/canva-desktop', headers = {'user_agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36'}, allow_redirects = True).url

    version = version_url.split("/")[-1].split("-")[1]

    latest_bin = f"Canva-{version}-universal.dmg"

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


    # Downloading latest binaries
    print(f"Latest version of {control.name} is: {version}")
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % 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)})")

    # Deleting binaries
    for f in glob.glob("*.dmg"):
        if f != latest_bin:
            remove_file(f)
    
    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

54097964544ace50e7e83260da85ab45feebd61a311ed51c4ee9f068ab7f3658 : Canva-1.126.2-universal.dmg
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
33ea83f23902ca6838def95e426c7f2ae0295ccd204650a6edfac94cec9f0978 : WAPT/control
6092eaa2beddc4aa2b3166b349b0e2fe32ebbb6a6b316b04fccf2d290091adbb : WAPT/icon.png
7de83e760bde4b3a5a36e3c3c287a38bd638b35634dbdaba3a49697f6e8b5386 : luti.json
c62fae4e00d9289ffc249006f6a39b149407d2f98ee64022c7ce8e846f6ec536 : setup.py
1aee5178dd59a952af836df682712fd6b6869e5430c746cfae2630b415df8b17 : update_package.py