mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-24 11:12:21 +08:00
修改: debian/changelog
新文件: pkg/usr/share/polkit-1/actions/store.spark-app.ssinstall.policy 修改: spark-store-project.pro 修改: src/main.cpp 修改: tool/ssinstall
This commit is contained in:
parent
da8ee30fbd
commit
873a83e6b9
9
debian/changelog
vendored
9
debian/changelog
vendored
@ -1,3 +1,12 @@
|
|||||||
|
spark-store (3.0.3-14) stable; urgency=medium
|
||||||
|
|
||||||
|
* Add pkexec policy: ssinstall
|
||||||
|
* Modify ssinistall script: Now will refuse run when no args are given or not run as root.
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Mon, 17 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
spark-store (3.0.3-13) stable; urgency=medium
|
spark-store (3.0.3-13) stable; urgency=medium
|
||||||
|
|
||||||
* Update the ssinstall script. Now support apt-fast and will temporarily increase the spark store source priority to 500 to make depends install correctly
|
* Update the ssinstall script. Now support apt-fast and will temporarily increase the spark store source priority to 500 to make depends install correctly
|
||||||
|
|||||||
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||||
|
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||||
|
<policyconfig>
|
||||||
|
<vendor>Spark Store</vendor>
|
||||||
|
<icon_name>x-package-repository</icon_name>
|
||||||
|
<action id="org.maicss.dnf">
|
||||||
|
<description>运行ssinstall需要权限</description>
|
||||||
|
<message>要使用ssinstall需要权限</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_any>yes</allow_any>
|
||||||
|
<allow_inactive>yes</allow_inactive>
|
||||||
|
<allow_active>yes</allow_active>
|
||||||
|
</defaults>
|
||||||
|
<annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/ssinstall</annotate>
|
||||||
|
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||||
|
</action>
|
||||||
|
</policyconfig>
|
||||||
@ -33,6 +33,9 @@ desktop.path = /usr/share/applications
|
|||||||
service.files += pkg/usr/lib/systemd/system/spark-update-notifier.service
|
service.files += pkg/usr/lib/systemd/system/spark-update-notifier.service
|
||||||
service.path = /usr/lib/systemd/system/
|
service.path = /usr/lib/systemd/system/
|
||||||
|
|
||||||
|
polkit-1.files +=pkg/usr/share/polkit-1/actions/store.spark-app.ssinstall.policy
|
||||||
|
polkit-1.path = /usr/share/polkit-1/actions/
|
||||||
|
|
||||||
|
|
||||||
icon.files += pkg/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
icon.files += pkg/usr/share/icons/hicolor/scalable/apps/spark-store.svg
|
||||||
icon.path = /usr/share/icons/hicolor/scalable/apps
|
icon.path = /usr/share/icons/hicolor/scalable/apps
|
||||||
|
|||||||
@ -30,7 +30,7 @@ int main(int argc, char *argv[])
|
|||||||
DAboutDialog dialog;
|
DAboutDialog dialog;
|
||||||
a.setAboutDialog(&dialog);
|
a.setAboutDialog(&dialog);
|
||||||
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
||||||
dialog.setVersion(DApplication::buildVersion("Version 3.0.3-13"));
|
dialog.setVersion(DApplication::buildVersion("Version 3.0.3-14"));
|
||||||
dialog.setProductIcon(QIcon::fromTheme("spark-store")); // 设置Logo
|
dialog.setProductIcon(QIcon::fromTheme("spark-store")); // 设置Logo
|
||||||
dialog.setProductName(QLabel::tr("Spark Store"));
|
dialog.setProductName(QLabel::tr("Spark Store"));
|
||||||
dialog.setDescription(
|
dialog.setDescription(
|
||||||
@ -51,7 +51,7 @@ int main(int argc, char *argv[])
|
|||||||
a.setOrganizationName("spark-union");
|
a.setOrganizationName("spark-union");
|
||||||
a.setOrganizationDomain("https://www.deepinos.org/");
|
a.setOrganizationDomain("https://www.deepinos.org/");
|
||||||
a.setApplicationName("Spark Store"); //不需要翻译,否则 ~/.local/share/ 下文件夹名称也被翻译为中文
|
a.setApplicationName("Spark Store"); //不需要翻译,否则 ~/.local/share/ 下文件夹名称也被翻译为中文
|
||||||
a.setApplicationVersion(DApplication::buildVersion("3.0.3-13"));
|
a.setApplicationVersion(DApplication::buildVersion("3.0.3-14"));
|
||||||
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
|
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
|
||||||
a.setApplicationDescription(
|
a.setApplicationDescription(
|
||||||
QObject::tr(
|
QObject::tr(
|
||||||
|
|||||||
@ -3,6 +3,24 @@
|
|||||||
|
|
||||||
echo "Spark Store Install script.星火商店安装脚本"
|
echo "Spark Store Install script.星火商店安装脚本"
|
||||||
|
|
||||||
|
if [ $# -eq 0 ];then
|
||||||
|
echo "没有接收到参数,退出"
|
||||||
|
echo "用法:$0 deb路径"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$(id -u)" != "0" ]
|
||||||
|
then
|
||||||
|
echo "ssinstall需要在root下运行";
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$1" ]
|
||||||
|
then
|
||||||
|
echo "文件不存在"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
DEPEND=`which apt-fast`
|
DEPEND=`which apt-fast`
|
||||||
isuos=`cat /etc/os-release | grep UnionTech`
|
isuos=`cat /etc/os-release | grep UnionTech`
|
||||||
#临时提升星火源的优先级
|
#临时提升星火源的优先级
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user