Skip to content

Commit aeb528c

Browse files
authored
Merge pull request #290 from achilleas-k/windows-global-cmd
Windows global cmd
2 parents 7b8a059 + 7a559f7 commit aeb528c

File tree

5 files changed

+28
-10
lines changed

5 files changed

+28
-10
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ env:
1313

1414
matrix:
1515
include:
16-
- go: "1.13.x"
16+
- go: "1.14.x"
1717
os: linux
1818
- go: tip
1919
os: linux
20-
- go: "1.13.x"
20+
- go: "1.14.x"
2121
os: osx
2222
addons:
2323
homebrew:

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ build: off
33

44
clone_folder: C:\gopath\src\github.com\G-Node\gin-cli
55

6-
stack: go 1.12
6+
stack: go 1.14
77

88
environment:
99
SRCDIR: C:\gopath\src\github.com\G-Node\gin-cli

dorelease.py renamed to dorelease

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
#
13
# Copyright (c) 2017, German Neuroinformatics Node (G-Node)
24
#
35
# All rights reserved.
@@ -186,12 +188,9 @@ def get_git_annex_for_windows():
186188
"""
187189
Download the git annex for windows installer.
188190
"""
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)
195194

196195

197196
def package_linux_plain(binfile):
@@ -362,6 +361,8 @@ def package_mac_bundle(binfile, annex_tar):
362361
For each macOS binary make a zip that includes the annex.app with the gin
363362
binary in its path.
364363
"""
364+
if not annex_tar:
365+
return None
365366
with TemporaryDirectory(suffix="gin-macos") as tmpdir:
366367
# extract macOS git-annex tar into pkgroot
367368
cmd = ["tar", "-xjf", annex_tar, "-C", tmpdir]
@@ -446,6 +447,7 @@ def winbundle(binfile, git_pkg, annex_pkg):
446447
shutil.copy(binfile, bindir)
447448
shutil.copy("README.md", pkgroot)
448449
shutil.copy(os.path.join("scripts", "gin-shell.bat"), pkgroot)
450+
shutil.copy(os.path.join("scripts", "set-global.bat"), pkgroot)
449451

450452
gitdir = os.path.join(pkgroot, "git")
451453
os.makedirs(gitdir)

scripts/set-global.bat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:: GIN client global setup for Windows
2+
::
3+
:: This file should be part of the gin client Windows bundle. The purpose of
4+
:: the file is to permanently change the user path environment to be able to
5+
:: run GIN commands from the command line (cmd and PowerShell).
6+
7+
echo off
8+
9+
set curdir=%~dp0
10+
11+
set ginbinpath=%curdir%\bin
12+
set gitpaths=%curdir%\git\usr\bin;%curdir%\git\bin
13+
echo Appending "%ginbinpath%;%gitpaths%" to path
14+
echo %path%|find /I "%curdir%">nul || setx path "%path%;%ginbinpath%;%gitpaths%"
15+
echo GIN CLI is ready
16+
pause

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.10
1+
version=1.11dev

0 commit comments

Comments
 (0)