Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Folders from other channels need to be disregarded when building package #11939

Closed
bsclifton opened this issue Nov 13, 2017 · 1 comment · Fixed by #11991
Closed

Folders from other channels need to be disregarded when building package #11939

bsclifton opened this issue Nov 13, 2017 · 1 comment · Fixed by #11991

Comments

@bsclifton
Copy link
Member

bsclifton commented Nov 13, 2017

Test plan

#11991 (comment)


Description

While on the same machine, if you build a package for beta channel and then one for nightly, the nightly package will be significantly larger. This is because the build-package step will pack the beta content into the nightly's ASAR file

A fix for this issue was introduced with #10552, but it has a side-effect of causing this issue:
#11799

In the 0.19.x branch, the ignorePaths was removed with 41dc7cf

Steps to Reproduce

  1. Be on 0.20.x or newer
  2. Cherry-pick 41dc7cf
  3. CHANNEL=beta npm run build-package
  4. CHANNEL=beta npm run build-installer
  5. CHANNEL=nightly npm run build-package
  6. Note the size of the resources/app.asar (should be ~266 megs, not > 1 GB)

Brave Version

0.20.x and newer (when packaging)

Reproducible on current live release:
No

Additional Information

This should be fixable by either hardcoding the names or creating a stronger regex match (which matches only the builds, not libraries like brave-crypto)

@bsclifton bsclifton added this to the 0.20.x (Beta Channel) milestone Nov 13, 2017
darkdh added a commit that referenced this issue Nov 16, 2017
fix #11939

Auditors: @bsclifton

Test Plan:
(Test on all platforms)
1. CHANNEL=beta npm run build-package
2. CHANNEL=beta npm run build-installer
3. CHANNEL=nightly npm run build-package
4. Note the size of the resources/app.asar (should be ~266 megs, not > 1GB)
@bsclifton bsclifton modified the milestones: 0.20.x (Beta Channel), 0.19.x Hotfix 6 (Release channel) Nov 17, 2017
@luixxiul
Copy link
Contributor

clipboard01

The installers size looks normal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.