tis-rednotebook 2.3-4

  • package : tis-rednotebook
  • version : 2.3-4
  • description : RedNoteBook combine un calendrier, un outil de prise de notes et un module d'annotations, à la manière d'un journal intime. Vous pouvez saisir des textes différents par jour et naviguer entre les différentes dates du calendrier.
  • maintainer : Simon Fonteneau
  • date : 2018-02-27 19:07:24

setup.py

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

uninstallkey = []

def install():
    print('installing Rednotebook')

    def versrednotebook(key):
        return key['name'].replace('RedNotebook ','')

    versionpaquet = control['version'].split('-',1)[0]

    install_exe_if_needed("rednotebook-%s.exe" % versionpaquet,'/VERYSILENT /SUPPRESSMSGBOXES /NORESTART',key='{82A7E9C3-D3F3-4B85-9AC3-D0E011D19E50}_is1',min_version=versionpaquet,get_version=versrednotebook)

def update_package():
    htmlsources = wgets('https://github.com/jendrikseipp/rednotebook/releases')
    for line in htmlsources.splitlines() :
        if 'rednotebook-' and '.exe' in line :
            versionred = line[line.find('rednotebook-') + 12 : line.find('.exe')]
            filename = 'rednotebook-%s.exe' % versionred
            dstexe = "https://github.com/jendrikseipp/rednotebook/releases/download/v%s/rednotebook-%s.exe" % (versionred,versionred)
            break

    exes = glob.glob('*.exe')
    for fn in exes:
        if fn != filename:
            remove_file(fn)

    if not isfile(filename):
        print('Downloading %s from %s'%(filename,dstexe))
        wget(dstexe,filename)
    else:
        print('Already up to date, skipped')

    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = versionred + '-0'
    pe.save_control_to_wapt(os.getcwd())

if __name__ == '__main__':
    update_package()
    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "0738d62aab3d90a7679b33fb0053fdd98ce37c9bd3ae9724123f7d04d41e575a"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "6ced6d42441ea2be5dab71026935e7cce930ae4a6c5e1cf5e03686153e435726"], ["rednotebook-2.3.exe", "8c7fe73ea09628f7e976a62171147fe798d44aa516da6b1f8873e4572a7ada63"], ["setup.py", "a0ca33e46306b4ef15d3f426dc77159fe7358b6dbae64dc4f82930db4922423b"], ["WAPT/control", "f8d16954024439199120cd7342d7ca34a5b005c5143217a1d524ca2fbf93dae1"]]