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

Restore Snap Support #350

Closed

Conversation

patviafore-kudzera
Copy link
Contributor

Alter cmake file and snapcraft.yaml to build snap builds once more. Due to core22 not supporting qmake yet [1] and Qt not continuing to support qmake, this commit moves Packet Sender snap builds to cmake. In order to not mess with Debian builds (Which use the existing CMakeLists.txt), a variable SNAP has to be defined and set to a truthy value in order to do snap-specific changes.

The alterations were generated by using qmake2cmake [3] on the .pro file for snap builds, and then merged under if statements for the existing CMakeLists.txt. I did have to comment out the git sha generation and add that back manually for the tool to work

[1] https://forum.snapcraft.io/t/core22-qmake-plugin-support/35026
[2] https://www.qt.io/blog/2019/08/07/technical-vision-qt-6
[3] https://code.qt.io/cgit/qt/qmake2cmake.git/about/

Before submitting a pull request:

  • Did you fork from the development branch?
  • Are you submitting the pull request to the development branch? (not master)

Alter cmake file and snapcraft.yaml to build snap builds once more. Due to core22
not supporting qmake yet [1] and Qt not continuing to support qmake, this commit moves
Packet Sender snap builds to cmake. In order to not mess with Debian builds (Which use
the existing CMakeLists.txt), a variable SNAP has to be defined and set to a truthy value
in order to do snap-specific changes.

The alterations were generated by using qmake2cmake [3] on the .pro file for snap builds,
and then merged under if statements for the existing CMakeLists.txt. I did have to comment out
the git sha generation and add that back manually for the tool to work

[1] https://forum.snapcraft.io/t/core22-qmake-plugin-support/35026
[2] https://www.qt.io/blog/2019/08/07/technical-vision-qt-6
[3] https://code.qt.io/cgit/qt/qmake2cmake.git/about/
@dannagle
Copy link
Owner

dannagle commented Jan 9, 2024

Please move the snap stuff to a separate directory. Thanks!

@dannagle dannagle closed this Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants