Rebrand and fix links and tags (#5)
Co-authored-by: Kedas <m@yarn.network> Co-authored-by: IThundxr <harshdhaliwal9767@gmail.com> Co-authored-by: IThundxr <contact@ithundxr.dev>
This commit is contained in:
parent
8d04dd5c97
commit
3e56cecbbf
9 changed files with 38 additions and 51 deletions
|
@ -13,7 +13,7 @@ interface SimplifiedGHReleases {
|
|||
export async function getLatestMinecraftVersion(): Promise<string> {
|
||||
const f = await fetch(
|
||||
/* CHANGEME */
|
||||
'https://meta.polymc.org/v1/net.minecraft/package.json'
|
||||
'https://meta.prismlauncher.org/v1/net.minecraft/package.json'
|
||||
);
|
||||
|
||||
const minecraft = (await f.json()) as MetaPackage;
|
||||
|
@ -21,9 +21,9 @@ export async function getLatestMinecraftVersion(): Promise<string> {
|
|||
}
|
||||
|
||||
// TODO: caching
|
||||
export async function getLatestPolyMCVersion(): Promise<string> {
|
||||
export async function getLatestPrismLauncherVersion(): Promise<string> {
|
||||
/* CHANGEME */
|
||||
const f = await fetch('https://api.github.com/repos/PolyMC/PolyMC/releases');
|
||||
const f = await fetch('https://api.github.com/repos/PrismLauncher/PrismLauncher/releases');
|
||||
const versions = (await f.json()) as SimplifiedGHReleases[];
|
||||
|
||||
return versions[0].tag_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue