tis-notepadplusplus 7.5.1-9

  • package : tis-notepadplusplus
  • version : 7.5.1-9
  • description : Editeur de texte Notepad++
  • maintainer : TIS, Simon Fonteneau
  • date : 2018-02-27 19:04:13

setup.py

# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
from setuphelpers import *
import re

uninstallkey = []

def install():
    versionpaquet = control['version'].split('-',1)[0]
    install_exe_if_needed('npp.%s.Installer.exe' % versionpaquet ,silentflags='/S',key='Notepad++',min_version=versionpaquet,killbefore=['notepad++.exe'])


def get_version(exe_filename):
    try:
        return Version(re.findall(r'npp\.(.*)\.Installer\.exe',exe_filename)[0],3)
    except:
        return Version(re.findall(r'npp\.(.*)\.Installer\.exe',exe_filename)[0])

def update_package():
    index = wgets('https://notepad-plus-plus.org/repository/7.x/')

    versions =  [ Version("%s%s"% a,3) for a in sorted(re.findall(r'alt="\[DIR\]"></td><td><a href="(\d*\.\d*)(\.\d*)?/">',index))]
    versions.sort()
    latest = versions[-1]
    canversion = Version(versions[-1])
    try:
        if canversion.members[-1] == '0':
            del canversion.members[-1]
        wget('https://notepad-plus-plus.org/repository/7.x/{canversion}/npp.{canversion}.Installer.exe'.format(version=latest,canversion=canversion),'.')
    except:
        latest = versions[-2]
        wget('https://notepad-plus-plus.org/repository/7.x/{version}/npp.{canversion}.Installer.exe'.format(version=latest,canversion=latest),'.')

    for f in glob.glob('*.exe'):
        if get_version(f) != Version(latest,3):
            remove_file(f)

    control = PackageEntry().load_control_from_wapt('.')
    control.version = "%s-%s" % (latest,control.version.split('-')[1])
    control.save_control_to_wapt('.')

if __name__ == '__main__':
    # update installer
    update_package()


    

Changelog

v 7.3.3
=======
Fix CIA Hacking Notepad++ issue (https://wikileaks.org/ciav7p1/cms/page_26968090.html).
Fix mouse wheel to task list scroll crash bug.
Fix flickering issue while switching back after modifying or deleting a document from outside.
Support Motorola S-Record, Intel and Tektronix extended hex file formats.
Improve multi-line tab: maintaining the selected tab position.
Fix add char into word char list bug.
Add Shift+Enter in Find dialog for searching in the opposite direction.
Fix a regression that delimiter settings is not retained correctly.
Add clear command button in shortcut mapper.
Enhancement: file extension supported in Load/Save Session dialog if a session file extension is set.

v7.3.2
===============
13 Feb 2017 21:30:00
This version contains a lot of bug-fixes and enhancements.
Fix crash issue on column mode editor.
Fix "Use new style save dialog" setting's regression.
Enhance "Open file" command - open a file from editor zone without selecting its full path.
Fix word char list settings not applying on next launch issue.
Fix block uncomment for line comment bug.
BaanC Language is supported.
Add error notification on run dialog.
Fix the caret position not maintained issue between document move.
Fix caret goes to wrong position after word completion.
Enhance Function List for supporting language.
Add check mark in Language menu.
Fix toolbar not showing issue while launching Notepad++ from system tray in some unknown configuration.

v7.3.1
======

new feature and bug-fixes:
Fix generation of MD5 on Unicode bug.
Enhancement : make "Word characters list" customizable.
    

manifest.sha256

[["WAPT/icon.png", "d7f00919c8a7868849d3e1b0d234361725491fa524bfb6a192ed667103ae4b78"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "795d36d10109ca85357285f79090fac2be856e5830ea31fa913cc55cb825807b"], ["npp.7.5.1.Installer.exe", "28cba6f7775d7b556efab8d5d6a399d86ff851f56b1d7b5d4a723d6554c6e753"], ["setup.py", "743356b8a36d591a642c9173108d3281053a5466bd68cc1696be04f3b4bdd074"], ["WAPT/control", "2472d76789b35657a42ea75e171a594c0bbf8e3249a4c14518ef623281abce9e"], ["WAPT/changelog.txt", "f56672b0bb442d5f0fd71f25280977de686146d77a0eb8d8e54b168cb858ded2"]]