diff --git a/debian/rules b/debian/rules index c7846f5..45fb917 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,7 @@ #!/usr/bin/make -f export QT_SELECT=5 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all include /usr/share/dpkg/default.mk DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) diff --git a/debian/spark-store.postinst b/debian/spark-store.postinst index fc6bcba..1a2509a 100755 --- a/debian/spark-store.postinst +++ b/debian/spark-store.postinst @@ -36,7 +36,7 @@ case "$1" in echo "Compiling the Sender module..." - gcc /opt/durapps/spark-store/bin/ss-feedback/sender-d.sh.c -o /opt/durapps/spark-store/bin/ss-feedback/sender-d + gcc -Wformat -Wformat-security -Werror=format-security /opt/durapps/spark-store/bin/ss-feedback/sender-d.sh.c -o /opt/durapps/spark-store/bin/ss-feedback/sender-d # Install key mkdir -p /tmp/spark-store-install/ diff --git a/spark-store-project.pro b/spark-store-project.pro index b8f6ca9..70e04be 100644 --- a/spark-store-project.pro +++ b/spark-store-project.pro @@ -66,3 +66,9 @@ INSTALLS += \ bash_completion \ polkit-1 # 暂时不添加 + +# https://wiki.debian.org/Hardening +QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS) +QMAKE_CFLAGS *= $(shell dpkg-buildflags --get CFLAGS) +QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS) +QMAKE_LFLAGS *= $(shell dpkg-buildflags --get LDFLAGS) \ No newline at end of file diff --git a/translations/spark-store_en.ts b/translations/spark-store_en.ts index 3751fff..d0b7e84 100644 --- a/translations/spark-store_en.ts +++ b/translations/spark-store_en.ts @@ -11,8 +11,8 @@ - - + + Download @@ -186,8 +186,8 @@ - - + + Reinstall @@ -197,29 +197,29 @@ - - + + Install - + Installing - - + + Spark Store - + Uninstall succeeded - + The URL has been copied to the clipboard @@ -240,12 +240,12 @@ DAboutDialog - + Version: %1 - + %1 is released under %2 @@ -299,9 +299,9 @@ - - - + + + Spark Store @@ -312,46 +312,46 @@ - + Installation complete. - - + + Finish - + Retry - + Error happened in dpkg progress , you can try it again. - - + + Error happened in dpkg progress , you can try it again - + dpkg progress had been aborted,you can retry installation. - - + + dpkg progress had been aborted,you can retry installation - - + + Download canceled @@ -473,6 +473,7 @@ + Spark Store @@ -485,19 +486,19 @@ QObject - + Spark Store - + <span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span> - + Spark Project @@ -507,7 +508,7 @@ - + Show MainWindow @@ -618,12 +619,12 @@ TitleBarMenu - + About - + Exit diff --git a/translations/spark-store_fr.ts b/translations/spark-store_fr.ts index f3721fd..3e296e2 100644 --- a/translations/spark-store_fr.ts +++ b/translations/spark-store_fr.ts @@ -11,8 +11,8 @@ - - + + Download @@ -186,8 +186,8 @@ - - + + Reinstall @@ -197,29 +197,29 @@ - - + + Install - + Installing - - + + Spark Store - + Uninstall succeeded - + The URL has been copied to the clipboard @@ -240,12 +240,12 @@ DAboutDialog - + Version: %1 - + %1 is released under %2 @@ -299,9 +299,9 @@ - - - + + + Spark Store @@ -312,46 +312,46 @@ - + Installation complete. - - + + Finish - + Retry - + Error happened in dpkg progress , you can try it again. - - + + Error happened in dpkg progress , you can try it again - + dpkg progress had been aborted,you can retry installation. - - + + dpkg progress had been aborted,you can retry installation - - + + Download canceled @@ -473,6 +473,7 @@ + Spark Store @@ -485,19 +486,19 @@ QObject - + Spark Store - + <span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span> - + Spark Project @@ -507,7 +508,7 @@ - + Show MainWindow @@ -618,12 +619,12 @@ TitleBarMenu - + About - + Exit diff --git a/translations/spark-store_zh_CN.ts b/translations/spark-store_zh_CN.ts index c5ddfa2..66b874b 100644 --- a/translations/spark-store_zh_CN.ts +++ b/translations/spark-store_zh_CN.ts @@ -11,8 +11,8 @@ - - + + Download 下载 @@ -186,8 +186,8 @@ - - + + Reinstall 重新安装 @@ -197,29 +197,29 @@ 升级 - - + + Install 安装 - + Installing 正在安装 - - + + Spark Store 星火应用商店 - + Uninstall succeeded 卸载成功 - + The URL has been copied to the clipboard 链接已复制到剪贴板 @@ -240,12 +240,12 @@ DAboutDialog - + Version: %1 版本:%1 - + %1 is released under %2 %1遵循%2协议发布 @@ -299,9 +299,9 @@ 下载完成. - - - + + + Spark Store 星火应用商店 @@ -312,46 +312,46 @@ 正在安装 - + Installation complete. 安装完成. - - + + Finish 完成 - + Retry 重试 - + Error happened in dpkg progress , you can try it again. 安装被中止,可重新安装。 - - + + Error happened in dpkg progress , you can try it again dpkg出现错误,可重新安装 - + dpkg progress had been aborted,you can retry installation. dpkg进程被中断,您可重试安装。 - - + + dpkg progress had been aborted,you can retry installation 安装被中止,可重新安装 - - + + Download canceled 下载已取消 @@ -473,6 +473,7 @@ + Spark Store 星火应用商店 @@ -485,19 +486,19 @@ QObject - + Spark Store 星火应用商店 - + <span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span> <span style=' font-size:10pt;font-weight:60;'>一款由社区提供的应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>星火计划开发者</span> - + Spark Project 星火计划 @@ -507,7 +508,7 @@ 下载列表 - + Show MainWindow 显示主窗口 @@ -618,12 +619,12 @@ TitleBarMenu - + About 关于 - + Exit 退出