Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/moonlight/moonlight-android.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"download": "https://play.google.com/store/apps/details?id=com.limelight",
"documentation": "https://github.com/moonlight-stream/moonlight-docs/wiki"
},
"official": true,
"tags": ["streaming", "android", "mobile", "gaming"],
"featured": true,
"compatibility": {
"sunshine": ">=0.1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/moonlight/moonlight-embedded.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"download": "https://github.com/moonlight-stream/moonlight-embedded/wiki/Packages",
"documentation": "https://github.com/moonlight-stream/moonlight-docs/wiki"
},
"official": true,
"tags": ["streaming", "gamestream", "client", "gaming"],
"featured": true,
"compatibility": {
"sunshine": ">=0.1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/moonlight/moonlight-ios.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"download": "https://apps.apple.com/us/app/moonlight-game-streaming/id1000551566",
"documentation": "https://github.com/moonlight-stream/moonlight-docs/wiki"
},
"official": true,
"tags": ["streaming", "ios", "mobile", "gaming"],
"featured": true,
"compatibility": {
"sunshine": ">=0.1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/moonlight/moonlight-qt.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"download": "https://github.com/moonlight-stream/moonlight-qt/releases/latest",
"documentation": "https://github.com/moonlight-stream/moonlight-docs/wiki"
},
"official": true,
"tags": ["streaming", "gamestream", "client", "gaming"],
"featured": true,
"compatibility": {
"sunshine": ">=0.1.0"
}
Expand Down
4 changes: 2 additions & 2 deletions schemas/app.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
},
"description": "Searchable tags"
},
"featured": {
"official": {
"type": "boolean",
"description": "Whether to highlight this app"
"description": "Whether this is an official app maintained by the LizardByte team or partners"
},
"compatibility": {
"type": "object",
Expand Down
23 changes: 22 additions & 1 deletion scripts/build-index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,32 @@ async function fetchGitHubMetadata(repoUrl) {

const data = await response.json();

// Fetch the latest commit on the default branch
let lastCommitDate = data.pushed_at; // fallback to pushed_at
try {
const defaultBranch = data.default_branch;
const commitsUrl = `https://api.github.com/repos/${owner}/${repo.replace(/\.git$/, '')}/commits/${defaultBranch}`;
const commitResponse = await fetch(commitsUrl, {
headers: {
'Accept': 'application/vnd.github.v3+json',
'User-Agent': 'LizardByte-App-Directory',
},
});

if (commitResponse.ok) {
const commitData = await commitResponse.json();
lastCommitDate = commitData.commit.committer.date;
}
} catch (commitError) {
// If fetching commit fails, use pushed_at as fallback
console.error(` Warning: Failed to fetch latest commit, using pushed_at: ${commitError.message}`);
}

return {
stars: data.stargazers_count,
openIssues: data.open_issues_count,
forks: data.forks_count,
lastUpdated: data.updated_at,
lastUpdated: lastCommitDate,
license: data.license?.spdx_id || null,
};
} catch (error_) {
Expand Down