From ff9080fcdd5a2c673e4ae8f3d376cede27a33534 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 11 Mar 2009 14:21:21 +0100 Subject: [PATCH] Reinstate a light version of the 7z-based installer, for a portable Git By providing a 7z-based installer, the user has the option to use 7-Zip directly to extract Git, to wherever she wants. This way, it is guaranteed that nothing is written into the registry, or shortcuts are installed anywhere. Signed-off-by: Johannes Schindelin --- share/WinGit/portable-release.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 share/WinGit/portable-release.sh diff --git a/share/WinGit/portable-release.sh b/share/WinGit/portable-release.sh new file mode 100644 index 0000000000..cf650692fd --- /dev/null +++ b/share/WinGit/portable-release.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +test -z "$1" && { + echo "Usage: $0 " + exit 1 +} + +TARGET="$HOME"/PortableGit-$1.exe +OPTS7="-m0=lzma -mx=9 -md=64M" +TARGET7=tmp.7z +TMPDIR=/tmp/WinGit + +"$(dirname $0)/copy-files.sh" $TMPDIR && +cd "$TMPDIR" && +7z a $OPTS7 $TARGET7 * || +exit + +(cat /share/7-Zip/7zSD.sfx && + echo ';!@Install@!UTF-8!' && + echo 'Progress="yes"' && + echo 'Title="WinGit: MinGW Git + minimal MSys installation"' && + echo 'BeginPrompt="This program installs a complete Git for MSys setup"' && + echo 'CancelPrompt="Do you want to cancel WinGit installation?"' && + echo 'ExtractDialogText="Please, wait..."' && + echo 'ExtractPathText="Where do you want to install WinGit?"' && + echo 'ExtractTitle="Extracting..."' && + echo 'GUIFlags="8+32+64+256+4096"' && + echo 'GUIMode="1"' && + echo 'InstallPath="%PROGRAMFILES%\\Git"' && + echo 'OverwriteMode="0"' && + echo ';!@InstallEnd@!7z' && + cat $TARGET7) > "$TARGET" -- 2.11.4.GIT