Skip to content

Commit

Permalink
Create AltStore repository
Browse files Browse the repository at this point in the history
  • Loading branch information
OctoNezd committed Jul 9, 2024
1 parent 156ffec commit cb8c48e
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/make-rel-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
mkdir Payload
cp -rv arc.xcarchive/Products/Applications/OldLander.app Payload
zip -r OldLander.ipa Payload
- name: Build AltStore/SideStore source
run: |
node dev/ios/generate_altstore_source.mjs
- name: Release
uses: softprops/action-gh-release@v2
id: release
Expand All @@ -68,3 +71,4 @@ jobs:
name: ios-build
path: |
dist/OldLander/
altStoreManifest.json
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# AltStore Manifest
altStoreManifest.json
41 changes: 41 additions & 0 deletions dev/ios/generate_altstore_source.mjs
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));

0 comments on commit cb8c48e

Please sign in to comment.