Skip to content

Commit 3b90b47

Browse files
authored
Merge pull request #32 from almenscorner/dev
Add option to rename icon file using lowercase and underscores
2 parents 442e61d + d3361b2 commit 3b90b47

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

IntuneUploader/IntuneAppIconGetter.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ class IntuneAppIconGetter(DmgMounter):
2929
"required": True,
3030
"description": "Name of the app to use in the output file name.",
3131
},
32+
"rename_icon": {
33+
"required": False,
34+
"description": "Renames the icon file using lowercase and underscores.",
35+
},
3236
}
3337
output_variables = {
3438
"icon_file_path": {
@@ -41,6 +45,8 @@ def main(self):
4145
# Get input variables
4246
app_file = self.env.get("app_file")
4347
name = self.env.get("name")
48+
if self.env.get("rename_icon"):
49+
name = name.lower().replace(" ", "_")
4450
recipe_cache_dir = self.env.get("RECIPE_CACHE_DIR")
4551
self.env["icon_file_path"] = None
4652
mount_point = None

0 commit comments

Comments
 (0)