first commit
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/*.pkg.tar.zst
|
||||
/src/
|
||||
/pkg/
|
||||
50
PKGBUILD
Normal file
50
PKGBUILD
Normal file
@@ -0,0 +1,50 @@
|
||||
# Maintainer: zj <1052308357@qq.com>
|
||||
|
||||
pkgname=disk-manager
|
||||
pkgver=$(date +%Y.%m)
|
||||
pkgrel=$(date +%d)
|
||||
pkgdesc="disk-manager application ."
|
||||
arch=('x86_64')
|
||||
url="https://yuyujing.cn/"
|
||||
license=('Proprietary')
|
||||
|
||||
|
||||
source=("disk-manager"
|
||||
"disk-manager.desktop"
|
||||
"disk-manager.png")
|
||||
|
||||
sha256sums=('SKIP'
|
||||
'SKIP'
|
||||
'SKIP')
|
||||
|
||||
install="${pkgname}.install"
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"
|
||||
}
|
||||
|
||||
build() {
|
||||
msg "No build step required for this package."
|
||||
}
|
||||
|
||||
package() {
|
||||
local _app_base_dir="/opt/disk-manager"
|
||||
|
||||
# 1. 创建目标目录
|
||||
install -d -m777 "${pkgdir}${_app_base_dir}"
|
||||
|
||||
|
||||
install -d "${pkgdir}/usr/bin"
|
||||
install -d "${pkgdir}/usr/share/applications"
|
||||
|
||||
# 2. 复制应用程序文件
|
||||
# 进入已解压的 tarball 目录
|
||||
cd "${srcdir}"
|
||||
|
||||
install -m644 disk-manager.desktop "${pkgdir}/usr/share/applications/disk-manager.desktop"
|
||||
install -m755 disk-manager "${pkgdir}${_app_base_dir}/disk-manager"
|
||||
install -m755 disk-manager.png "${pkgdir}${_app_base_dir}/disk-manager.png"
|
||||
|
||||
|
||||
|
||||
}
|
||||
9
build-disk-manager.sh
Executable file
9
build-disk-manager.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -rf pkg src disk-manager*.pkg.tar.zst
|
||||
|
||||
makepkg -s
|
||||
|
||||
#echo "use makepkg -s"
|
||||
#mv tms-calamares-config*.pkg.tar.zst /home/smart/tms/custompkgs/x86_64/
|
||||
|
||||
BIN
disk-manager
Executable file
BIN
disk-manager
Executable file
Binary file not shown.
13
disk-manager.desktop
Normal file
13
disk-manager.desktop
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env xdg-open
|
||||
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Categories=TMS
|
||||
Terminal=false
|
||||
Icon[zh_CN]=/opt/disk-manager/disk-manager.png
|
||||
Name[zh_CN]=Linux磁盤管理器
|
||||
Exec=sudo /opt/disk-manager/disk-manager
|
||||
Name=disk-manager
|
||||
Icon=/opt/disk-manager/disk-manager.png
|
||||
Categories=Qt;System;
|
||||
29
disk-manager.install
Normal file
29
disk-manager.install
Normal file
@@ -0,0 +1,29 @@
|
||||
# post_install: 在软件包安装后执行
|
||||
post_install() {
|
||||
update-desktop-database /usr/share/applications
|
||||
|
||||
echo "cp desktop"
|
||||
cp -f '/usr/share/applications/disk-manager.desktop' /home/smart/Desktop
|
||||
cp -f '/usr/share/applications/disk-manager.desktop' /home/liveuser/Desktop
|
||||
|
||||
echo "Configuration complete."
|
||||
|
||||
}
|
||||
|
||||
|
||||
pre_upgrade() {
|
||||
echo "pre_upgrade."
|
||||
rm -rf /home/smart/Desktop/disk-manager.desktop
|
||||
rm -rf /home/liveuser/Desktop/disk-manager.desktop
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
update-desktop-database /usr/share/applications
|
||||
|
||||
echo "cp desktop"
|
||||
cp -f '/usr/share/applications/disk-manager.desktop' /home/smart/Desktop
|
||||
cp -f '/usr/share/applications/disk-manager.desktop' /home/liveuser/Desktop
|
||||
|
||||
echo "Configuration complete."
|
||||
|
||||
}
|
||||
BIN
disk-manager.png
Normal file
BIN
disk-manager.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
68
up+.sh
Executable file
68
up+.sh
Executable file
@@ -0,0 +1,68 @@
|
||||
#!/bin/bash
|
||||
#set -e
|
||||
##################################################################################################################
|
||||
# Author : Erik Dubois
|
||||
# Website : https://www.erikdubois.be
|
||||
# Website : https://www.alci.online
|
||||
# Website : https://www.ariser.eu
|
||||
# Website : https://www.arcolinux.info
|
||||
# Website : https://www.arcolinux.com
|
||||
# Website : https://www.arcolinuxd.com
|
||||
# Website : https://www.arcolinuxb.com
|
||||
# Website : https://www.arcolinuxiso.com
|
||||
# Website : https://www.arcolinuxforum.com
|
||||
##################################################################################################################
|
||||
#
|
||||
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
|
||||
#
|
||||
##################################################################################################################
|
||||
#tput setaf 0 = black
|
||||
#tput setaf 1 = red
|
||||
#tput setaf 2 = green
|
||||
#tput setaf 3 = yellow
|
||||
#tput setaf 4 = dark blue
|
||||
#tput setaf 5 = purple
|
||||
#tput setaf 6 = cyan
|
||||
#tput setaf 7 = gray
|
||||
#tput setaf 8 = light blue
|
||||
##################################################################################################################
|
||||
|
||||
# reset - commit your changes or stash them before you merge
|
||||
# git reset --hard - personal alias - grh
|
||||
|
||||
echo "Deleting the work folder if one exists"
|
||||
[ -d work ] && rm -rf work
|
||||
|
||||
# checking if I have the latest files from github
|
||||
echo "Checking for newer files online first"
|
||||
git pull
|
||||
|
||||
# Below command will backup everything inside the project folder
|
||||
git add --all .
|
||||
|
||||
# Give a comment to the commit if you want
|
||||
echo "####################################"
|
||||
echo "Write your commit comment!"
|
||||
echo "####################################"
|
||||
|
||||
read input
|
||||
|
||||
# Committing to the local repository with a message containing the time details and commit text
|
||||
|
||||
git commit -m "$input"
|
||||
|
||||
# Push the local files to github
|
||||
|
||||
if grep -q main .git/config; then
|
||||
echo "Using main"
|
||||
git push -u origin main
|
||||
fi
|
||||
|
||||
if grep -q master .git/config; then
|
||||
echo "Using master"
|
||||
git push -u origin master
|
||||
fi
|
||||
|
||||
echo "################################################################"
|
||||
echo "################### Git Push Done ######################"
|
||||
echo "################################################################"
|
||||
Reference in New Issue
Block a user