104 Commits

Author SHA1 Message Date
Graham Pugh
55e6345d5c ventura catalog 2022-10-24 23:49:53 +01:00
Graham Pugh
ed6654e778 switch to pkg_resources 2022-03-09 19:25:36 +01:00
Graham Pugh
8b2f2c58b9 Allow for removal of distutils in a future python 2022-03-08 15:11:59 +01:00
Graham Pugh
820b02c575 Merge branch 'main' of https://github.com/munki/macadmin-scripts into munki-main 2022-02-04 19:35:15 +01:00
Graham Pugh
f97e262faf add catalog override option 2022-02-03 07:43:44 +01:00
Greg Neagle
35c8065038 update copyright dates 2022-02-01 14:13:28 -08:00
Greg Neagle
7c6621ec3e Prep for removal of Apple Python in macOS 12.3:
- Change shebang to #!/usr/bin/env python
  - Print error and possible fix if xattr module is not available
2022-02-01 14:11:14 -08:00
Graham Pugh
e2d5ee2e2c add macOS 12 catalog 2021-10-24 16:14:42 +02:00
Greg Neagle
71779ab25d
Update installinstallmacos.py
Update Big Sur catalog to the one Apple seems to be actually using
2021-10-21 14:32:31 -07:00
Erik Gomez
9fca3a252d
add monterey sucatalog (#99) 2021-10-21 14:31:07 -07:00
Graham Pugh
627a9f3133 Update to work on Monterey 2021-10-02 00:31:08 +02:00
Graham R Pugh
7fdc8064fb remove special characters 2021-04-18 14:46:22 +02:00
Graham R Pugh
ccb56e4443 Merge branch 'main' of https://github.com/munki/macadmin-scripts into munki-main 2021-03-10 11:47:42 +01:00
Craig Davison
03ef2ba0fe
Fix HTTP resume (#84)
* Fix HTTP resume

* Handle error 416 when resuming complete file

* Line break for comment

* Fix logic

* ensure err.output is digits

* amend comment

* Support retry on error 412
2021-02-15 17:14:52 -08:00
Graham R Pugh
f6df69e847 now obtains Apple Silicon Device IDs. 2020-12-15 00:06:09 +01:00
Graham R Pugh
660134e0e5 Fix for os comparisons where none is given in the softwarecatalog 2020-12-10 14:46:58 +01:00
Graham R Pugh
202b59d7f2 --os flag now treats 10.x or 11+ as major versions 2020-12-06 18:39:59 +01:00
Graham R Pugh
f18e98aebc update for beta macOS installers using the --pkg option 2020-11-23 14:03:16 +01:00
Graham R Pugh
2e4431e889 add --pkg option 2020-11-18 23:23:23 +01:00
Greg Neagle
8b4287d7b4 Add _a_ Big Sur sucatalog to the list of DEFAULT_SUCATALOGS 2020-11-12 10:44:00 -08:00
Graham R Pugh
9f72d0c8e6 Big Sur readiness 2020-11-06 16:05:42 +01:00
Graham Pugh
1daeca0e44
Merge pull request #26 from munki/main
Add --compressed flag only if URL does not end in .gz. Addresses #68
2020-09-25 23:52:50 +02:00
Greg Neagle
4d2643f796 Add --compressed flag only if URL does not end in .gz. Addresses #68 2020-09-25 14:30:03 -07:00
Graham Pugh
807c99077f Merge branch 'main' of https://github.com/munki/macadmin-scripts into munki-main 2020-09-24 09:52:18 +02:00
Greg Neagle
b950e9d70a Merge branch 'main' of https://github.com/munki/macadmin-scripts into main 2020-09-23 16:52:39 -07:00
Greg Neagle
13fb28cdc8 Add --compress to curl call and hope Apple doesn't decide to violate more HTTP standards. 2020-09-23 16:52:24 -07:00
Greg Neagle
96b8430d4a
Fix bad variable name when checking for privacy-protected directories 2020-09-18 13:55:55 -07:00
Graham R Pugh
42b1840843 fix upstream error 2020-09-18 21:51:29 +01:00
Graham Pugh
73e447c451
Merge pull request #20 from munki/main
Pulls @natewalck 's upstream changes into this fork
2020-09-18 21:45:32 +01:00
Nate Walck
e59d8b84cb
Add check for running from current user directory and bail with warning (#65)
* Add check for running from special dirs that apple thinks need approval and warn
2020-09-18 13:41:31 -07:00
Graham R Pugh
5e6c1bde60 decide device and model lines 2020-08-18 15:15:08 +02:00
Graham R Pugh
445e8054e1 decode board ids line 2020-08-18 15:13:59 +02:00
Graham R Pugh
1283058653 Add test for remotectl command for older Macs 2020-08-18 15:00:53 +02:00
Graham R Pugh
9a53656ebf syntax 2020-08-06 21:07:06 +02:00
Graham R Pugh
92b0bd8f8f suppress stderr - second attempt 2020-08-06 21:06:23 +02:00
Graham R Pugh
0253fc94bd don't output from remotectl 2020-08-06 21:01:41 +02:00
Graham R Pugh
8fd38329d7 don't error if no device id 2020-08-06 20:57:48 +02:00
Graham R Pugh
f8cdedd509 Add search for DeviceID because UnsupportedModels is absent from macOS 11.* dist files 2020-08-06 14:04:45 +02:00
Graham R Pugh
278f2fa889 minor change to output when choosing invalud os or version 2020-08-05 11:25:48 +02:00
Graham R Pugh
b90cdda765 if --beta is chosen, do not validate build before downloading 2020-08-05 11:22:18 +02:00
Graham R Pugh
70fda7b098 New --warnings option, Notes not shown without this flag 2020-07-31 14:09:04 +02:00
Graham R Pugh
701bdbe3f2 fix a pylint issue with plistlib 2020-07-31 13:45:05 +02:00
Graham R Pugh
c249079df9 Allow for missing metadata in Big Sur betas 2020-07-31 13:32:36 +02:00
Graham R Pugh
3a1cbeb736 Add ability to clear working directory to solve aborted downloads causing problems 2020-06-23 14:58:45 +02:00
Graham R Pugh
5ad04b759f Merge branch 'main' of https://github.com/munki/macadmin-scripts into munki-main 2020-06-23 14:09:31 +02:00
Greg Neagle
409ea6c9a9 Properly parse sucatalogs for Big Sur beta installer 2020-06-22 16:25:01 -07:00
Greg Neagle
9f9ec905e8 Catch IOError exception when trying to read the SeedCatalogs.plist; print any errors around SeedCatalogs.plist access to stderr. 2020-05-28 07:56:51 -07:00
Greg Neagle
d4860447b3 Bump sparseimage size to 16g; eliminate extra whitespace 2020-05-27 11:07:29 -07:00
Graham R Pugh
5f9b7436c4 python 3 compatibility fixes 2020-05-06 17:15:41 +02:00
Graham R Pugh
275432a070 Add renew and newer_than_version options 2020-05-06 10:21:53 +02:00