tis-julia icon

julia

Silent install package for julia

1.9-0

  • package: tis-julia
  • name: julia
  • version: 1.9-0
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Pierre Cosson
  • locale: all
  • target_os: darwin
  • architecture: x64
  • signature_date:
  • size: 117.74 Mo

package           : tis-julia
version           : 1.9-0
architecture      : x64
section           : base
priority          : optional
name              : julia
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Pierre Cosson
description       : Julia is a language that is fast, dynamic, easy to use, and open source
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : darwin
min_wapt_version  : 2.0
sources           : https://julialang.org/downloads/
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      : 8c836b0c-06b8-4c16-8ba7-02801e713c4a
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 19f3c2d374cc23797dfdaa2706b1ea4648283220a2f04630ca3396f36d6ea05f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : TXe1z0Gm4dK31r9y+BYgThZf9akhV5XsXVDyLTp/MgKqoG1xOoHXA//3vxQPtIaInpcMtNfDyF3bbRSTF9g4RRmKuy7OBwHZZHaw9eKCRcEvbCRnMlGFbq8U+u+YIhcBc6UjE5KNvXdIyyeHk1BuiT8CMg+lMB+ONTrgU4qjK3KRfNtMmcw6syTdFcUPq67yDeqPzl7VsTr8kdNxSp/QFr6UNVHldvrM8eHkNbjGA64z10HwkoFGXIO3L0T+yGnYNr0uImTr0ZrETR8e2AsS2WRzl2oD8Q8EYipE//III/7JjZhpqVdfN+vxG0qsheSU63NA6lD/gHPdSJ/TK0OAzw==
signature_date    : 2023-05-15T13:00:44.040941
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

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

bin_contains = "julia"
app_path = "/Applications/Julia-%s.app"


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.dmg" % (bin_contains))[0]
    install_path = app_path % package_version
    for app_dir in glob.glob("%s*" % app_path % "*"):
        installed_version = app_dir.split("-")[1].split(".app")[0]
        if Version(package_version) > Version(installed_version):
            print("uninstalling  %s" % app_dir)
            remove_tree(app_dir)

    if isdir(install_path):
        if is_local_app_installed(install_path, check_version=package_version):
            print("App already installed or newer version present")
        else:
            print("Installing: %s" % bin_name)
            install_dmg(bin_name)
    else:
        # Installing the package
        print("Installing: %s" % bin_name)
        install_dmg(bin_name)


def uninstall():
    package_version = control.get_software_version()
    install_path = app_path % package_version
    # Uninstalling package
    print("Uninstalling: %s" % bin_contains)
    if isdir(install_path):
        remove_tree(install_path)

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


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    url = " https://julialang.org/downloads/"
    bin_contains = "julia"

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", "class", proxies=proxies):
        if bin_contains in bs_search["href"] and "mac64.dmg" in bs_search["href"]:
            version = bs_search["href"].split("/")[-2]
            latest_bin = bs_search["href"].split("/")[-1]
            url_dl = bs_search["href"]
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download url is: %s" % url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_dl, latest_bin, proxies=proxies)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(Version(version))
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return result

c6a9860897f50923d98cc346244d5e8c5bbb218be3a632447e1c37df074a184c : setup.py
25041ddeb8d37521af36f455c9cf225b7fae785ef7877ee81bea158dcaab87ea : julia-1.9.0-mac64.dmg
3189aeaf6bb174be4fa49bec05d34667d2c69db6bc5583bd311a891b227092d2 : update_package.py
19f3c2d374cc23797dfdaa2706b1ea4648283220a2f04630ca3396f36d6ea05f : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
b1bbd1782198dacf8e70e8241af3651b59a0950e73fc9d395fd873d64871cc18 : luti.json
f93e71b20731e1ff4bca987ab43a9c762f21c1792bd9090d05b0a371d587fad1 : WAPT/control