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

Utility to update FoxGetPackages.dbf #1

Open
DougHennig opened this issue Dec 30, 2023 · 3 comments
Open

Utility to update FoxGetPackages.dbf #1

DougHennig opened this issue Dec 30, 2023 · 3 comments

Comments

@DougHennig
Copy link
Owner

Create a utility that goes through records in FoxGetPackage, downloads the Thor version file for the project, and updates the version number and release date in the record. That saves having to do it manually.

@dmitriychunikhin
Copy link
Contributor

dmitriychunikhin commented Aug 29, 2024

Added github action "Check Packages Version Updates"
https://github.com/dmitriychunikhin/FoxGet/actions/workflows/CPVU.yml

The action runs manually by "Run workflow" button and by schedule "once in an hour"
After update of foxgetpackages.dbf the action commits it to the repository.

Source code: https://github.com/dmitriychunikhin/FoxGet/tree/main/.github/workflows

@DougHennig
Copy link
Owner Author

Added a previous comment from @dmitriychunikhin because it lists the steps:

Link: https://github.com/dmitriychunikhin/FoxGet/tree/cfvu/Source
Files: foxgetpackages.pjx, foxgetpackages.pjt, foxgetpackages.prg
Usage: build and run foxgetpackages.app
What it does:

  1. Downloads foxgetpackages table from github to temp folder
  2. Calls Thor_Proc_GetUpdateList
  3. Iterates over Thor's update list and downloads version files from github
  4. Executes version file and obtains available version
  5. Locates package in foxgetpackages by exact comparing homeurl and thor's update info Link property value
  6. If packages is found it updates version number and pubdate in foxgetpackages.dbf (in temp folder)
  7. Save foxgetpackages.dbf from temp folder into FoxGet/Installers folder

@dmitriychunikhin
Copy link
Contributor

Hi, Doug. Thank you for approving PR.
This CPVU action additionally needs read and write permissions to the repository to be able to update foxgetpackages.dbf

This setting can be found here https://github.com/DougHennig/FoxGet/settings/actions

image

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

No branches or pull requests

2 participants