mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
Use macro to create URLs for installers
This commit is contained in:
parent
1ad3713000
commit
300fc96d48
1 changed files with 23 additions and 17 deletions
|
@ -8,8 +8,12 @@
|
||||||
|
|
||||||
; Defines
|
; Defines
|
||||||
|
|
||||||
; Base URL for installers
|
; Redefine macros/functions
|
||||||
!define BASE "http://download.deluge-torrent.org/windows/deps"
|
!define get_url "!insertmacro get_url"
|
||||||
|
!define download "!insertmacro download"
|
||||||
|
!define install_NSIS "!insertmacro install_NSIS"
|
||||||
|
!define install_MSI "!insertmacro install_MSI"
|
||||||
|
!define install_ZIP "!insertmacro install_ZIP"
|
||||||
|
|
||||||
; Installer versions
|
; Installer versions
|
||||||
!define DELUGE_VERSION "1.1.3"
|
!define DELUGE_VERSION "1.1.3"
|
||||||
|
@ -43,21 +47,19 @@
|
||||||
!define LIBTORRENT_DLL_ZIP "${LIBTORRENT_DLL}.zip"
|
!define LIBTORRENT_DLL_ZIP "${LIBTORRENT_DLL}.zip"
|
||||||
|
|
||||||
; Installer URLs
|
; Installer URLs
|
||||||
!define DELUGE_INSTALLER_URL "${BASE}/${DELUGE_INSTALLER}"
|
${get_url} DELUGE_INSTALLER
|
||||||
!define PYTHON_INSTALLER_URL "${BASE}/${PYTHON_INSTALLER}"
|
${get_url} PYTHON_INSTALLER
|
||||||
!define PYWIN32_INSTALLER_URL "${BASE}/${PYWIN32_INSTALLER}"
|
${get_url} PYWIN32_INSTALLER
|
||||||
!define GTK_INSTALLER_URL "${BASE}/${GTK_INSTALLER}"
|
${get_url} GTK_INSTALLER
|
||||||
!define PYGTK_INSTALLER_URL "${BASE}/${PYGTK_INSTALLER}"
|
${get_url} PYCAIRO_INSTALLER
|
||||||
!define PYXDG_INSTALLER_URL "${BASE}/${PYXDG_INSTALLER}"
|
${get_url} PYGAME_INSTALLER
|
||||||
!define SETUPTOOLS_INSTALLER_URL "${BASE}/${SETUPTOOLS_INSTALLER}"
|
${get_url} PYGOBJECT_INSTALLER
|
||||||
!define LIBTORRENT_INSTALLER_URL "${BASE}/${LIBTORRENT_INSTALLER}"
|
${get_url} PYGTK_INSTALLER
|
||||||
!define LIBTORRENT_DLL_ZIP_URL "${BASE}/${LIBTORRENT_DLL_ZIP}"
|
${get_url} PYOPENSSL_INSTALLER
|
||||||
|
${get_url} PYXDG_INSTALLER
|
||||||
; Redefine macros/functions
|
${get_url} SETUPTOOLS_INSTALLER
|
||||||
!define download "!insertmacro download"
|
${get_url} LIBTORRENT_INSTALLER
|
||||||
!define install_NSIS "!insertmacro install_NSIS"
|
${get_url} LIBTORRENT_DLL_ZIP
|
||||||
!define install_MSI "!insertmacro install_MSI"
|
|
||||||
!define install_ZIP "!insertmacro install_ZIP"
|
|
||||||
|
|
||||||
; General Settings
|
; General Settings
|
||||||
|
|
||||||
|
@ -124,6 +126,10 @@
|
||||||
|
|
||||||
; Macros
|
; Macros
|
||||||
|
|
||||||
|
!macro get_url installer
|
||||||
|
!define ${installer}_URL "http://download.deluge-torrent.org/windows/deps/${{installer}}"
|
||||||
|
!macroend
|
||||||
|
|
||||||
!macro download url filename
|
!macro download url filename
|
||||||
DetailPrint "Downloading: ${url}"
|
DetailPrint "Downloading: ${url}"
|
||||||
NSISdl::download ${url} ${filename}
|
NSISdl::download ${url} ${filename}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue