mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix assets for beta dev build (#12233)
The MetaMask logo used for beta development builds was wrong. The lock screen (and any other place using the `@metamask/logo` logo) showed the correct logo, but all of our static assets used the "regular" logo. Now the beta logo should be used everywhere for beta development builds.
This commit is contained in:
parent
d929ccdfa8
commit
4c38d12c5f
@ -20,21 +20,24 @@ module.exports = function createStaticAssetTasks({
|
||||
shouldIncludeLockdown,
|
||||
);
|
||||
|
||||
const copyTargetsBeta = [
|
||||
...copyTargetsProd,
|
||||
{
|
||||
src: './app/build-types/beta/',
|
||||
dest: `images`,
|
||||
},
|
||||
];
|
||||
const additionalBuildTargets = {
|
||||
[BuildTypes.beta]: [
|
||||
{
|
||||
src: './app/build-types/beta/',
|
||||
dest: `images`,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const targets =
|
||||
buildType === BuildTypes.beta ? copyTargetsBeta : copyTargetsProd;
|
||||
if (Object.keys(additionalBuildTargets).includes(buildType)) {
|
||||
copyTargetsProd.push(...additionalBuildTargets[buildType]);
|
||||
copyTargetsDev.push(...additionalBuildTargets[buildType]);
|
||||
}
|
||||
|
||||
const prod = createTask(
|
||||
'static:prod',
|
||||
composeSeries(
|
||||
...targets.map((target) => {
|
||||
...copyTargetsProd.map((target) => {
|
||||
return async function copyStaticAssets() {
|
||||
await performCopy(target);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user