# Change Mattermost Build to custom build in Mattermost Desktop

**URL:** <https://forum.mattermost.com/t/change-mattermost-build-to-custom-build-in-mattermost-desktop/6279>\
**Category:** Troubleshooting\
**Created:** [December 3, 2018, 6:25am UTC](https://forum.mattermost.com/t/change-mattermost-build-to-custom-build-in-mattermost-desktop/6279 "2018-12-03T06:25:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aneesaziz](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aneesaziz](https://forum.mattermost.com/u/aneesaziz)\
**Post date:** [December 3, 2018, 6:25am UTC](https://forum.mattermost.com/t/change-mattermost-build-to-custom-build-in-mattermost-desktop/6279/1 "2018-12-03T06:25:43Z")

</div>

Hi there,  
I have pulled the mattermost-desktop from github. I have changed the variables inside package.json in the project to custom name ‘XYZ’ . The ‘XYZ’ is being reflected in the MAC and windows releases but not for the linux it is still showing “file=release/mattermost-desktop-4.1.2.tar.gz” during the make package command. How do i reflect the changes in the linux build.  
Thanks in advance.  
Full output during make package command for linux:  
[no native production dependencies  
• packaging platform=linux arch=x64 electron=2.0.2 appOutDir=release/linux-unpacked  
• building target=tar.gz arch=x64 file=release/mattermost-desktop-4.1.2.tar.gz  
• no native production dependencies  
• packaging platform=linux arch=ia32 electron=2.0.2 appOutDir=release/linux-ia32-unpacked  
• building target=tar.gz arch=ia32 file=release/mattermost-desktop-4.1.2-ia32.tar.gz  
• building target=deb arch=x64 file=release/mattermost-desktop\_4.1.2\_amd64.deb]

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [December 3, 2018, 2:11pm UTC](https://forum.mattermost.com/t/change-mattermost-build-to-custom-build-in-mattermost-desktop/6279/2 "2018-12-03T14:11:17Z")

</div>

@yuya-oc Pinging you on this one ^

The issue is that Linux it is still showing “file=release/mattermost-desktop-4.1.2.tar.gz” during the make package command.

---

<div class="post-metadata">

**Author:** ![yuya-oc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/yuya-oc/32/614_2.png) [@yuya-oc](https://forum.mattermost.com/u/yuya-oc)\
**Post date:** [December 4, 2018, 5:02pm UTC](https://forum.mattermost.com/t/change-mattermost-build-to-custom-build-in-mattermost-desktop/6279/3 "2018-12-04T17:02:22Z")

</div>

Hi @aneesaziz, thanks for having an interest in the desktop app.

The desktop app repository has two package.json, `package.json` and `src/package.json`. And the build tool, electron-builder uses them. So perhaps there is a potential bug.

To get consistent result, both package.json should be updated. Would you check?

---

<div class="post-metadata">

**Author:** ![aneesaziz](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aneesaziz](https://forum.mattermost.com/u/aneesaziz)\
**Post date:** [December 5, 2018, 9:55am UTC](https://forum.mattermost.com/t/change-mattermost-build-to-custom-build-in-mattermost-desktop/6279/4 "2018-12-05T09:55:12Z")

</div>

Hi there,

1. I have changed names in both the files package.json and src/package.json .
2. And rebuilt them by running npm run build
3. Ran npm run package: linux.  
But when i try to make package the mattermost name still persists only in linux build. The windows and MAC packages are fine. Is there some extra step i am missing?  
Thanks.
