Skip to content

Commit 3bc7704

Browse files
committed
2 parents 5412b6c + 7c68ef5 commit 3bc7704

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

web/src/pages/dl/bincache/aarch64-linux/[family]/[package]/raw.dl.astro

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ export async function getStaticPaths() {
55
const { default: apps } = await import("../../../../../repo/bincache/aarch64-linux/_apps.json");
66
77
return apps.map((app) => {
8+
// Thanks @Azathothas for forcing us to write this hellifying script
9+
const [, , , , , , pkg_family, pkg] = app.pkg_webpage.split("/");
10+
811
return {
912
params: {
10-
family: app.pkg_family,
11-
package: app.pkg_name || app.pkg,
13+
family: pkg_family,
14+
package: pkg,
1215
},
1316
props: {
1417
data: app,

web/src/pages/dl/bincache/x86_64-linux/[family]/[package]/raw.dl.astro

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ export async function getStaticPaths() {
55
const { default: apps } = await import("../../../../../repo/bincache/x86_64-linux/_apps.json");
66
77
return apps.map((app) => {
8+
// Thanks @Azathothas for forcing us to write this hellifying script
9+
const [, , , , , , pkg_family, pkg] = app.pkg_webpage.split("/");
10+
811
return {
912
params: {
10-
family: app.pkg_family,
11-
package: app.pkg_name || app.pkg,
13+
family: pkg_family,
14+
package: pkg,
1215
},
1316
props: {
1417
data: app,

0 commit comments

Comments
 (0)