Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from EDM115/main
Browse files Browse the repository at this point in the history
Better download button
  • Loading branch information
MishaProductions authored May 18, 2024
2 parents 95ccd3c + 4334012 commit 9874469
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/package
## Running locally

```bash
git clone https://github.com/Pdawg-bytes/rectify11-website.git
cd rectify11-website
git clone https://github.com/Rectify11/Website.git
cd Website
npm install
npm run dev -- --open
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rectify11-website",
"version": "0.0.1",
"version": "0.0.2",
"scripts": {
"dev": "vite dev",
"build": "vite build",
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta content="Rectify11's Website" property="og:title" />
<meta content="The official website of Rectify11." property="og:description" />
<meta content="https://rectify11.net" property="og:url" />
<meta content="https://github.com/Pdawg-bytes/rectify11-website/blob/main/static/rectify11_logo.png?raw=true" property="og:image" />
<meta content="https://github.com/Rectify11/Website/blob/main/static/rectify11_logo.png?raw=true" property="og:image" />
<meta content="#1BA1E2" data-react-helmet="true" name="theme-color" />
%sveltekit.head%
</head>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/links.ts
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";

0 comments on commit 9874469

Please sign in to comment.