Update Management: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
Gausie (talk | contribs)
Created the page
 
Gausie (talk | contribs)
m Add update-kolmafia
Line 4: Line 4:
In a Unix shell (Linux, Mac and WSL) as long as you have curl and jq installed this should download and run the latest version.
In a Unix shell (Linux, Mac and WSL) as long as you have curl and jq installed this should download and run the latest version.
  curl -fLsgo kolmafia.jar $(curl -fsg '<nowiki>https://api.github.com/repos/kolmafia/kolmafia/releases/latest'</nowiki> | jq -r '.assets[] | select(.browser_download_url | contains(".jar")).browser_download_url') && java -jar kolmafia.jar
  curl -fLsgo kolmafia.jar $(curl -fsg '<nowiki>https://api.github.com/repos/kolmafia/kolmafia/releases/latest'</nowiki> | jq -r '.assets[] | select(.browser_download_url | contains(".jar")).browser_download_url') && java -jar kolmafia.jar
=== update-kolmafia ===
C2Talon has created an application to download and run the latest KoLmafia with binaries for Windows and Unix-like operating systems
https://github.com/C2Talon/update-kolmafia

Revision as of 08:45, 21 May 2025

New versions of KoLmafia are posted to the GitHub releases page. To manage updates, many members of the community have produced "automatic update" scripts.

Gausie's One-Liner

In a Unix shell (Linux, Mac and WSL) as long as you have curl and jq installed this should download and run the latest version.

curl -fLsgo kolmafia.jar $(curl -fsg 'https://api.github.com/repos/kolmafia/kolmafia/releases/latest' | jq -r '.assets[] | select(.browser_download_url | contains(".jar")).browser_download_url') && java -jar kolmafia.jar

update-kolmafia

C2Talon has created an application to download and run the latest KoLmafia with binaries for Windows and Unix-like operating systems

https://github.com/C2Talon/update-kolmafia