mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-02 09:22:26 +08:00
* 删除文件 spark-wine7-devel_7.14~spark-1_amd64.deb * final * 修改: debian/spark-store.postinst * 修改: tool/update-upgrade/ss-update-controler.sh * 修改: debian/spark-store.postinst * 只额外生成一份给aptss * 修改: debian/spark-store.postinst * 要提交的变更: * 修改: tool/aptss * 修改: debian/changelog * 修改: pkg/usr/share/bash-completion/completions/aptss * 修改: pkg/usr/share/bash-completion/completions/aptss * 修改: debian/spark-store.postinst * aa * Merge branch 'master' of https://gitee.com/deepin-community-store/spark-store * 修改: src/main.cpp * Merge branch 'master' of https://gitee.com/deepin-community-store/spark-store * 修改: debian/spark-store.postinst
75 lines
2.2 KiB
Bash
Executable File
75 lines
2.2 KiB
Bash
Executable File
#!/bin/sh
|
||
|
||
case "$1" in
|
||
configure)
|
||
|
||
# config for aptss
|
||
mkdir -p /etc/aptss/sources.list.d
|
||
ln -s -f /etc/apt/sources.list /etc/aptss/sources.list
|
||
|
||
|
||
# Check if /usr/local/bin existed
|
||
mkdir -p /usr/local/bin
|
||
|
||
# Create symbol links for binary files
|
||
ln -s -f /opt/durapps/spark-store/bin/ussinstall /usr/local/bin/ussinstall
|
||
ln -s -f /opt/durapps/spark-store/bin/ussremove /usr/local/bin/ussremove
|
||
ln -s -f /opt/durapps/spark-store/bin/spark-store /usr/local/bin/spark-store
|
||
ln -s -f /opt/durapps/spark-store/bin/ssinstall /usr/local/bin/ssinstall
|
||
ln -s -f /opt/durapps/spark-store/bin/spark-dstore-patch /usr/local/bin/spark-dstore-patch
|
||
ln -s -f /opt/durapps/spark-store/bin/aptss /usr/local/bin/ss-apt-fast
|
||
|
||
ln -s -f /opt/durapps/spark-store/bin/aptss /usr/bin/aptss
|
||
|
||
|
||
|
||
# Download and install key
|
||
mkdir -p /tmp/spark-store-install/
|
||
cp -f /opt/durapps/spark-store/bin/spark-store.asc /tmp/spark-store-install/spark-store.asc
|
||
gpg --dearmor /tmp/spark-store-install/spark-store.asc
|
||
cp -f /tmp/spark-store-install/spark-store.asc.gpg /etc/apt/trusted.gpg.d/spark-store.gpg
|
||
|
||
|
||
|
||
# Run apt update to avoid users being fucked up by the non-exist dependency problem
|
||
|
||
aptss ssupdate
|
||
|
||
|
||
# Start upgrade detect service
|
||
systemctl enable spark-update-notifier
|
||
service spark-update-notifier start
|
||
|
||
|
||
# Update certain caches
|
||
update-icon-caches /usr/share/icons/hicolor || true
|
||
update-desktop-database /usr/share/applications || true
|
||
xdg-mime default spark-store.desktop x-scheme-handler/spk
|
||
update-mime-database /usr/share/mime || true
|
||
|
||
# Send email for statistics
|
||
# /tmp/spark-store-install/feedback.sh
|
||
|
||
# Remove temp dir
|
||
rm -rf /tmp/spark-store-install
|
||
|
||
|
||
;;
|
||
|
||
triggered)
|
||
# Quit if deepin-app-store-tool existed
|
||
if [ -x "/usr/bin/deepin-app-store-tool" ] ; then
|
||
exit 0
|
||
fi
|
||
|
||
# Trigger for UOS debs installation
|
||
echo '--------检测到Uniontech标准软件包,运行补丁以修正安装--------'
|
||
if [ -x "/usr/local/bin/spark-dstore-patch" ] ; then
|
||
/usr/local/bin/spark-dstore-patch
|
||
echo '-----------spark-dstore-patch补丁工具已运行完毕-----------'
|
||
else
|
||
echo '------------spark-dstore-patch补丁工具运行失败------------'
|
||
fi
|
||
;;
|
||
esac
|