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:
Ryan Cao 2022-10-21 19:59:40 +08:00 committed by GitHub
parent 8d04dd5c97
commit 3e56cecbbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 38 additions and 51 deletions

View file

@ -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;