Détails du package

smp-wsl-debian

retour Revenir à la liste des packages

smp-wsl-debian

Fichier control :

package           : smp-wsl-debian
version           : 0-9
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : Administrateur
description       : Package for smp-wsl-debian
depends           : 
conflicts         : 
maturity          : 
locale            : 
target_os         : windows
min_os_version    : 10
max_os_version    : 
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      : e89dfdb8-eb2d-4ce1-bce4-3632a7fe6f1b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature         : fwf3h8Co28EYOFECqU6C2l66Rp1hlU0kIwQW7Jl55/kX5U9nFAZNVaD4Ly86/96OwgL1DqT7HJhToN1OU41dzJwUilwmny0tcZf1uemJGByxUVZqPreb0VSmIjhfUjORRMWRenrde2ji+iic5YK9RATuX6PG62QrNStSQvqB5xWdzG5qKK94w7OAidqUFj583zo3K+4IaESvmEIfmiU10yZj9/11U69pjA0Cilblknp5AUAgVbsSKL7ywCm1KagV6RYxBUriO0jFelObsFHB1istiVeKSsJH/KdCoySrX5lINVvl4KlJZpa0WpxqK59H4l/7NTtU8sBa87l4rsGpgA==
signature_date    : 2020-07-04T01:23:04.191801
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,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,signer,signer_fingerprint,signature_date,signed_attributes



Fichier setup.py :

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

uninstallkey = []

wsl_path = makepath(programfiles,'WSL')

def install():
    print('installing %s' % control.asrequirement())
    mkdirs(wsl_path)
    filecopyto("Debian.appx",wsl_path)
    try:
        with EnsureWUAUServRunning():
            with disable_file_system_redirection():
                run_powershell('Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart')
    except:
        pass

def session_setup():
    print('Session setup for %s' % control.asrequirement())
    with disable_file_system_redirection():
        print(run_powershell('Add-AppxPackage -Path "%s"' % makepath(wsl_path,'Debian.appx')))