mirror of
https://gitee.com/spark-store-project/uos-packaging-tools
synced 2025-12-19 05:21:41 +08:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ea167c0021 | |||
| 02e21e40c3 | |||
| eb6984a9d1 | |||
| 130906af43 | |||
| 585307d4b3 | |||
| 1b8be00011 |
@@ -1,9 +1,9 @@
|
||||
Package: uos-packaging-tools
|
||||
Version: 1.0.1
|
||||
Version: 1.0.5
|
||||
Architecture: all
|
||||
Maintainer: shenmo<shenmo@spark-app.store>
|
||||
Installed-Size: 10
|
||||
Depends: libnotify-bin,fakeroot,zstd,store.spark-app.appimage2deb | appimage2deb ,policykit-1
|
||||
Depends: libnotify-bin,fakeroot,zstd,cn.flamescion.appimage2deb | appimage2deb ,policykit-1
|
||||
Section: graphics
|
||||
Priority: optional
|
||||
Description: uos-packaging-tools
|
||||
|
||||
@@ -7,6 +7,9 @@ fi
|
||||
|
||||
for deb_file in "$@"
|
||||
do
|
||||
|
||||
deb_file="${deb_file#file://}"
|
||||
|
||||
cd "$(dirname "$deb_file")"
|
||||
|
||||
# 获取deb包的包名和架构
|
||||
|
||||
@@ -14,6 +14,9 @@ unpack_package() {
|
||||
}
|
||||
|
||||
for arg in "$@"; do
|
||||
|
||||
arg="${arg#file://}"
|
||||
|
||||
unpack_package "$arg"
|
||||
done
|
||||
|
||||
|
||||
@@ -15,6 +15,11 @@ if [ -e /usr/local/bin/ssaudit ];then
|
||||
|
||||
for DEBPATH in "$@"
|
||||
do
|
||||
|
||||
|
||||
DEBPATH="${DEBPATH#file://}"
|
||||
|
||||
|
||||
DEBPATH=$(realpath "$DEBPATH")
|
||||
notify-send "正在使用ssaudit安装 $(dpkg-deb -f "$DEBPATH" Package),请稍候...." -i /usr/share/icons/uos-packaging-tools.png
|
||||
/usr/local/bin/ssaudit "$DEBPATH"
|
||||
@@ -30,6 +35,10 @@ else
|
||||
|
||||
for DEBPATH in "$@"
|
||||
do
|
||||
if [[ $DEBPATH == file://* ]]; then
|
||||
# 如果是,移除 'file://' 部分并输出结果
|
||||
DEBPATH="${DEBPATH#file://}"
|
||||
fi
|
||||
DEBPATH=$(realpath "$DEBPATH")
|
||||
notify-send "正在使用apt安装 $(dpkg-deb -f "$DEBPATH" Package),请稍候...." -i /usr/share/icons/uos-packaging-tools.png
|
||||
apt install "$DEBPATH" --reinstall -y
|
||||
|
||||
@@ -5,6 +5,9 @@ OUTPATH=""
|
||||
|
||||
for DEBPATH in "$@"
|
||||
do
|
||||
|
||||
DEBPATH="${DEBPATH#file://}"
|
||||
|
||||
rm -rf $TMPDIR/unpack-dir
|
||||
mkdir -p "$TMPDIR/unpack-dir"
|
||||
cd "$TMPDIR/unpack-dir"
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
#!/bin/bash
|
||||
if [ "$1" != "" ];then
|
||||
opt=$1
|
||||
if [[ $1 == file://* ]]; then
|
||||
# 如果是,移除 'file://' 部分并输出结果
|
||||
opt="${1#file://}"
|
||||
else
|
||||
# 如果不是,直接输出原始路径
|
||||
opt=$1
|
||||
fi
|
||||
|
||||
else
|
||||
opt=`pwd`
|
||||
fi
|
||||
notify-send `basename $opt`开始打包 -i /usr/share/icons/uos-packaging-tools.png
|
||||
dpkg-deb -Z xz -b $opt $opt/..
|
||||
notify-send `basename $opt`打包完成 -i /usr/share/icons/uos-packaging-tools.png
|
||||
exit
|
||||
|
||||
9
src/usr/share/applications/pack-this-dir.desktop
Normal file
9
src/usr/share/applications/pack-this-dir.desktop
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Exec=/usr/bin/pack %F
|
||||
Name=Pack This Dir
|
||||
Icon=uos-packaging-tools
|
||||
Type=Application
|
||||
X-DFM-MenuTypes=SingleFile;SingleDir;MultiFileDirs;
|
||||
Terminal=false
|
||||
MimeType=inode/directory;
|
||||
NoDisplay=true
|
||||
@@ -4,6 +4,8 @@ Name=Pack Here
|
||||
Icon=uos-packaging-tools
|
||||
Type=Application
|
||||
X-DFM-MenuTypes=EmptyArea;
|
||||
Terminal=true
|
||||
Terminal=false
|
||||
MimeType=inode/directory;
|
||||
NoDisplay=true
|
||||
Version=1.0
|
||||
X-DDE-FileManager-NotShowIn=Desktop
|
||||
|
||||
@@ -4,6 +4,7 @@ Name=Pack This Dir
|
||||
Icon=uos-packaging-tools
|
||||
Type=Application
|
||||
X-DFM-MenuTypes=SingleFile;SingleDir;MultiFileDirs;
|
||||
Terminal=true
|
||||
Terminal=false
|
||||
MimeType=inode/directory;
|
||||
NoDisplay=true
|
||||
X-DDE-FileManager-PosNum=1
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<!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>
|
||||
<vendor>Flamescion</vendor>
|
||||
<icon_name>x-package-repository</icon_name>
|
||||
<action id="store.spark-app.ssinstall">
|
||||
<action id="cn.flamescion.uos-packaging-tools-just-install-me">
|
||||
<description>运行justinstallme需要权限</description>
|
||||
<message>要使用ssinstall需要权限</message>
|
||||
<defaults>
|
||||
Reference in New Issue
Block a user