-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create content to automate SSA icons #13
Comments
To get Mac App Icons in BigFix Console:
ToDo:
|
wow, this built-in command seems to do EXACTLY what I need to get the default icon out of an icns file into PNG format: https://www.macworld.com/article/1060156/sipsicns.html
I thought I had to use https://github.com/sveinbjornt/osxiconutils but it doesn't get the correct default icon: sveinbjornt/osxiconutils#5 |
Interesting PDF icon: https://www.iconpacks.net/free-icon/pdf-download-2617.html
|
Look at automating the addition of Icons to content for display within the Self Service Application using REST API or Dashboard or other methods.
Can get an Icon from the content's prefetch statement on windows using: https://github.com/jgstew/tools/blob/master/CSharp/ExtractAssociatedIcon.bat
ToDo:
data:image/x-icon;base64,
Test if SSA will display an SVG format image(it doesn't, need to file RFE)Figure out easiest way to convert .ico format to PNG(if above doesn't work)Examples:
Console Dashboard for SSA Icons:
PNG Image MIMEField:
Fixlet with SSA Icon:
https://github.com/jgstew/bigfix-content/blob/master/fixlet/Open%20Monitor%20Manual%20-%20PG279Q%20-%20Windows.bes
Client Relevance:
(base64 encodes it) of concatenations of lines of files "setup.exe.ico"
(values of headers "Subject" of it, ("<img alt='icon' height='64' src='" & it as string & "'>") of values of keys "icon" of jsons of values of headers "action-ui-metadata" of it) of fixlets of sites whose("Custom Site" = type of it)
(it & ".icns") of (preceding text of last ".icns" of it | it) of strings "CFBundleIconFile" of dictionaries of files "Contents/Info.plist" of folders whose(name of it as lowercase ends with ".app") of folders "/Applications"
(pathname of folders "Resources" of folders "Contents" of items 0 of it & "/" & item 1 of it) of (it, (it & ".icns") of (preceding text of last ".icns" of it | it) of strings "CFBundleIconFile" of dictionaries of files "Contents/Info.plist" of it) of folders whose(name of it as lowercase ends with ".app") of folders "/Applications"
( preceding texts of lasts ".app" of names of it, (pathname of folders "Resources" of folders "Contents" of items 0 of it & "/" & item 1 of it) of (it, (it & ".icns") of (preceding text of last ".icns" of it | it) of strings "CFBundleIconFile" of dictionaries of files "Contents/Info.plist" of it) of it) of folders whose(name of it as lowercase ends with ".app") of folders "/Applications"
(preceding texts of lasts ".png" of names of it, sizes of it) of files ending in ".png" of folders "/tmp/_BigFix/Icons"
number of (concatenations of lines of it) of files ending in ".png" of folders "/tmp/_BigFix/Icons" of encodings "ISO-8859-1"
files whose(name of it as lowercase ends with ".icns") of folders "Contents/Resources" of folders whose(name of it as lowercase ends with ".app") of folders "/Applications"
Session Relevance:
number of mime fields "action-ui-metadata" of custom bes fixlets
values of keys "icon" of jsons of mime fields "action-ui-metadata" of custom bes fixlets
(links of it, ("<img alt='icon' height='64' src='" & it as string & "'>") of values of keys "icon" of jsons of mime fields "action-ui-metadata" of it) of custom bes fixlets
("<img src='data:image/png;base64," & it & "'>") of unique values of (substrings separated by ";;" of concatenations of values of it) of results of bes properties "base64 of Icons"
number of custom bes fixlets whose( (task flag of it OR fixlet flag of it) AND visible flag of it AND NOT exists mime fields "action-ui-metadata" of it AND exists default action of it)
(id of it as string & " " & name of it) of custom bes fixlets whose( (task flag of it OR fixlet flag of it) AND visible flag of it AND NOT exists mime fields "action-ui-metadata" of it AND exists default action of it)
Mac Icon File Info:
Get Magic Literal:
iconutil
command line tool to pack and unpack *.icns files."Related:
The text was updated successfully, but these errors were encountered: