mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-03-25 23:09:44 +08:00
chore:添加spark-update-tool代码进入pro文件
This commit is contained in:
48
src/spark-update-tool/spark-update-tool.pro
Normal file
48
src/spark-update-tool/spark-update-tool.pro
Normal file
@@ -0,0 +1,48 @@
|
||||
# spark-update-tool.pro
|
||||
QT += core gui widgets network concurrent
|
||||
TARGET = spark-update-tool
|
||||
TEMPLATE = app
|
||||
|
||||
# Set C++ standard to C++17
|
||||
CONFIG += c++17
|
||||
|
||||
# Enable auto features (uic, moc, rcc)
|
||||
CONFIG += qt warn_on release
|
||||
QT_CONFIG += no-pkg-config
|
||||
|
||||
# Version info (replace with your actual version)
|
||||
VERSION = 0.1.0
|
||||
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
|
||||
|
||||
# Source files
|
||||
SOURCES += \
|
||||
src/main.cpp \
|
||||
src/mainwindow.cpp \
|
||||
src/aptssupdater.cpp \
|
||||
src/appdelegate.cpp \
|
||||
src/applistmodel.cpp \
|
||||
src/downloadmanager.cpp
|
||||
|
||||
HEADERS += \
|
||||
src/mainwindow.h \
|
||||
src/aptssupdater.h \
|
||||
src/appdelegate.h \
|
||||
src/applistmodel.h \
|
||||
src/downloadmanager.h
|
||||
|
||||
FORMS += \
|
||||
src/mainwindow.ui
|
||||
|
||||
RESOURCES += \
|
||||
src/icons.qrc
|
||||
|
||||
# macOS bundle properties (optional)
|
||||
macx {
|
||||
QMAKE_INFO_PLIST = Info.plist
|
||||
ICON = resources/spark-update-tool.icns
|
||||
BUNDLE_IDENTIFIER = org.spark.store.update-tool
|
||||
}
|
||||
|
||||
# Installation paths (matches CMake install)
|
||||
target.path = $$[QT_INSTALL_BINS]
|
||||
INSTALLS += target
|
||||
Reference in New Issue
Block a user