packager icon indicating copy to clipboard operation
packager copied to clipboard

Packaging apps for linux does not set correct appVersion

Open mmoraga opened this issue 3 years ago • 1 comments

Preflight Checklist

  • [x] I have read the contribution documentation for this project.
  • [x] I agree to follow the code of conduct that this project follows, as appropriate.
  • [x] I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Packager Version:
    • 15.4.0
  • Electron Version:
    • 16.0.7
  • Operating System:
    • Ubuntu 18.04 x64
    • Fedora 34 x64
  • Last Known Working Electron Packager version::

Expected Behavior

Setting the appVersion as an option to electron-packager should set the correct version. Running app.getVersion() should return the same version that has been set during build. This works expectedly on macOS and windows.

Actual Behavior

The packaged app returns 0.0 for app.getVersion()

$ npx electron-packager . --out out test --platform=linux --arch=x64 --app-version=99
Packaging app for platform linux x64 using electron v17.0.0
Wrote new app to out/test-linux-x64
./out/test-linux-x64/test
$ app.getVersion(): 0.0

To Reproduce

clone https://github.com/mmoraga/electron-packager-versions

cd electron-packager-versions
# Install dependencies
npm install
# Build app
npx electron-packager . --out out test --platform=linux --arch=x64 --app-version=99
# Run app
/out/test-linux-x64/test

Additional Information

mmoraga avatar Feb 08 '22 09:02 mmoraga

👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

welcome[bot] avatar Feb 08 '22 09:02 welcome[bot]