versionCheck

Performs a version check for a specified resource against a remote version file.

Parameters:

  • script (string): The name of the resource to check

  • link (string): URL to the changelog on github

  • updateLink (string, optional): Download link for updates

Returns:

  • void: Outputs results to console

Example:

-- Basic version check
ps.versionCheck(
    'ps_lib', 
    'https://raw.githubusercontent.com/Project-Sloth/ps_lib/main/version.txt',
    'https://github.com/Project-Sloth/ps_lib/releases'
)

-- Version check without update link
ps.versionCheck(
    'my_script',
    'https://raw.githubusercontent.com/user/my_script/main/version.txt'
)

Remote Version File Format

The remote version file should follow this format:

Newest Build: 1.2.3
- Added new feature X
- Fixed bug Y
- Improved performance Z
- Updated documentation

Format Requirements:

  • Newest Build: followed by version number will be the first line read by script

  • Subsequent lines contain changelog entries

  • Each changelog line will be displayed with proper formatting

Last updated