1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02: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:
Mark Stacey 2021-09-28 19:15:00 -02:30 committed by GitHub
parent d929ccdfa8
commit 4c38d12c5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
};