Github.ahk - additional functions for downloading from the github API, as well as version data

Post your working scripts, libraries and tools for AHK v1.1 and older
sashaatx
Posts: 342
Joined: 27 May 2021, 08:27
Contact:

Github.ahk - additional functions for downloading from the github API, as well as version data

Post by sashaatx » 10 Mar 2023, 13:19

Quick function list:
Version := GitGetVersion(Username,Repo)
Asset := GitGetAsset(Username,Repo)
ReleaseUrl := GitGetReleaseUrl(Username,Repo)
UpdateDetails := GitGetUpdateDetails(Username,Repo)
msgbox % GitDownload("samfisherirl","github.ahk", Path) ; download the latest release


https://github.com/samfisherirl/github.ahk

There's still object based usage, found in the description of the repo.

Code: Select all

#include json.ahk
#include github.ahk
;using this url as an example
;https://github.com/samfisherirl/github.ahk

path := A_Desktop

Username := "samfisherirl"
Repo := "github.ahk"

Version := GitGetVersion(Username,Repo)
Asset := GitGetAsset(Username,Repo)
ReleaseUrl := GitGetReleaseUrl(Username,Repo)
UpdateDetails := GitGetUpdateDetails(Username,Repo)

message=
(
Below are details about the requested:
    - The current version is %version% 
        (great for apps that need to check for updates)
    - The release file is %asset%
    - The download link is %releaseurl%

    - The details of the update changes are:
        %UpdateDetails%
)

msgbox, %message%


GitDownload("samfisherirl","github.ahk", Path)
msgbox, Download Finished!
https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :

Return to “Scripts and Functions (v1)”