Skip to content
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

Packaging apps for linux does not set correct appVersion #1331

Open
3 tasks done
mmoraga opened this issue Feb 8, 2022 · 1 comment
Open
3 tasks done

Packaging apps for linux does not set correct appVersion #1331

mmoraga opened this issue Feb 8, 2022 · 1 comment
Labels

Comments

@mmoraga
Copy link

mmoraga commented Feb 8, 2022

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • 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

@welcome
Copy link

welcome bot commented Feb 8, 2022

👋 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant