mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-17 01:21:36 +08:00
Merge remote-tracking branch 'refs/remotes/origin/Thunder' into Thunder
This commit is contained in:
3
debian/changelog
vendored
3
debian/changelog
vendored
@@ -1,6 +1,7 @@
|
|||||||
spark-store (4.7.1~test1) UNRELEASED; urgency=medium
|
spark-store (4.8.0~test1) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* ssinstall升级,支持安装到ACE和自动安装到ACE
|
* ssinstall升级,支持安装到ACE和自动安装到ACE
|
||||||
|
* 商店支持展示ACE标识,支持识别 native amber-ce-bookworm amber-ce-trixie
|
||||||
|
|
||||||
-- shenmo <shenmo@spark-app.store> Tue, 24 Sep 2024 11:27:08 +0800
|
-- shenmo <shenmo@spark-app.store> Tue, 24 Sep 2024 11:27:08 +0800
|
||||||
|
|
||||||
|
|||||||
@@ -74,5 +74,13 @@
|
|||||||
<file>tags/uos.svg</file>
|
<file>tags/uos.svg</file>
|
||||||
<file>translations/qtwebengine_zh.qm</file>
|
<file>translations/qtwebengine_zh.qm</file>
|
||||||
<file>icon/sparky.png</file>
|
<file>icon/sparky.png</file>
|
||||||
|
<file>tags/amber-ce-bookworm_full.svg</file>
|
||||||
|
<file>tags/amber-ce-bookworm.svg</file>
|
||||||
|
<file>tags/amber-ce-sid_full.svg</file>
|
||||||
|
<file>tags/amber-ce-sid.svg</file>
|
||||||
|
<file>tags/amber-ce-trixie_full.svg</file>
|
||||||
|
<file>tags/amber-ce-trixie.svg</file>
|
||||||
|
<file>tags/native_full.svg</file>
|
||||||
|
<file>tags/native.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
@@ -234,6 +234,9 @@ void AppIntoPage::clear()
|
|||||||
ui->tag_debian->hide();
|
ui->tag_debian->hide();
|
||||||
ui->tag_ubuntu->hide();
|
ui->tag_ubuntu->hide();
|
||||||
ui->tag_community->hide();
|
ui->tag_community->hide();
|
||||||
|
ui->tag_native->hide();
|
||||||
|
ui->tag_amber_ce_bookworm->hide();
|
||||||
|
ui->tag_amber_ce_trixie->hide();
|
||||||
ui->icon->clear();
|
ui->icon->clear();
|
||||||
ui->title->clear();
|
ui->title->clear();
|
||||||
ui->version->clear();
|
ui->version->clear();
|
||||||
@@ -404,13 +407,51 @@ void AppIntoPage::setAppinfoTags(const QStringList &tagList)
|
|||||||
bool deepinSupport = false;
|
bool deepinSupport = false;
|
||||||
bool uosSupport = false;
|
bool uosSupport = false;
|
||||||
bool debianSupport = false;
|
bool debianSupport = false;
|
||||||
|
bool hasAmberTag = false;
|
||||||
|
|
||||||
foreach (const QString &tag, tagList)
|
foreach (const QString &tag, tagList)
|
||||||
{
|
{
|
||||||
if (tag == "community")
|
if (tag.isEmpty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
else if (tag == "community")
|
||||||
{
|
{
|
||||||
ui->tag_community->show();
|
ui->tag_community->show();
|
||||||
}
|
}
|
||||||
else if (tag == "debian")
|
else if (tag == "dtk5")
|
||||||
|
{
|
||||||
|
ui->tag_dtk5->show();
|
||||||
|
}
|
||||||
|
else if (tag == "dwine2")
|
||||||
|
{
|
||||||
|
ui->tag_dwine2->show();
|
||||||
|
}
|
||||||
|
else if (tag == "dwine5")
|
||||||
|
{
|
||||||
|
ui->tag_dwine5->show();
|
||||||
|
}
|
||||||
|
else if (tag == "a2d")
|
||||||
|
{
|
||||||
|
ui->tag_a2d->show();
|
||||||
|
}
|
||||||
|
else if (tag == "native")
|
||||||
|
{
|
||||||
|
ui->tag_native->show();
|
||||||
|
}
|
||||||
|
else if (tag == "amber-ce-bookworm")
|
||||||
|
{
|
||||||
|
ui->tag_amber_ce_bookworm->show();
|
||||||
|
hasAmberTag = true;
|
||||||
|
}
|
||||||
|
else if (tag == "amber-ce-trixie")
|
||||||
|
{
|
||||||
|
ui->tag_amber_ce_trixie->show();
|
||||||
|
hasAmberTag = true;
|
||||||
|
}
|
||||||
|
else if (!hasAmberTag) // Only process distro tags if we haven't found an amber tag
|
||||||
|
{
|
||||||
|
|
||||||
|
if (tag == "debian")
|
||||||
{
|
{
|
||||||
ui->tag_debian->show();
|
ui->tag_debian->show();
|
||||||
debianSupport = true;
|
debianSupport = true;
|
||||||
@@ -429,28 +470,17 @@ void AppIntoPage::setAppinfoTags(const QStringList &tagList)
|
|||||||
{
|
{
|
||||||
ui->tag_uos->show();
|
ui->tag_uos->show();
|
||||||
uosSupport = true;
|
uosSupport = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
if (!hasAmberTag)
|
||||||
else if (tag == "dtk5")
|
|
||||||
{
|
{
|
||||||
ui->tag_dtk5->show();
|
notifyUserUnsupportedTags(ubuntuSupport, deepinSupport, uosSupport, debianSupport);
|
||||||
}
|
}
|
||||||
else if (tag == "dwine2")
|
|
||||||
{
|
|
||||||
ui->tag_dwine2->show();
|
|
||||||
}
|
|
||||||
else if (tag == "dwine5")
|
|
||||||
{
|
|
||||||
ui->tag_dwine5->show();
|
|
||||||
}
|
|
||||||
else if (tag == "a2d")
|
|
||||||
{
|
|
||||||
ui->tag_a2d->show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
notifyUserUnsupportedTags(ubuntuSupport, deepinSupport, uosSupport ,debianSupport);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void AppIntoPage::notifyUserUnsupportedTags(bool ubuntuSupport, bool deepinSupport, bool uosSupport, bool debianSupport)
|
void AppIntoPage::notifyUserUnsupportedTags(bool ubuntuSupport, bool deepinSupport, bool uosSupport, bool debianSupport)
|
||||||
{
|
{
|
||||||
if (!SettingsPage::needUncompatibleNotification) {
|
if (!SettingsPage::needUncompatibleNotification) {
|
||||||
|
|||||||
@@ -385,8 +385,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>184</width>
|
<width>20</width>
|
||||||
<height>20</height>
|
<height>37</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
@@ -467,6 +467,63 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="tag_native">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>This app can only be installed natively</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="whatsThis">
|
||||||
|
<string><html><head/><body><p>This app can only be installed natively</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="pixmap">
|
||||||
|
<pixmap resource="../assets/assets.qrc">:/tags/native.svg</pixmap>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="tag_amber_ce_bookworm">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>This app will be installed to debian12 ACE</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="whatsThis">
|
||||||
|
<string><html><head/><body><p>This app will be installed to debian12 ACE</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="pixmap">
|
||||||
|
<pixmap resource="../assets/assets.qrc">:/tags/amber-ce-bookworm.svg</pixmap>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="tag_amber_ce_trixie">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>This app will be installed to debian13 ACE</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="whatsThis">
|
||||||
|
<string><html><head/><body><p>This app will be installed to debian13 ACE</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="pixmap">
|
||||||
|
<pixmap resource="../assets/assets.qrc">:/tags/amber-ce-trixie.svg</pixmap>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer_5">
|
<spacer name="horizontalSpacer_5">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@@ -474,8 +531,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>184</width>
|
<width>20</width>
|
||||||
<height>20</height>
|
<height>37</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
@@ -718,7 +775,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>524</width>
|
<width>482</width>
|
||||||
<height>601</height>
|
<height>601</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user