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

Commit 9874469

Browse files
Merge pull request #3 from EDM115/main
Better download button
2 parents 95ccd3c + 4334012 commit 9874469

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/package
1919
## Running locally
2020

2121
```bash
22-
git clone https://github.com/Pdawg-bytes/rectify11-website.git
23-
cd rectify11-website
22+
git clone https://github.com/Rectify11/Website.git
23+
cd Website
2424
npm install
2525
npm run dev -- --open
2626
```

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rectify11-website",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"scripts": {
55
"dev": "vite dev",
66
"build": "vite build",

src/app.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta content="Rectify11's Website" property="og:title" />
88
<meta content="The official website of Rectify11." property="og:description" />
99
<meta content="https://rectify11.net" property="og:url" />
10-
<meta content="https://github.com/Pdawg-bytes/rectify11-website/blob/main/static/rectify11_logo.png?raw=true" property="og:image" />
10+
<meta content="https://github.com/Rectify11/Website/blob/main/static/rectify11_logo.png?raw=true" property="og:image" />
1111
<meta content="#1BA1E2" data-react-helmet="true" name="theme-color" />
1212
%sveltekit.head%
1313
</head>

src/lib/links.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export const gitHubLink = "https://github.com/Rectify11/Installer/releases";
1+
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.'); } })()";
22
export const gitHubSrcLink = "https://github.com/Rectify11/Installer";
33
export const discordLink = "https://discord.gg/rectify11-community-1077324213142175744";

0 commit comments

Comments
 (0)