commit 7cae9bc06fa5c3cca7e5aade6fc5ed25bc74d722 Author: zj <1052308357@qq.comm> Date: Tue Feb 3 04:51:39 2026 +0800 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..453792e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/*.pkg.tar.zst +/src/ +/pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7240642 --- /dev/null +++ b/PKGBUILD @@ -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" + + + +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..6582761 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# disk-mmanager diff --git a/build-disk-manager.sh b/build-disk-manager.sh new file mode 100755 index 0000000..62a26ff --- /dev/null +++ b/build-disk-manager.sh @@ -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/ + diff --git a/disk-manager b/disk-manager new file mode 100755 index 0000000..a0313ad Binary files /dev/null and b/disk-manager differ diff --git a/disk-manager.desktop b/disk-manager.desktop new file mode 100644 index 0000000..88d8f92 --- /dev/null +++ b/disk-manager.desktop @@ -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; diff --git a/disk-manager.install b/disk-manager.install new file mode 100644 index 0000000..066bcff --- /dev/null +++ b/disk-manager.install @@ -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." + +} diff --git a/disk-manager.png b/disk-manager.png new file mode 100644 index 0000000..7e04116 Binary files /dev/null and b/disk-manager.png differ diff --git a/up+.sh b/up+.sh new file mode 100755 index 0000000..1a6d204 --- /dev/null +++ b/up+.sh @@ -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 "################################################################"