mirror of
https://github.com/timsutton/brigadier.git
synced 2025-05-21 02:35:29 -04:00
Add --version option
- bump version to 0.2.5 - update Windows build script with reference to newer PyInstaller
This commit is contained in:
parent
a66ade95a9
commit
62ed4c71a6
3 changed files with 16 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
0.2.4
|
0.2.5
|
||||||
|
|
|
@ -16,6 +16,7 @@ from pprint import pprint
|
||||||
from urllib import urlretrieve
|
from urllib import urlretrieve
|
||||||
from xml.dom import minidom
|
from xml.dom import minidom
|
||||||
|
|
||||||
|
VERSION = '0.2.5'
|
||||||
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'
|
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'
|
||||||
# 7-Zip MSI (15.14)
|
# 7-Zip MSI (15.14)
|
||||||
SEVENZIP_URL = 'https://www.7-zip.org/a/7z2201-x64.msi'
|
SEVENZIP_URL = 'https://www.7-zip.org/a/7z2201-x64.msi'
|
||||||
|
@ -131,8 +132,14 @@ product, ie. 'BootCamp-041-1234'. Uses the current directory if this option is o
|
||||||
help="Specify an exact product ID to download (ie. '031-0787'), currently useful only for cases \
|
help="Specify an exact product ID to download (ie. '031-0787'), currently useful only for cases \
|
||||||
where a model has multiple BootCamp ESDs available and is not downloading the desired version \
|
where a model has multiple BootCamp ESDs available and is not downloading the desired version \
|
||||||
according to the post date.")
|
according to the post date.")
|
||||||
|
o.add_option('-V', '--version', action="store_true",
|
||||||
|
help="Output the version of brigadier.")
|
||||||
|
|
||||||
opts, args = o.parse_args()
|
opts, args = o.parse_args()
|
||||||
|
if opts.version:
|
||||||
|
print VERSION
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
if opts.install:
|
if opts.install:
|
||||||
if platform.system() == 'Darwin':
|
if platform.system() == 'Darwin':
|
||||||
sys.exit("Installing Boot Camp can only be done on Windows!")
|
sys.exit("Installing Boot Camp can only be done on Windows!")
|
||||||
|
|
|
@ -6,6 +6,13 @@
|
||||||
# Requires:
|
# Requires:
|
||||||
# - Python 2.7 for Windows (http://www.python.org/getit)
|
# - Python 2.7 for Windows (http://www.python.org/getit)
|
||||||
# - pywin32 (http://sourceforge.net/projects/pywin32)
|
# - pywin32 (http://sourceforge.net/projects/pywin32)
|
||||||
|
#
|
||||||
|
# Note (2022-11-07): This script needs to be overhauled to instead
|
||||||
|
# just use a virtualenv. PyInstaller 3.6 needs pywin32-ctypes, and
|
||||||
|
# also to pass a .spec file into pyinstaller, so that the exe contains
|
||||||
|
# more metadata and version info. As-is the script doesn't currently
|
||||||
|
# work, and I've just bumped the PyInstaller version to 3.6 as a reminder
|
||||||
|
# that this is the last version that is still compatible with Python 2.7.
|
||||||
|
|
||||||
import urllib
|
import urllib
|
||||||
import os
|
import os
|
||||||
|
@ -14,7 +21,7 @@ import subprocess
|
||||||
import shutil
|
import shutil
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|
||||||
PYINSTALLER_URL = 'https://pypi.python.org/packages/source/P/PyInstaller/PyInstaller-2.1.zip'
|
PYINSTALLER_URL = 'https://github.com/pyinstaller/pyinstaller/archive/refs/tags/v3.6.zip'
|
||||||
PYINST_ZIPFILE = os.path.join(os.getcwd(), 'pyinstaller.zip')
|
PYINST_ZIPFILE = os.path.join(os.getcwd(), 'pyinstaller.zip')
|
||||||
NAME = 'brigadier'
|
NAME = 'brigadier'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue