forked from winpython/winpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller_7zip.bat
More file actions
77 lines (58 loc) · 2.6 KB
/
installer_7zip.bat
File metadata and controls
77 lines (58 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
rem Copyright @ 2018 WinPython team
rem Licensed under the terms of the MIT License
rem (see winpython/__init__.py for details)
rem This is to do a 7-zip installer
rem ================================================================
rem These lines are automatically replaced when creating installer:
rem (see winpython/make.py)
set SEVENZIP_EXE=C:\Program Files (x86)\7-Zip\7z
set DISTDIR=C:\WinP\bd36\buPs2\winp64-3.6.x.0
set ARCH=64
set VERSION=3.6.7.0Ps2
rem 2018-04-04 need to minimize path length of installation further: remove flavor in install path
set VERSION_INSTALL=3670
set RELEASELEVEL=beta3
set PORTABLE_DIR=C:\WinPython-64bit-3.4.3.7Qt5\winpython_github20181029\portable
set INSTALLER_OPTION=.exe
rem ================================================================
rem these lines are static definitions
set ID=Winpython
set ID_INSTALL=WPy
set FILE_DESCRIPTION=%ID% Installer
set COMPANY=%ID%
set BRANDING=%ID%, the portable Python Distribution for Scientists
set COPYRIGHT=Copyright © 2018+ WinPython Team
set MyAppPublisher=WinPython team
set MyAppURL=https://winpython.github.io/
rem OutputBaseFilename "{#ID}{#ARCH}-{#VERSION}{#RELEASELEVEL}"
rem ================================================================ [Setup]
rem OutFile "${DISTDIR}\..\${ID}${ARCH}-${VERSION}${RELEASELEVEL}.exe"
set MyBinaryOutputDir=%DISTDIR%\..
set OutputBaseFilename=%ID%%ARCH%-%VERSION%%RELEASELEVEL%
rem 7-zip uncompress the directory compressed %DISTDIR% (no option to change it in gui)
rem ================================================================
rem 2019-03-16 copy license at source (due to 7zip limitations)
copy/Y %PORTABLE_DIR%\license.txt %DISTDIR%\license.txt
rem ================================================================
echo %time%
rem compression + include auto_extract in GUI mode
if "%INSTALLER_OPTION%"==".exe" (
"%SEVENZIP_EXE%" -mx5 a "%MyBinaryOutputDir%\%OutputBaseFilename%.exe" %DISTDIR% -sfx7z.sfx
echo autoextract using command line options
echo "%MyBinaryOutputDir%\%OutputBaseFilename%.exe" -y -o%MyBinaryOutputDir%\zz > NUL
)
if "%INSTALLER_OPTION%"==".7z" (
"%SEVENZIP_EXE%" -mx5 a "%MyBinaryOutputDir%\%OutputBaseFilename%.7z" %DISTDIR%
echo no autoextract
)
if "%INSTALLER_OPTION%"==".zip" (
"%SEVENZIP_EXE%" -tzip -mx5 a "%MyBinaryOutputDir%\%OutputBaseFilename%.zip" %DISTDIR%
echo no autoextract
)
rem -mx1 = speed fastest
rem -mx3 = speed fast
rem -mx5 = speed normal
rem -mx7 = compress maximum
rem -mx9 = compress ultra
rem -t7z = [by default] 7 zip compression , the only choice with auto-extract
rem -tzip = Zip compatible compression.