mirror of
https://gitee.com/spark-store-project/uos-packaging-tools
synced 2025-10-09 11:22:22 +08:00
支持在文件夹打开的调用方式;修复社区版上pack无效的问题
This commit is contained in:
parent
585307d4b3
commit
130906af43
@ -1,5 +1,5 @@
|
||||
Package: uos-packaging-tools
|
||||
Version: 1.0.2
|
||||
Version: 1.0.3
|
||||
Architecture: all
|
||||
Maintainer: shenmo<shenmo@spark-app.store>
|
||||
Installed-Size: 10
|
||||
|
@ -1,6 +1,13 @@
|
||||
#!/bin/bash
|
||||
if [ "$1" != "" ];then
|
||||
opt=$1
|
||||
if [[ $1 == file://* ]]; then
|
||||
# 如果是,移除 'file://' 部分并输出结果
|
||||
opt="${1#file://}"
|
||||
else
|
||||
# 如果不是,直接输出原始路径
|
||||
opt=$1
|
||||
fi
|
||||
|
||||
else
|
||||
opt=`pwd`
|
||||
fi
|
||||
|
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>
|
Loading…
x
Reference in New Issue
Block a user