dannagle / PacketSender

Network utility for sending / receiving TCP, UDP, SSL, HTTP
https://packetsender.com
GNU General Public License v2.0
2.3k stars 360 forks source link

Restore Snap Supportu #351

Closed patviafore-kudzera closed 5 months ago

patviafore-kudzera commented 5 months ago

Create new cmake file and alter snapcraft.yaml to build snap builds once more. Due to core22 not supporting qmake yet [1] and Qt not continuing to support qmake[2], this commit moves Packet Sender snap builds to cmake. In order to not mess with Debian builds (Which use the existing CMakeLists.txt), a new CMakeLists.txt has been added under a snap directory

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, as well as specify source root manually.

[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: