-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override executable name on Linux #371
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works on Linux.
Reviewed 1 of 1 files at r1.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @jvff and @faern)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @jvff and @faern)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pronebird)
a discussion (no related file):
The RPM package still seems to use the desktop
name. I saw this through the command:
$ rpm -qp dist/MullvadVPN-2018.2_x86_64.rpm
desktop-2018.2.0-1.x86_64
ca56cdb
to
ce5686f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pronebird)
a discussion (no related file):
Previously, jvff (Janito Vaqueiro Ferreira Filho) wrote…
The RPM package still seems to use the
desktop
name. I saw this through the command:$ rpm -qp dist/MullvadVPN-2018.2_x86_64.rpm desktop-2018.2.0-1.x86_64
😿
094cd89
to
4ed10db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @jvff, @faern, and @pronebird)
a discussion (no related file):
Previously, pronebird (Andrei Mihailov) wrote…
😿
Alright, instead I override extraMetadata
now which is basically merged with package.json
:
{ ...packageJson, ...extraMetadata }
Wish me luck.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @faern and @jvff)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @faern and @jvff)
a discussion (no related file):
Previously, pronebird (Andrei Mihailov) wrote…
Alright, instead I override
extraMetadata
now which is basically merged withpackage.json
:{ ...packageJson, ...extraMetadata }
Wish me luck.
$ rpm -qp MullvadVPN-2018.2-dev-4ed10dbb_x86_64.rpm
mullvad-vpn-2018.2.0_dev_4ed10dbb-1.x86_64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @faern and @jvff)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @faern and @jvff)
a discussion (no related file):
Previously, pronebird (Andrei Mihailov) wrote…
$ rpm -qp MullvadVPN-2018.2-dev-4ed10dbb_x86_64.rpm mullvad-vpn-2018.2.0_dev_4ed10dbb-1.x86_64
dpkg --info MullvadVPN-2018.2-dev-4ed10dbb_amd64.deb
new Debian package, version 2.0.
size 50324754 bytes: control archive=3529 bytes.
43 bytes, 1 lines conffiles
416 bytes, 13 lines control
6501 bytes, 93 lines md5sums
107 bytes, 4 lines * postinst #!/usr/bin/env
921 bytes, 40 lines * postrm #!/usr/bin/env
Package: mullvad-vpn
Version: 2018.2.0-dev-4ed10dbb
License: GPL-3.0
Vendor: Mullvad VPN <[email protected]>
Architecture: amd64
Maintainer: Mullvad VPN <[email protected]>
Installed-Size: 182195
Depends: gconf2, gconf-service, libnotify4, libappindicator1, libxtst6, libnss3, libxss1
Section: default
Priority: extra
Homepage: https://github.com/mullvad/mullvadvpn-app#readme
Description:
Mullvad VPN client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @faern and @jvff)
4ed10db
to
d4c4283
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @faern and @jvff)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2.
Reviewable status:complete! all files reviewed, all discussions resolved
d4c4283
to
9ae25d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved
GitHub issue: electron-userland/electron-builder#1895
Describe what this PR changes. Why this is wanted. And, if needed, how it does it.
Git checklist:
CHANGELOG.md
under the[Unreleased]
header.What
This PR overrides the name of executable produced on Linux.
Why
Because electron-builder defaults the executable name on Linux to the
name
field frompackage.json
, as opposed to usingproductName
as per documentation. This results into app being calleddesktop
which is undesired.How
Via electron-builder.yml configuration.
Testing
I would appreciate if you could test it on Linux. I'll do the same on Windows/macOS to verify we don't have regressions in how executables are called there after migration to workspaces.
Please git checkout and build this branch to verify that executable name is correct.
This change is