|
| 1 | +#!/usr/bin/env python3 |
| 2 | +# |
1 | 3 | # Copyright (c) 2017, German Neuroinformatics Node (G-Node)
|
2 | 4 | #
|
3 | 5 | # All rights reserved.
|
@@ -186,12 +188,9 @@ def get_git_annex_for_windows():
|
186 | 188 | """
|
187 | 189 | Download the git annex for windows installer.
|
188 | 190 | """
|
189 |
| - # win_git_annex_url = ("https://downloads.kitenet.net/git-annex/windows/" |
190 |
| - # "current/git-annex-installer.exe") |
191 |
| - # return download(win_git_annex_url) |
192 |
| - # fixing windows installer version (again) |
193 |
| - fname = os.path.join(DESTDIR, "downloads", "git-annex-installer.exe") |
194 |
| - return fname |
| 191 | + win_git_annex_url = ("https://downloads.kitenet.net/git-annex/windows/" |
| 192 | + "current/git-annex-installer.exe") |
| 193 | + return download(win_git_annex_url) |
195 | 194 |
|
196 | 195 |
|
197 | 196 | def package_linux_plain(binfile):
|
@@ -362,6 +361,8 @@ def package_mac_bundle(binfile, annex_tar):
|
362 | 361 | For each macOS binary make a zip that includes the annex.app with the gin
|
363 | 362 | binary in its path.
|
364 | 363 | """
|
| 364 | + if not annex_tar: |
| 365 | + return None |
365 | 366 | with TemporaryDirectory(suffix="gin-macos") as tmpdir:
|
366 | 367 | # extract macOS git-annex tar into pkgroot
|
367 | 368 | cmd = ["tar", "-xjf", annex_tar, "-C", tmpdir]
|
@@ -446,6 +447,7 @@ def winbundle(binfile, git_pkg, annex_pkg):
|
446 | 447 | shutil.copy(binfile, bindir)
|
447 | 448 | shutil.copy("README.md", pkgroot)
|
448 | 449 | shutil.copy(os.path.join("scripts", "gin-shell.bat"), pkgroot)
|
| 450 | + shutil.copy(os.path.join("scripts", "set-global.bat"), pkgroot) |
449 | 451 |
|
450 | 452 | gitdir = os.path.join(pkgroot, "git")
|
451 | 453 | os.makedirs(gitdir)
|
|
0 commit comments