Voici un paquet pour le logiciel Winmail Opener (pour ouvrir les fichier winmail.dat).
setup.py :
Code : Tout sélectionner
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
appver = control.get_software_version()
appname = control.name
install_exe_if_needed(r'winmail_opener.exe', silentflags=r'/S', key=appname, min_version=appver)
remove_desktop_shortcut(appname)
remove_user_desktop_shortcut(appname)
def session_setup():
appname = control.name
remove_user_desktop_shortcut(appname)
def update_package():
appver = control.get_software_version()
url_dl = control.sources
binary = r'winmail_opener.exe'
# Download latest binary to check version
wget(url_dl, binary)
latest_version = get_version_from_binary(binary)
if Version(latest_version, 2) > Version(appver, 2):
print(r'Latest version is %s' % latest_version)
# Changing version of the package
control.version = '%s-%s'%(latest_version, control.version.split('-')[-1])
control.save_control_to_wapt()
print('Changing version to: %s in WAPT\\control' % control.version)
else:
print("Already up to date")
Code : Tout sélectionner
package : xxx-winmail_opener
version : 1.7-0
architecture : all
section : base
priority : optional
name : Winmail Opener
categories : Utilities
maintainer : XXXX
description : Winmail Opener is a small and simple utility that allows you to view and extract the contents of winmail.dat files sent by Outlook
depends :
conflicts :
maturity : PROD
locale :
target_os : all
min_wapt_version :
sources : https://www.eolsoft.com/get/wmo
installed_size :
impacted_process :
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor : Eolsoft
keywords :
licence : proprietary_free
homepage : https://www.eolsoft.com/freeware/winmail_opener/
valid_from :
valid_until :
forced_install_on :
changelog : https://www.eolsoft.com/freeware/winmail_opener/whatsnew.htm
min_os_version :
max_os_version :