Release lite extension from actions
This commit is contained in:
@@ -118,6 +118,26 @@ const config = {
|
||||
jsonContent.browser_specific_settings.gecko.id = geckoId.replace('@', '-beta@');
|
||||
}
|
||||
|
||||
if (process.env.LITE) {
|
||||
// Remove "All sites" permissions
|
||||
const PERMISSIONS_TO_REMOVE = [
|
||||
"https://*/*",
|
||||
"http://*/*"
|
||||
];
|
||||
|
||||
const finalPermissions = [];
|
||||
for (const perm of jsonContent.permissions) {
|
||||
if (!PERMISSIONS_TO_REMOVE.includes(perm)) {
|
||||
finalPermissions.push(perm);
|
||||
}
|
||||
}
|
||||
jsonContent.permissions = finalPermissions;
|
||||
|
||||
// Change metadata
|
||||
jsonContent.name = "SimpleLogin Without SL icon";
|
||||
jsonContent.short_name = "SimpleLogin Without SL icon";
|
||||
}
|
||||
|
||||
return JSON.stringify(jsonContent, null, 2);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user