Skip to content

Commit 90c7eb0

Browse files
authored
Merge pull request #74 from timsutton/update-packaging
Updates for 0.2.5
2 parents fa6d26b + d1361f7 commit 90c7eb0

4 files changed

Lines changed: 24 additions & 3 deletions

File tree

CHANGELIST

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### 0.2.5 (November 7, 2022)
2+
- update 7-Zip to 22.01
3+
- add '-V/--version' option to output the tool version
4+
- update precompiled Windows exe to the last Python 2.7 distribution and
5+
compatible PyInstaller (3.6) version, resolving issues with TLS version
6+
support
7+
18
### 0.2.4 (March 24, 2016)
29
- remove dependency on dmg2iso, as current 7-Zip versions seem to reliably
310
extract all the contents of WindowsSupport.dmg files

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.4
1+
0.2.5

brigadier

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ from pprint import pprint
1616
from urllib import urlretrieve
1717
from xml.dom import minidom
1818

19+
VERSION = '0.2.5'
1920
SUCATALOG_URL = 'https://swscan.apple.com/content/catalogs/others/index-11-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog'
2021
# 7-Zip MSI (15.14)
21-
SEVENZIP_URL = 'http://www.7-zip.org/a/7z1514-x64.msi'
22+
SEVENZIP_URL = 'https://www.7-zip.org/a/7z2201-x64.msi'
2223

2324
def status(msg):
2425
print "%s\n" % msg
@@ -131,8 +132,14 @@ product, ie. 'BootCamp-041-1234'. Uses the current directory if this option is o
131132
help="Specify an exact product ID to download (ie. '031-0787'), currently useful only for cases \
132133
where a model has multiple BootCamp ESDs available and is not downloading the desired version \
133134
according to the post date.")
135+
o.add_option('-V', '--version', action="store_true",
136+
help="Output the version of brigadier.")
134137

135138
opts, args = o.parse_args()
139+
if opts.version:
140+
print VERSION
141+
sys.exit(0)
142+
136143
if opts.install:
137144
if platform.system() == 'Darwin':
138145
sys.exit("Installing Boot Camp can only be done on Windows!")

build_windows_exe.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
# Requires:
77
# - Python 2.7 for Windows (http://www.python.org/getit)
88
# - pywin32 (http://sourceforge.net/projects/pywin32)
9+
#
10+
# Note (2022-11-07): This script needs to be overhauled to instead
11+
# just use a virtualenv. PyInstaller 3.6 needs pywin32-ctypes, and
12+
# also to pass a .spec file into pyinstaller, so that the exe contains
13+
# more metadata and version info. As-is the script doesn't currently
14+
# work, and I've just bumped the PyInstaller version to 3.6 as a reminder
15+
# that this is the last version that is still compatible with Python 2.7.
916

1017
import urllib
1118
import os
@@ -14,7 +21,7 @@
1421
import shutil
1522
import hashlib
1623

17-
PYINSTALLER_URL = 'https://pypi.python.org/packages/source/P/PyInstaller/PyInstaller-2.1.zip'
24+
PYINSTALLER_URL = 'https://github.com/pyinstaller/pyinstaller/archive/refs/tags/v3.6.zip'
1825
PYINST_ZIPFILE = os.path.join(os.getcwd(), 'pyinstaller.zip')
1926
NAME = 'brigadier'
2027

0 commit comments

Comments
 (0)