paimon-launcher.pro 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. QT += quick widgets
  2. CONFIG += c++14
  3. # You can make your code fail to compile if it uses deprecated APIs.
  4. # In order to do so, uncomment the following line.
  5. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  6. SOURCES += \
  7. src/main.cpp \
  8. src/FileIO.cpp \
  9. src/Process.cpp
  10. HEADERS += \
  11. src/FileIO.h \
  12. src/Process.h
  13. RESOURCES += \
  14. qml/qml.qrc \
  15. images/images.qrc
  16. OTHER_FILES += \
  17. scripts/* \
  18. images/icons/* \
  19. images/appicon/* \
  20. images/bg/* \
  21. README.md
  22. BASEVERSION = $$system(cat $$PWD/VERSION)
  23. COMMIT = $$system(git -C $$PWD rev-parse --short HEAD)
  24. VERSION = "$$BASEVERSION ($$COMMIT)"
  25. DEFINES += VERSION=\\\"\"$$VERSION\"\\\"
  26. # Additional import path used to resolve QML modules in Qt Creator's code model
  27. QML_IMPORT_PATH =
  28. # Additional import path used to resolve QML modules just for Qt Quick Designer
  29. QML_DESIGNER_IMPORT_PATH =
  30. # Default rules for deployment.
  31. qnx: target.path = /tmp/$${TARGET}/bin
  32. else: unix:!android: target.path = /opt/$${TARGET}/bin
  33. !isEmpty(target.path): INSTALLS += target
  34. DESTDIR = $$OUT_PWD/root/usr/bin
  35. copy_scripts.commands = $(COPY_DIR) $$PWD/scripts $$OUT_PWD/root/usr
  36. first.depends = $(first) copy_scripts
  37. export(first.depends)
  38. QMAKE_EXTRA_TARGETS += first copy_scripts
  39. APPIMAGE=$$(APPIMAGE)
  40. !isEmpty(APPIMAGE) {
  41. message("AppImage")
  42. copy_share.commands = $(COPY_DIR) $$PWD/share $$OUT_PWD/root/usr
  43. first.depends += copy_share
  44. export(copy_share.commands)
  45. QMAKE_EXTRA_TARGETS += copy_share
  46. copy_qml.commands = \
  47. $(MKDIR) $$OUT_PWD/root/usr/qml; \
  48. $(MKDIR) $$OUT_PWD/root/usr/lib; \
  49. $(COPY_DIR) \
  50. $$(QTDIR)/qml/Qt \
  51. $$(QTDIR)/qml/QtQml \
  52. $$(QTDIR)/qml/QtQuick \
  53. $$(QTDIR)/qml/QtQuick.2 \
  54. $$(QTDIR)/qml/QtGraphicalEffects \
  55. $$OUT_PWD/root/usr/qml; \
  56. $(COPY_FILE) \
  57. $$(QTDIR)/lib/libQt5QmlWorkerScript.so.5 \
  58. $$(QTDIR)/lib/libQt5QmlModels.so.5 \
  59. $$(QTDIR)/lib/libQt5Quick.so.5 \
  60. $$(QTDIR)/lib/libQt5QuickTemplates2.so.5 \
  61. $$(QTDIR)/lib/libQt5QuickControls2.so.5 \
  62. $$OUT_PWD/root/usr/lib
  63. first.depends += copy_qml
  64. export(copy_qml.commands)
  65. QMAKE_EXTRA_TARGETS += copy_qml
  66. QMAKE_POST_LINK = VERSION=$$BASEVERSION-$$COMMIT linuxdeploy-x86_64.AppImage --appdir $$OUT_PWD/root --plugin qt --output appimage
  67. }