Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change parent recipe of Anki.pkg #98

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

homebysix
Copy link
Member

This PR switches the parent recipe of Anki.pkg to the hansen-m download recipe, and deprecates the download recipe in this repo.

Verbose recipe run output:

% autopkg run -vvq Anki.pkg.recipe
Processing Anki.pkg.recipe...
WARNING: Anki.pkg.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
GitHubReleasesInfoProvider
{'Input': {'asset_regex': '.*apple.*', 'github_repo': 'ankitects/anki'}}
GitHubReleasesInfoProvider: No value supplied for CURL_PATH, setting default value of: /usr/bin/curl
GitHubReleasesInfoProvider: No value supplied for GITHUB_URL, setting default value of: https://api.github.com
GitHubReleasesInfoProvider: No value supplied for GITHUB_TOKEN_PATH, setting default value of: ~/.autopkg_gh_token
GitHubReleasesInfoProvider: Matched regex '.*apple.*' among asset(s): anki-24.11-checksums.txt, anki-24.11-linux-qt5.tar.zst, anki-24.11-linux-qt6.tar.zst, anki-24.11-mac-apple-qt6.dmg, anki-24.11-mac-intel-qt5.dmg, anki-24.11-mac-intel-qt6.dmg, anki-24.11-windows-qt5.exe, anki-24.11-windows-qt6.exe
GitHubReleasesInfoProvider: Selected asset 'anki-24.11-mac-apple-qt6.dmg' from release '24.11'
{'Output': {'asset_created_at': '2024-11-26T13:55:16Z',
            'asset_url': 'https://api.github.com/repos/ankitects/anki/releases/assets/209182950',
            'release_notes': "## What's Changed\r\n"
                             '\r\n'
                             '### Compatibility\r\n'
                             '\r\n'
                             '- The Linux package now requires glibc 2.31+ '
                             '(2019 Ubuntu/Fedora, and 2021 Debian).\r\n'
                             '- The Qt5 builds are no longer linked from the '
                             'website, and will be [dropped in the next '
                             'release](https://github.com/ankitects/anki/issues/3615).\r\n'
                             '\r\n'
                             '### New Features\r\n'
                             '\r\n'
                             '#### FSRS\r\n'
                             '\r\n'
                             'FSRS has received significant changes in this '
                             'release, and should be even more\r\n'
                             'efficient. It is recommended that you optimize '
                             'your presets after updating.\r\n'
                             '\r\n'
                             'To avoid errors on older clients, updated '
                             'parameters will only be visible to\r\n'
                             'Anki releases from 24.11 on. Older clients will '
                             'continue to work, but may\r\n'
                             'give you different scheduling results when '
                             'reviews are done on them.\r\n'
                             '\r\n'
                             'By @L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3298.\r\n'
                             '\r\n'
                             'Other new features:\r\n'
                             '\r\n'
                             '* Add FSRS simulator to deck options by '
                             '@L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3257\r\n'
                             '* Add forgetting curve to card info by '
                             '@L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3437\r\n'
                             '* Let FSRS control short term schedule when no '
                             '(re)learning steps are set. This is '
                             'experimental. By @L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3375 and '
                             'https://github.com/ankitects/anki/pull/3505 and '
                             'https://github.com/ankitects/anki/pull/3367\r\n'
                             '\r\n'
                             '#### Scheduling\r\n'
                             '\r\n'
                             '* Load balancing: within your fuzz range, Anki '
                             'will now try to pick days that have fewer '
                             'reviews waiting. By @jakeprobst in '
                             'https://github.com/ankitects/anki/pull/3230. \r\n'
                             '* Easy days: you can now tell Anki to try avoid '
                             'certain days of the week. By @L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3442\r\n'
                             '* Decks can now be sorted by descending '
                             'retrievability. Simulations have shown this is a '
                             'better choice\r\n'
                             'when you have a backlog, and this sort order is '
                             'likely to become the default in the future.\r\n'
                             '\r\n'
                             '\r\n'
                             '#### Stats/Graphs\r\n'
                             '\r\n'
                             '* Add true retention stats by @L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3425\r\n'
                             '* Estimated total knowledge by note, and daily '
                             'load by @L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3507\r\n'
                             '\r\n'
                             '#### Other Features\r\n'
                             '\r\n'
                             '* Add "open image" option to editor by @user1823 '
                             'in '
                             'https://github.com/ankitects/anki/pull/3431\r\n'
                             '* Add an option to show image from editor in '
                             'folder by @user1823 in '
                             'https://github.com/ankitects/anki/pull/3412\r\n'
                             '* Add card position column and always show '
                             'position in card info by @taylorobyen in '
                             'https://github.com/ankitects/anki/pull/3471\r\n'
                             '* Add option for toggling update checks by '
                             '@voczi in '
                             'https://github.com/ankitects/anki/pull/3346\r\n'
                             '* Add revert to backup option to file menu by '
                             '@taylorobyen in '
                             'https://github.com/ankitects/anki/pull/3434\r\n'
                             '* Empty Cards can now be undone by '
                             '@Arthur-Milchior in '
                             'https://github.com/ankitects/anki/pull/3386\r\n'
                             '* If deck options are modified, ask before '
                             'closing by @Arthur-Milchior in '
                             'https://github.com/ankitects/anki/pull/3410\r\n'
                             '* Integrate AnkiHub Sign-in into the preferences '
                             'screen by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3232. \r\n'
                             '* Support {{type:nc:...}} to ignore combining '
                             'characters by @twwn in '
                             'https://github.com/ankitects/anki/pull/3422\r\n'
                             '\r\n'
                             '### Other Changes\r\n'
                             '\r\n'
                             'This is not a comprehensive list; a big thank '
                             'you also to people who have contributed\r\n'
                             'things like behind-the-scenes improvements, and '
                             'fixes to regressions that occurred during\r\n'
                             'development.\r\n'
                             '\r\n'
                             '* Allow maximizing the notetypes screen by '
                             '@cdonat2 in '
                             'https://github.com/ankitects/anki/pull/3328\r\n'
                             '* Apply fuzz to SM2 lapse interval and respect '
                             'max ivl by @user1823 in '
                             'https://github.com/ankitects/anki/pull/3275\r\n'
                             '* Do not show warning if Browser Appearance has '
                             'no field references by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3566\r\n'
                             '* Do not strip quotation marks from deck/tag '
                             'names by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3407\r\n'
                             "* Don't exclude suspended cards when updating "
                             'all FSRS params.\r\n'
                             "* Don't hide text when hiding I/O masks by "
                             '@escribapetrus in '
                             'https://github.com/ankitects/anki/pull/3277\r\n'
                             "* Don't ignore buried cards in future due graph "
                             'by @jakeprobst in '
                             'https://github.com/ankitects/anki/pull/3368\r\n'
                             '* Ensure profile name is treated in a '
                             'case-insensitive manner by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3372\r\n'
                             '* Escape special search characters in preset '
                             'name by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3554\r\n'
                             '* Exclude new cards from Future Due stats by '
                             '@user1823 in '
                             'https://github.com/ankitects/anki/pull/3576\r\n'
                             '* Fix .DS_Store file shown as an unused media '
                             'file by @bpnguyen107 in '
                             'https://github.com/ankitects/anki/pull/3380\r\n'
                             "* Fix 'NoneType object is not subscriptable' "
                             'error by @davidculley in '
                             'https://github.com/ankitects/anki/pull/3286\r\n'
                             '* Fix bug with “A 100 day interval will become X '
                             'days.” by @bpnguyen107 in '
                             'https://github.com/ankitects/anki/pull/3432\r\n'
                             '* Fix editor loses focus when toggling list if '
                             'list item empty by @cy7sh in '
                             'https://github.com/ankitects/anki/pull/3483\r\n'
                             '* Fix editor losing focus when toggling list and '
                             'copy selects wrong target deck for filtered '
                             'decks by @singurty in '
                             'https://github.com/ankitects/anki/pull/3465\r\n'
                             '* Fix error when exporting from empty cards '
                             'screen\r\n'
                             '* Fix field focus lost when pressing alt in the '
                             'editor by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3378\r\n'
                             '* Fix FSRS progress sometime shows 0 reviews by '
                             '@L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3591\r\n'
                             '* Fix FSRS progress update issues by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3420\r\n'
                             '* Fix graph averages by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3406\r\n'
                             '* Fix imports of decks with file paths using '
                             'special URL characters by @themis-d in '
                             'https://github.com/ankitects/anki/pull/3377\r\n'
                             '* Fix inconsistent retrievability calculations '
                             'between normal/filtered decks and '
                             'display/sorting by @L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3582\r\n'
                             '* Fix incorrect canvas bounds calculations in '
                             'image occlusion by @taylorobyen in '
                             'https://github.com/ankitects/anki/pull/3457\r\n'
                             '* Fix invalid preset search matching cards in '
                             'filtered decks\r\n'
                             '* Fix minimum interval warning shown when FSRS '
                             'is enabled by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3409\r\n'
                             '* Fix Mnemosyne importer choking on due dates >= '
                             '2038 by @bpnguyen107 in '
                             'https://github.com/ankitects/anki/pull/3459\r\n'
                             '* Fix reschedule not working on cards in '
                             'filtered deck by @L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3441\r\n'
                             '* Fix setting tags column to first unmapped '
                             'column in CSV importer by @RumovZ in '
                             'https://github.com/ankitects/anki/pull/3568\r\n'
                             '* Fix UI hanging when update check stalls\r\n'
                             '* Fix unused parent tags getting cleared by '
                             '@abdnh in '
                             'https://github.com/ankitects/anki/pull/3299\r\n'
                             '* Hide right click copy option in deck list by '
                             '@bpnguyen107 in '
                             'https://github.com/ankitects/anki/pull/3363\r\n'
                             '* Improve the accessibility of the Preferences '
                             'dialog by @RastislavKish in '
                             'https://github.com/ankitects/anki/pull/3255\r\n'
                             '* Include backlog cards in today in future due '
                             'graph by @jakeprobst in '
                             'https://github.com/ankitects/anki/pull/3379\r\n'
                             '* More closely match performance of Python FSRS '
                             'optimizer by @L-M-Sherlock in '
                             'https://github.com/ankitects/anki/pull/3540\r\n'
                             '* Remove legacy import option by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3536\r\n'
                             '* Stop automatically adding Image Occlusion type '
                             'in Add screen by @abdnh in '
                             'https://github.com/ankitects/anki/pull/3408\r\n'
                             '* Truncate in the middle of a deck name in the '
                             'browse screen, not the end by @bpnguyen107 in '
                             '#3387 \r\n'
                             '\r\n'
                             '\r\n'
                             '\r\n'
                             '## New Contributors\r\n'
                             '* @RastislavKish made their first contribution '
                             'in '
                             'https://github.com/ankitects/anki/pull/3255\r\n'
                             '* @davidculley made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3293\r\n'
                             '* @isym444 made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3284\r\n'
                             '* @brishtibheja made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3288\r\n'
                             '* @Expertium made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3314\r\n'
                             '* @cdonat2 made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3328\r\n'
                             '* @asukaminato0721 made their first contribution '
                             'in '
                             'https://github.com/ankitects/anki/pull/3330\r\n'
                             '* @DillBal made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3345\r\n'
                             '* @bpnguyen107 made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3356\r\n'
                             '* @jakeprobst made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3230\r\n'
                             '* @themis-d made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3377\r\n'
                             '* @gregorylearns made their first contribution '
                             'in '
                             'https://github.com/ankitects/anki/pull/3399\r\n'
                             '* @taylorobyen made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3404\r\n'
                             '* @lukesbart made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3398\r\n'
                             '* @krischerven made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3413\r\n'
                             '* @cy7sh made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3465\r\n'
                             '* @phu54321 made their first contribution in '
                             'https://github.com/ankitects/anki/pull/3467\r\n'
                             '* @lima-limon-inc made their first contribution '
                             'in '
                             'https://github.com/ankitects/anki/pull/3485\r\n'
                             '\r\n'
                             '**Full Changelog**: '
                             'https://github.com/ankitects/anki/compare/24.06.3...24.11',
            'url': 'https://github.com/ankitects/anki/releases/download/24.11/anki-24.11-mac-apple-qt6.dmg',
            'version': '24.11'}}
URLDownloader
{'Input': {'filename': 'Anki.dmg',
           'url': 'https://github.com/ankitects/anki/releases/download/24.11/anki-24.11-mac-apple-qt6.dmg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Storing new Last-Modified header: Tue, 26 Nov 2024 13:55:51 GMT
URLDownloader: Storing new ETag header: "0x8DD0E2209D6FCDB"
URLDownloader: Downloaded ~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/downloads/Anki.dmg
{'Output': {'download_changed': True,
            'etag': '"0x8DD0E2209D6FCDB"',
            'last_modified': 'Tue, 26 Nov 2024 13:55:51 GMT',
            'pathname': '~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/downloads/Anki.dmg',
            'url_downloader_summary_result': {'data': {'download_path': '~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/downloads/Anki.dmg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'input_path': '~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/downloads/Anki.dmg/Anki.app',
           'requirement': 'identifier "net.ankiweb.dtop" and anchor apple '
                          'generic and certificate '
                          '1[field.1.2.840.113635.100.6.2.6] /* exists */ and '
                          'certificate leaf[field.1.2.840.113635.100.6.1.13] '
                          '/* exists */ and certificate leaf[subject.OU] = '
                          '"7ZM8SLJM4P"'}}
CodeSignatureVerifier: Mounted disk image ~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/downloads/Anki.dmg
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification not defined. Using codesign defaults...
CodeSignatureVerifier: /private/tmp/dmg.FeBSSr/Anki.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.FeBSSr/Anki.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.FeBSSr/Anki.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
{'Output': {}}
AppPkgCreator
{'Input': {'pkg_path': '~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/Anki-24.11.pkg',
           'version': '24.11'}}
AppPkgCreator: Mounted disk image ~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/downloads/Anki.dmg
AppPkgCreator: Using path '/private/tmp/dmg.VY6piN/Anki.app' matched from globbed '/private/tmp/dmg.VY6piN/*.app'.
AppPkgCreator: BundleID: net.ankiweb.dtop
AppPkgCreator: Copied /private/tmp/dmg.VY6piN/Anki.app to ~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/payload/Applications/Anki.app
AppPkgCreator: Connecting
AppPkgCreator: Sending packaging request
AppPkgCreator: Disconnecting
AppPkgCreator: Failed to close socket: [Errno 9] Bad file descriptor
{'Output': {'app_pkg_creator_summary_result': {'data': {'identifier': 'net.ankiweb.dtop',
                                                        'pkg_path': '~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/Anki-24.11.pkg',
                                                        'version': '24.11'},
                                               'report_fields': ['identifier',
                                                                 'version',
                                                                 'pkg_path'],
                                               'summary_text': 'The following '
                                                               'packages were '
                                                               'built:'},
            'new_package_request': True,
            'version': '24.11'}}
Receipt written to ~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/receipts/Anki.pkg-receipt-20241230-181612.plist

The following new items were downloaded:
    Download Path
    -------------
    ~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/downloads/Anki.dmg

The following packages were built:
    Identifier        Version  Pkg Path
    ----------        -------  --------
    net.ankiweb.dtop  24.11    ~/Library/AutoPkg/Cache/com.github.nstrauss.pkg.Anki/Anki-24.11.pkg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant