Skip to content

Update screenshot handling to support new universal app format#7

Merged
therealFoxster merged 2 commits intotherealFoxster:masterfrom
mcontrib:master
Jan 24, 2026
Merged

Update screenshot handling to support new universal app format#7
therealFoxster merged 2 commits intotherealFoxster:masterfrom
mcontrib:master

Conversation

@maxchang3
Copy link
Contributor

@maxchang3 maxchang3 commented Jan 22, 2026

According to the current AltStore developer documentation1, screenshots can be provided as either:

  • A standard array of strings or objects (for iPhone)
  • A universal app object with iphone and ipad keys, where iPad screenshots must include explicit width and height
Corresponding TypeScript type
interface imageWithSize {
  imageURL: string
  width?: number
  height?: number
}

interface ScreenshotsClass {
  iphone: (imageWithSize | string)[]
  ipad: Required<imageWithSize>[]
}

This update refactors rendering to handle both formats and only processes iPhone screenshots in the universal apps format.


Test Sources (current deployment will fail):

  • https://raw.githubusercontent.com/maxchang3/ani-altstore-source/main/generated/apps.json
    
    • /view/app/?source=https://raw.githubusercontent.com/maxchang3/ani-altstore-source/main/generated/apps.json&id=org.openani.Animeko
      
  • https://raw.githubusercontent.com/RajnishOne/altstore-releases/main/altstore-pal.json
    
    • /view/app/?source=https://raw.githubusercontent.com/RajnishOne/altstore-releases/main/altstore-pal.json&id=com.bluematter.qbitconnect
      

Footnotes

  1. https://faq.altstore.io/developers/make-a-source#screenshots

@therealFoxster
Copy link
Owner

Thanks for this!

@therealFoxster therealFoxster merged commit 83f61df into therealFoxster:master Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants