Find latest nsis binary.
This commit is contained in:
parent
4839f298c6
commit
3b57a0a378
@ -1016,12 +1016,11 @@ def check_win(pkg):
|
||||
|
||||
def get_win_dep():
|
||||
box_draw("Download NSIS compiler")
|
||||
html = urlopen('https://sourceforge.net/p/nsis/code/HEAD/tree/NSIS/tags/').read().decode('utf-8')
|
||||
NSIS_VERSION = html[html.rfind('<a href="v'):html.find('>', html.rfind('<a href="v'))].strip('<a href="v').strip(
|
||||
'"')
|
||||
NSIS_VERSION = NSIS_VERSION[:1] + '.' + NSIS_VERSION[1:]
|
||||
html = urlopen('https://sourceforge.net/p/nsis/code/6780/log/?path=/NSIS/tags').read().decode('utf-8')
|
||||
pin = '<p>Tagging for release'
|
||||
NSIS_VERSION = html[html.find(pin):html.find('</div>', html.find(pin))].strip(pin + ' ')
|
||||
print('Latest version of NSIS is: ' + NSIS_VERSION)
|
||||
wget(url="https://sourceforge.net/projects/nsis/files/NSIS%%203%%20Pre-release/%s/nsis-%s.zip" % (
|
||||
wget(url="https://sourceforge.net/projects/nsis/files/NSIS%%203%%20/%s/nsis-%s.zip" % (
|
||||
NSIS_VERSION, NSIS_VERSION),
|
||||
out_dir=TMP_PREFIX)
|
||||
print('Extracting: ' + os.path.join(TMP_PREFIX, 'nsis-%s.zip' % (NSIS_VERSION)))
|
||||
|
Loading…
Reference in New Issue
Block a user