1756 Commits

Author SHA1 Message Date
Elliot Jordan 2eff0b31ba Merge pull request #956 from eltociear/patch-1
chore: update autopkg
2024-11-05 07:28:32 -08:00
Ikko Eltociear Ashimine c13c1af34f chore: update autopkg
infomation -> information
2024-11-05 18:09:54 +09:00
Elliot Jordan 8a12727820 Bumping to v2.7.4 for development. 2024-05-15 16:53:02 -07:00
Elliot Jordan 2d14111b20 Release version 2.7.3. v2.7.3 2024-05-15 16:44:08 -07:00
Elliot Jordan 1cadd66f88 Reset for 2.7.3 release attempt 2024-05-15 16:43:03 -07:00
Elliot Jordan 42d542871b Release version 2.7.3. 2024-05-15 16:36:05 -07:00
Elliot Jordan 26f9d7e422 Merge pull request #940 from autopkg/change-log
Update changelog for 2.7.3 release
2024-05-14 22:00:32 -07:00
Elliot Jordan 120d8de9ea Update changelog for 2.7.3 release 2024-05-14 21:59:15 -07:00
Elliot Jordan 9f4ea8bcc2 Merge pull request #939 from pyther/master
Fix curl command error in URLDownloader.prefetch_filename()
2024-05-14 21:39:31 -07:00
Matthew Gyurgyik f687246db8 Fix curl command error in URLDownloader.prefetch_filename()
Previously, combining '--head' and '--request GET' allowed curl to perform a
GET request and stop after receiving the headers. This workaround was added to
handle servers that return HTTP Forbidden or incorrect headers for a HEAD
request. However, with the update to curl 8.6.0 on macOS 14.5, this
combination results in an error ("curl: (8) Weird server reply").
2024-05-14 16:20:54 -04:00
Nick McSpadden f83428ebe0 Merge pull request #937 from jazzace/jazzace-typofix
Fix typo in find_processor_info description
2024-04-09 13:25:52 -07:00
Anthony Reimer bc6716a526 Fix typo in find_processor_info description
The word "processor" in the description for find_processor_info is short one "s"
2024-04-09 11:57:39 -06:00
Nick McSpadden 126f90f7c6 Moving pyobjc to 9.2 v2.8.1RC3 2023-07-27 12:11:58 -07:00
Nick McSpadden 1e5efe1ae0 Updating PyYAML to 6.0.1 2023-07-27 12:11:51 -07:00
Nick McSpadden aed495d88d Updating isort 2023-07-27 12:11:40 -07:00
Nick McSpadden 3f0918b7e3 Remove outdated toml from requirements 2023-07-27 12:11:31 -07:00
dependabot[bot] 412a7cf016 Bump certifi from 2022.12.7 to 2023.7.22
Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.12.7 to 2023.7.22.
- [Commits](https://github.com/certifi/python-certifi/compare/2022.12.07...2023.07.22)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-27 12:11:20 -07:00
Nick McSpadden 2c3290f29d Fixing PkgCopier test 2023-07-27 12:11:06 -07:00
Nick McSpadden a1e97a2e52 Changing order of tests to run macOS first 2023-07-27 11:56:21 -07:00
Nick McSpadden cbabce35db Updating tests workflow to use dev branch for PRs 2023-07-27 11:56:13 -07:00
Nick McSpadden 25faad4d11 Merge pull request #848 from autopkg/dependabot/pip/certifi-2022.12.7
Bump certifi from 2021.10.8 to 2022.12.7
2023-06-20 09:51:53 -07:00
dependabot[bot] 6bee8b07ba Bump certifi from 2021.10.8 to 2022.12.7
Bumps [certifi](https://github.com/certifi/python-certifi) from 2021.10.8 to 2022.12.7.
- [Release notes](https://github.com/certifi/python-certifi/releases)
- [Commits](https://github.com/certifi/python-certifi/compare/2021.10.08...2022.12.07)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 06:59:16 +00:00
Greg Neagle 62992bb0aa Update CHANGELOG.md 2022-12-07 08:55:17 -08:00
Greg Neagle ace4470dbb Bumping to v2.7.3 for development. 2022-12-07 08:46:00 -08:00
Greg Neagle b728f7984a Release version 2.7.2. v2.7.2 2022-12-07 08:37:24 -08:00
Elliot Jordan 594e6e2991 Redesign SparkleUpdateInfoProvider channel support (#845)
* Redesign SparkleUpdateInfoProvider channel support

Follow up to #834

* Remove unneeded version instantiation

* Strip leading/trailing space from feed items' values
2022-12-07 08:14:38 -08:00
Greg Neagle 5681ff5076 Update CHANGELOG.md 2022-12-06 15:05:08 -08:00
Greg Neagle 11148b2e01 Update CHANGELOG.md 2022-12-06 12:11:57 -08:00
Greg Neagle 0e92310e9f Bumping to v2.7.2 for development. 2022-12-06 12:08:01 -08:00
Greg Neagle 3607f08491 Release version 2.7.1. v2.7.1 2022-12-06 12:00:46 -08:00
Greg Neagle fa090400c3 Add missing semi-colon in new_requirements.txt 2022-12-06 11:26:15 -08:00
Greg Neagle 09e8e6f691 Revert xattr version to 0.9.7 2022-12-06 11:19:28 -08:00
Greg Neagle 1da5dd9ca6 Update changelog 2022-12-06 10:13:26 -08:00
Greg Neagle 7017c34d58 Update GitHubReleasesInfoProvider.py (#846) 2022-12-06 07:53:49 -08:00
Nick McSpadden 62cb6c52dd Update gitignore 2022-11-28 13:29:42 -08:00
Elliot Jordan 8fa4a6689a Automatically rebuild processor wiki pages upon creation of new GitHub tags (#844)
* Raise specific import errors

* Enable non-interactive script run

* Add note about processor docs generation

* Rebuild processor docs upon new tag creation

* Support using existing clone (for GH actions workflow)
2022-11-26 12:55:13 -08:00
Elliot Jordan ec3120ff5e Remove unused import 2022-11-23 19:42:15 -08:00
Elliot Jordan 38c696ff9b Version and shortVersionString can be in either item or enclosure
Closes #841
2022-11-23 19:09:36 -08:00
github-actions 2f21ae41a9 pre-commit auto fixes 2022-11-23 22:55:43 +00:00
Elliot Jordan 9c38c1d6da Merge pull request #834 from macmule/master
Update SparkleUpdateInfoProvider.py to support channels
2022-11-23 14:54:57 -08:00
Elliot Jordan fef2420064 Merge pull request #842 from autopkg/master
Autopkginstalld fix (#838)
2022-11-21 16:50:29 -08:00
Greg Neagle 2007b522bd Autopkginstalld fix (#838)
* Fix conditional imports of launchd code that broke under macOS 11.0 (and later)

* Fix for minor installer output 'quirk' (at least under macOS 13)
2022-11-21 14:22:02 -08:00
Nick McSpadden 1189c4e509 Merge pull request #837 from homebysix/flake8
Update pre-commit config, including new flake8 repo URL
2022-11-16 10:25:28 -08:00
Elliot Jordan 3491df2ff4 Update pre-commit config, including new flake8 repo URL 2022-11-16 09:37:47 -08:00
macmule 716dcea472 Update SparkleUpdateInfoProvider.py to support channels
Channels is a Sparkle v2 feature which allows for differing channels to be offered within AppCasts, such as a beta channel (see: https://sparkle-project.org/documentation/publishing/#publishing-an-update).

This PR adds a new input_variable to the SparkleUpdateInfoProvider processor, `update_channel`.

When a value for `update_channel` is specified, each channel/item block is searched for the sparkle:channel element. If this exists and has the same value as what has been passed to the `update_channel` input_variable, this channel/item block is used to get the needed data via the same method as before this PR.

If the channel/item block does not have a channel defined, or it's does and it's not the same value as what has been passed to the `update_channel` input_variable, the channel/item block is skipped.

If no value has been passed  to the `update_channel` input_variable, then no change to behaviour from before.

Examples:

No  value has passed  to the `update_channel` input_variable:

```Processing /Users/ben/Git/other/dataJAR-recipes/Munki Catalog Browser/Munki Catalog Browser.download.recipe...
WARNING: /Users/ben/Git/other/dataJAR-recipes/Munki Catalog Browser/Munki Catalog Browser.download.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
SparkleUpdateInfoProvider
{'Input': {'appcast_url': 'https://raw.githubusercontent.com/dataJAR/Munki-Catalog-Browser/appcast/appcast.xml'}}
SparkleUpdateInfoProvider: Version retrieved from appcast: 70
SparkleUpdateInfoProvider: Found URL https://github.com/dataJAR/Munki-Catalog-Browser/releases/download/1.2.1/Munki.Catalog.Browser.zip
{'Output': {'url': 'https://github.com/dataJAR/Munki-Catalog-Browser/releases/download/1.2.1/Munki.Catalog.Browser.zip',
            'version': '70'}}```

With a value of "beta" being passed to the `update_channel` input_variable:

```Processing /Users/ben/Git/other/dataJAR-recipes/Munki Catalog Browser/Munki Catalog Browser.download.recipe...
WARNING: /Users/ben/Git/other/dataJAR-recipes/Munki Catalog Browser/Munki Catalog Browser.download.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
SparkleUpdateInfoProvider
{'Input': {'appcast_url': 'https://raw.githubusercontent.com/dataJAR/Munki-Catalog-Browser/appcast/appcast.xml',
           'update_channel': 'beta'}}
SparkleUpdateInfoProvider: Version retrieved from appcast: 70
SparkleUpdateInfoProvider: Found URL https://github.com/dataJAR/Munki-Catalog-Browser/releases/download/1.2.1/Munki.Catalog.Browser.zip
{'Output': {'url': 'https://github.com/dataJAR/Munki-Catalog-Browser/releases/download/1.2.1/Munki.Catalog.Browser.zip',
            'version': '70'}}```

With a value of being passed to the `update_channel` input_variable which doesn't have a matching channel:

```WARNING: /Users/ben/Git/other/dataJAR-recipes/Munki Catalog Browser/Munki Catalog Browser.download.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
SparkleUpdateInfoProvider
{'Input': {'appcast_url': 'https://raw.githubusercontent.com/dataJAR/Munki-Catalog-Browser/appcast/appcast.xml',
           'update_channel': 'example'}}
Could not obtain valid data from appcast feed.
Failed.
Receipt written to /Users/ben/Library/AutoPkg/Cache/com.github.dataJAR-recipes.download.MunkiCatalogBrowser/receipts/Munki Catalog Browser.download-receipt-20221026-114142.plist

The following recipes failed:
    /Users/ben/Git/other/dataJAR-recipes/Munki Catalog Browser/Munki Catalog Browser.download.recipe
        Error in com.github.dataJAR-recipes.download.MunkiCatalogBrowser: Processor: SparkleUpdateInfoProvider: Error: Could not obtain valid data from appcast feed.```

Example AppCast feed: https://github.com/dataJAR/Munki-Catalog-Browser/blob/appcast/appcast.xml
2022-10-26 11:42:09 +01:00
Nick McSpadden d2764754bb Merge pull request #833 from jgstew/patch-8
remove version pin of certifi to allow newer Root CAs
2022-10-19 11:11:41 -07:00
JGStew 48413a6f87 Update gh_actions_requirements.txt 2022-10-19 13:51:48 -04:00
Nick McSpadden e445ce7aeb MunkiOptionalReceiptEditor now behaves as before 2022-09-24 12:23:32 -07:00
JGStew addccbbf74 Fix GitHubInfoReleasesProvider on Windows in case of non-ascii characters (#783)
* Update __init__.py

This should resolve https://github.com/autopkg/autopkg/pull/764

* Update __init__.py

fix exception catching

* Update __init__.py

rearrange the default assignment.

* Update __init__.py

* add test action

* remove run of test recipe that exists only in my other repo

* remove wrong trigger file, add requirements.txt

* add github token

* Update TestGitHubReleasesInfoProvider.yaml

update test action to use newer requirements file
2022-09-24 12:23:32 -07:00
Graham Pugh d8b4d78b3f When "ditto" fails to extract an archive in PkgPayloadUnpacker, use "aa" if present (#804)
* Use aa if ditto fails

* indenting error

* better handling of errors

* remove commented out test

Co-authored-by: Graham Pugh <noemail@itscdgpmacmini>
2022-09-24 12:23:32 -07:00