Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
p2premote
Visitor

How to read application's manifest using bright script?

Is there a way for the app to figure out its name, version etc which is available in the application manifest file?

Thanks.
0 Kudos
2 REPLIES 2
RokuChris
Roku Employee
Roku Employee

Re: How to read application's manifest using bright script?

function NWM_Manifest()
result = {}

raw = ReadASCIIFile("pkg:/manifest")
lines = raw.Tokenize(Chr(10))
for each line in lines
bits = line.Tokenize("=")
if bits.Count() > 1
result.AddReplace(bits[0], bits[1])
end if
next

return result
end function
0 Kudos
p2premote
Visitor

Re: How to read application's manifest using bright script?

Thank you Chris. Your code works very well.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.