tis-canva icon

Canva

Paquet d’installation silencieuse pour Canva

1.116.0-0

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un scan VirusTotal est effectué.
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.116.0-0
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • locale: all
  • target_os: macos
  • impacted_process: Canva
  • architecture: all
  • signature_date:
  • size: 214.11 Mo
  • installed_size: 319.43 Mo

package           : tis-canva
version           : 1.116.0-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      : 362f0436-bd45-45f0-9a50-e38a0fefcd32
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 6092eaa2beddc4aa2b3166b349b0e2fe32ebbb6a6b316b04fccf2d290091adbb
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2025-09-18T06:03:33.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         : aePl+z/S0A3RjYGTtlHbXy9QpCM/2ZYDd1wo5oQy2QAmlOmsFZ9iB/xJjsG2aWCOXxOdYk4S/Zsx8scLfEPAATk3F3nzaswBe45EweLpQdppuS+VZWVvMxwydCJ9q+2FsVMYqVu5FmHgBsrEqt0pHwXKo1CsMzpCQyY58xFHJtIdFHjWgxilIPS+hlaujUCFYr1H453tAsjL/fORtqvbJgKROQXZCtu2tIqUzQqm4oWEBNqex9P86Z0NfLtbpUzy7GzysoCCs1IgfALUKGbLI8d2aFYLYyKQUAvD5OHl0W804Q1v+CuKKsayy8UaoOKz6INaTVTqT7pIbI5tqA/1vQ==

# -*- 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

d7a22f7007e76237b23c39e9324758f519adc751e1fe5c76bfc44768d08cd1fd : Canva-1.116.0-universal.dmg
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
102ced0d9156dbb4471029e56a5db12e6b082825a485d8940e224b53679e64e3 : WAPT/control
6092eaa2beddc4aa2b3166b349b0e2fe32ebbb6a6b316b04fccf2d290091adbb : WAPT/icon.png
f679910ea23f428eaaf9c0f8ae7aaa55debd861d767805638f7acd45f327fe30 : luti.json
c62fae4e00d9289ffc249006f6a39b149407d2f98ee64022c7ce8e846f6ec536 : setup.py
1aee5178dd59a952af836df682712fd6b6869e5430c746cfae2630b415df8b17 : update_package.py