-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,3 +135,6 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
# AltStore Manifest | ||
altStoreManifest.json |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import addonmanifest from "../../dist/manifest.json" assert { type: "json" }; | ||
import * as fs from "node:fs"; | ||
const addonVersion = addonmanifest.version; | ||
const date = new Date().toISOString(); | ||
const repo = { | ||
name: "OldLander repository", | ||
featuredApps: ["me.octonezd.addon.oldlander"], | ||
identifier: "me.octonezd.oldlander", | ||
apps: [ | ||
{ | ||
name: "OldLander", | ||
bundleIdentifier: "me.octonezd.addon.OldLander", | ||
developerName: "OctoNezd", | ||
localizedDescription: | ||
"Safari web extension for old reddit to make it usable on mobile devices", | ||
subtitle: | ||
"Safari web extension for old reddit to make it usable on mobile devices", | ||
iconURL: | ||
"https://github.com/OctoNezd/oldlander/blob/main/icons/icon.png?raw=true", | ||
tintColor: "F54F32", | ||
category: "social", | ||
versions: [ | ||
{ | ||
version: addonVersion, | ||
date: date, | ||
downloadURL: `https://github.com/OctoNezd/oldlander/releases/download/${addonVersion}/OldLander.ipa`, | ||
size: 0, | ||
}, | ||
], | ||
appPermissions: {}, | ||
// Sidestore: support | ||
// SideStore uses legacy repo format, see https://github.com/SideStore/SideStore/issues/314 | ||
downloadURL: `https://github.com/OctoNezd/oldlander/releases/download/${addonVersion}/OldLander.ipa`, | ||
version: addonVersion, | ||
versionDate: date, | ||
size: 0, | ||
}, | ||
], | ||
}; | ||
|
||
fs.writeFileSync("altStoreManifest.json", JSON.stringify(repo)); |