mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-11-02 23:32:21 +08:00
同步 aptss 4.8.3
This commit is contained in:
parent
3ec3d09781
commit
1dc0f90d01
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -1,9 +1,10 @@
|
|||||||
spark-store (4.8.2) UNRELEASED; urgency=medium
|
spark-store (4.8.3) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* 更新软件主图标
|
* 更新软件主图标
|
||||||
* 软件更新器更新成功后删除软件包
|
* 软件更新器更新成功后删除软件包
|
||||||
* 修复:首次安装ACE环境情况下无法正确配置ACE中aptss的问题
|
* 修复:首次安装ACE环境情况下无法正确配置ACE中aptss的问题
|
||||||
* 修复:使用aptss后在/tmp下留下垃圾的问题
|
* 修复:使用aptss后在/tmp下留下垃圾的问题
|
||||||
|
* aptss 更新,支持在APM下使用
|
||||||
|
|
||||||
-- momen <vmomenv@gmail.com> Tue, 28 Aug 2025 01:03:08 +0800
|
-- momen <vmomenv@gmail.com> Tue, 28 Aug 2025 01:03:08 +0800
|
||||||
|
|
||||||
|
|||||||
37
tool/aptss
37
tool/aptss
@ -2,11 +2,19 @@
|
|||||||
|
|
||||||
SPARK_DOWNLOAD_SERVER_URL="https://d.spark-app.store/"
|
SPARK_DOWNLOAD_SERVER_URL="https://d.spark-app.store/"
|
||||||
SPARK_DOWNLOAD_SERVER_URL_NO_PROTOCOL="d.spark-app.store"
|
SPARK_DOWNLOAD_SERVER_URL_NO_PROTOCOL="d.spark-app.store"
|
||||||
|
|
||||||
|
if [[ "$IS_APM_ENV" = "" ]] ;then
|
||||||
|
UPSTREAM_CATOGARY="sparkstore"
|
||||||
|
else
|
||||||
|
UPSTREAM_CATOGARY="apm"
|
||||||
|
fi
|
||||||
|
|
||||||
source /opt/durapps/spark-store/bin/bashimport/transhell.amber
|
source /opt/durapps/spark-store/bin/bashimport/transhell.amber
|
||||||
source /opt/durapps/spark-store/bin/bashimport/log.amber
|
source /opt/durapps/spark-store/bin/bashimport/log.amber
|
||||||
load_transhell
|
load_transhell
|
||||||
|
|
||||||
case `arch` in
|
if [[ "$IS_APM_ENV" = "" ]] ;then
|
||||||
|
case $(arch) in
|
||||||
x86_64 | i686 | i386)
|
x86_64 | i686 | i386)
|
||||||
STORE_URL="store"
|
STORE_URL="store"
|
||||||
STORE_LIST_URL=""
|
STORE_LIST_URL=""
|
||||||
@ -24,6 +32,27 @@ case `arch` in
|
|||||||
STORE_LIST_URL="-riscv64"
|
STORE_LIST_URL="-riscv64"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
else
|
||||||
|
case $(arch) in
|
||||||
|
x86_64 | i686 | i386)
|
||||||
|
STORE_URL="amd64-apm"
|
||||||
|
STORE_LIST_URL=""
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
STORE_URL="aarch64-apm"
|
||||||
|
STORE_LIST_URL="-aarch64"
|
||||||
|
;;
|
||||||
|
loongarch64)
|
||||||
|
STORE_URL="loong64-apm"
|
||||||
|
STORE_LIST_URL="-loong64"
|
||||||
|
;;
|
||||||
|
riscv64)
|
||||||
|
STORE_URL="riscv64-apm"
|
||||||
|
STORE_LIST_URL="-riscv64"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
SS_APT_FAST="/opt/durapps/spark-store/bin/apt-fast/ss-apt-fast"
|
SS_APT_FAST="/opt/durapps/spark-store/bin/apt-fast/ss-apt-fast"
|
||||||
|
|
||||||
|
|
||||||
@ -32,8 +61,8 @@ is_empty_dir(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function update_list(){
|
function update_list(){
|
||||||
curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "${SPARK_DOWNLOAD_SERVER_URL}/sparkstore${STORE_LIST_URL}.list"
|
curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/aptss.list "${SPARK_DOWNLOAD_SERVER_URL}/${UPSTREAM_CATOGARY}${STORE_LIST_URL}.list"
|
||||||
log.info "sparkstore${STORE_LIST_URL}.list update done"
|
log.info "${UPSTREAM_CATOGARY}${STORE_LIST_URL}.list update done"
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_conf(){
|
function update_conf(){
|
||||||
@ -110,7 +139,7 @@ echo
|
|||||||
update_list
|
update_list
|
||||||
update_conf
|
update_conf
|
||||||
|
|
||||||
/usr/bin/apt update -c /opt/durapps/spark-store/bin/apt-fast-conf/aptss-apt.conf -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" -o Dir::Etc::sourcelist="/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list"
|
/usr/bin/apt update -c /opt/durapps/spark-store/bin/apt-fast-conf/aptss-apt.conf -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" -o Dir::Etc::sourcelist="/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/aptss.list"
|
||||||
|
|
||||||
#只更新星火源
|
#只更新星火源
|
||||||
|
|
||||||
|
|||||||
42
tool/ssaudit
42
tool/ssaudit
@ -59,14 +59,48 @@ FORCE_CREATE_DESKTOP="0"
|
|||||||
load_transhell_debug
|
load_transhell_debug
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
# 根据架构设置仓库URL
|
# 根据架构设置仓库URL
|
||||||
|
if [[ "$IS_APM_ENV" = "" ]] ;then
|
||||||
case $(arch) in
|
case $(arch) in
|
||||||
x86_64) STORE_URL="store" ;;
|
x86_64 | i686 | i386)
|
||||||
aarch64) STORE_URL="aarch64-store" ;;
|
STORE_URL="store"
|
||||||
loongarch64) STORE_URL="loong64-store" ;;
|
STORE_LIST_URL=""
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
STORE_URL="aarch64-store"
|
||||||
|
STORE_LIST_URL="-aarch64"
|
||||||
|
;;
|
||||||
|
loongarch64)
|
||||||
|
STORE_URL="loong64-store"
|
||||||
|
STORE_LIST_URL="-loong64"
|
||||||
|
;;
|
||||||
|
riscv64)
|
||||||
|
STORE_URL="riscv64-store"
|
||||||
|
STORE_LIST_URL="-riscv64"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
else
|
||||||
|
case $(arch) in
|
||||||
|
x86_64 | i686 | i386)
|
||||||
|
STORE_URL="amd64-apm"
|
||||||
|
STORE_LIST_URL=""
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
STORE_URL="aarch64-apm"
|
||||||
|
STORE_LIST_URL="-aarch64"
|
||||||
|
;;
|
||||||
|
loongarch64)
|
||||||
|
STORE_URL="loong64-apm"
|
||||||
|
STORE_LIST_URL="-loong64"
|
||||||
|
;;
|
||||||
|
riscv64)
|
||||||
|
STORE_URL="riscv64-apm"
|
||||||
|
STORE_LIST_URL="-riscv64"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
# 帮助函数
|
# 帮助函数
|
||||||
function show_help() {
|
function show_help() {
|
||||||
echo "Spark Store Anstall script. 星火商店审核脚本"
|
echo "Spark Store Audit script. 星火商店审核脚本"
|
||||||
echo "用法: $0 [选项] <deb路径>"
|
echo "用法: $0 [选项] <deb路径>"
|
||||||
echo "选项:"
|
echo "选项:"
|
||||||
echo " -h, --help 显示帮助信息"
|
echo " -h, --help 显示帮助信息"
|
||||||
|
|||||||
@ -59,11 +59,45 @@ FORCE_CREATE_DESKTOP="0"
|
|||||||
load_transhell_debug
|
load_transhell_debug
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
# 根据架构设置仓库URL
|
# 根据架构设置仓库URL
|
||||||
|
if [[ "$IS_APM_ENV" = "" ]] ;then
|
||||||
case $(arch) in
|
case $(arch) in
|
||||||
x86_64) STORE_URL="store" ;;
|
x86_64 | i686 | i386)
|
||||||
aarch64) STORE_URL="aarch64-store" ;;
|
STORE_URL="store"
|
||||||
loongarch64) STORE_URL="loong64-store" ;;
|
STORE_LIST_URL=""
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
STORE_URL="aarch64-store"
|
||||||
|
STORE_LIST_URL="-aarch64"
|
||||||
|
;;
|
||||||
|
loongarch64)
|
||||||
|
STORE_URL="loong64-store"
|
||||||
|
STORE_LIST_URL="-loong64"
|
||||||
|
;;
|
||||||
|
riscv64)
|
||||||
|
STORE_URL="riscv64-store"
|
||||||
|
STORE_LIST_URL="-riscv64"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
else
|
||||||
|
case $(arch) in
|
||||||
|
x86_64 | i686 | i386)
|
||||||
|
STORE_URL="amd64-apm"
|
||||||
|
STORE_LIST_URL=""
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
STORE_URL="aarch64-apm"
|
||||||
|
STORE_LIST_URL="-aarch64"
|
||||||
|
;;
|
||||||
|
loongarch64)
|
||||||
|
STORE_URL="loong64-apm"
|
||||||
|
STORE_LIST_URL="-loong64"
|
||||||
|
;;
|
||||||
|
riscv64)
|
||||||
|
STORE_URL="riscv64-apm"
|
||||||
|
STORE_LIST_URL="-riscv64"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
# 帮助函数
|
# 帮助函数
|
||||||
function show_help() {
|
function show_help() {
|
||||||
echo "Spark Store Install script. 星火商店安装脚本"
|
echo "Spark Store Install script. 星火商店安装脚本"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user