This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from EDM115/main
Better download button
- Loading branch information
Showing
4 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const gitHubLink = "https://github.com/Rectify11/Installer/releases"; | ||
export const gitHubLink = "javascript:(async () => {const repoOwner = 'Rectify11'; const repoName = 'Installer'; const workflowFileName = 'build.yml'; try {const runsResponse = await fetch(`https://api.github.com/repos/${repoOwner}/${repoName}/actions/workflows/${workflowFileName}/runs`); const runsData = await runsResponse.json(); const latestSuccessfulRun = runsData.workflow_runs.find(run => run.conclusion === 'success'); if (!latestSuccessfulRun) throw new Error('No successful runs found'); const artifactsResponse = await fetch(latestSuccessfulRun.artifacts_url); const artifactsData = await artifactsResponse.json(); const latestArtifact = artifactsData.artifacts[0]; if (!latestArtifact) throw new Error('No artifacts found for the latest successful run'); window.location.href = `https://github.com/${repoOwner}/${repoName}/actions/runs/${latestArtifact.workflow_run.id}/artifacts/${latestArtifact.id}`; } catch (error) { console.error('Error fetching artifact:', error); alert('Failed to fetch the latest artifact. See console for details.'); } })()"; | ||
export const gitHubSrcLink = "https://github.com/Rectify11/Installer"; | ||
export const discordLink = "https://discord.gg/rectify11-community-1077324213142175744"; |