pmt: f***
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -67,6 +67,7 @@ jobs:
|
|||||||
- name: Last small transactions
|
- name: Last small transactions
|
||||||
id: small-transactions
|
id: small-transactions
|
||||||
run: |
|
run: |
|
||||||
|
export CXX_64="${PWD}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++"
|
||||||
export CXX_VERSION=$(${CXX_64} --version | head -n 1)
|
export CXX_VERSION=$(${CXX_64} --version | head -n 1)
|
||||||
echo "CXX_VERSION=${CXX_VERSION}" >> $GITHUB_ENV
|
echo "CXX_VERSION=${CXX_VERSION}" >> $GITHUB_ENV
|
||||||
. ${{ env.PMT_SRCDIR }}/build/workflow/build.config
|
. ${{ env.PMT_SRCDIR }}/build/workflow/build.config
|
||||||
@@ -87,7 +88,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
/home/pmt/pmt*.xz
|
/home/pmt/pmt*.xz
|
||||||
/home/pmt/pmt*.deb
|
|
||||||
/home/pmt/pmt-objs-local.zip
|
/home/pmt/pmt-objs-local.zip
|
||||||
/home/pmt/mandoc.gz
|
/home/pmt/mandoc.gz
|
||||||
name: Partition Manager ${{ env.PMT_VERSION }} Release
|
name: Partition Manager ${{ env.PMT_VERSION }} Release
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
### Version 2.9.0 Changelog
|
### Version 2.9.1 Changelog
|
||||||
|
|
||||||
- All dependencies related to e2fsprogs were added into pmt for built-in mke2fs
|
- All dependencies related to e2fsprogs were added into pmt for built-in mke2fs
|
||||||
- Partition size displaying feature added
|
- Partition size displaying feature added
|
||||||
@@ -7,5 +7,5 @@
|
|||||||
- Some minor changes on compilation system
|
- Some minor changes on compilation system
|
||||||
|
|
||||||
```
|
```
|
||||||
END OF 2.9.0 UPDATE CHANGELOG
|
END OF 2.9.1 UPDATE CHANGELOG
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ function script_head() { printc " --- Partition Manager Termux Helper Script ---
|
|||||||
# For display help message
|
# For display help message
|
||||||
function view_help()
|
function view_help()
|
||||||
{
|
{
|
||||||
echo ${SILENT} -n "Usage: "
|
${SILENT} || echo -n "Usage: "
|
||||||
if echo "${0}" | grep "./" >&/dev/null; then
|
if echo "${0}" | grep "./" >&/dev/null; then
|
||||||
printc "${0} [OPTIONS]..."
|
printc "${0} [OPTIONS]..."
|
||||||
else
|
else
|
||||||
@@ -135,9 +135,11 @@ function download()
|
|||||||
local URL="https://github.com/${LOCAL_OWNER}/${LOCAL_REPO}/releases/tag/${LOCAL_RELEASE_TAG}/download/pmt-${LOCAL_ARCH}-${LOCAL_RELDATE}.xz"
|
local URL="https://github.com/${LOCAL_OWNER}/${LOCAL_REPO}/releases/tag/${LOCAL_RELEASE_TAG}/download/pmt-${LOCAL_ARCH}-${LOCAL_RELDATE}.xz"
|
||||||
local URL_MANDOC="https://github.com/${LOCAL_OWNER}/${LOCAL_REPO}/releases/tag/${LOCAL_RELEASE_TAG}/download/mandoc.gz"
|
local URL_MANDOC="https://github.com/${LOCAL_OWNER}/${LOCAL_REPO}/releases/tag/${LOCAL_RELEASE_TAG}/download/mandoc.gz"
|
||||||
|
|
||||||
|
cd "${LOCAL_TMPDIR}"
|
||||||
print "Downloading: 'pmt-${LOCAL_ARCH}-${LOCAL_RELDATE}.xz'..."
|
print "Downloading: 'pmt-${LOCAL_ARCH}-${LOCAL_RELDATE}.xz'..."
|
||||||
curl -L "${URL}" -o "${LOCAL_TMPDIR}/pmt-${LOCAL_ARCH}.xz" &>/dev/null \
|
wget "${URL}" &>/dev/null \
|
||||||
|| abort "Download failed!"
|
|| abort "Download failed!"
|
||||||
|
cd - &>/dev/null
|
||||||
|
|
||||||
HAVE_MANDOC=true
|
HAVE_MANDOC=true
|
||||||
print "Downloading mandoc..."
|
print "Downloading mandoc..."
|
||||||
@@ -156,8 +158,8 @@ function setup_packages()
|
|||||||
print "Updating mirrors..."
|
print "Updating mirrors..."
|
||||||
pkg update &>/dev/null || abort "Updating failed!"
|
pkg update &>/dev/null || abort "Updating failed!"
|
||||||
|
|
||||||
print "Installing xz-utils..."
|
print "Installing xz-utils, wget..."
|
||||||
pkg install -y xz-utils &>/dev/null \
|
pkg install -y xz-utils wget &>/dev/null \
|
||||||
|| abort "Installing failed!"
|
|| abort "Installing failed!"
|
||||||
|
|
||||||
print "Success."
|
print "Success."
|
||||||
@@ -183,7 +185,7 @@ function install_fn()
|
|||||||
cd "${LOCAL_TMPDIR}"
|
cd "${LOCAL_TMPDIR}"
|
||||||
|
|
||||||
print "Extracting package..."
|
print "Extracting package..."
|
||||||
if xz -d "$(basename *.xz)" ; then
|
if unxz "$(basename *.xz)" &>/dev/null; then
|
||||||
rm -f "pmt*.xz"
|
rm -f "pmt*.xz"
|
||||||
else
|
else
|
||||||
abort "Failed! Cannot extract pmt package."
|
abort "Failed! Cannot extract pmt package."
|
||||||
@@ -229,7 +231,6 @@ trap "cleanup" SIGQUIT
|
|||||||
PACKAGE=false
|
PACKAGE=false
|
||||||
ALREADY_SHIFT=false
|
ALREADY_SHIFT=false
|
||||||
HAVE_MANDOC=false
|
HAVE_MANDOC=false
|
||||||
# set -x
|
|
||||||
|
|
||||||
# Process arguments
|
# Process arguments
|
||||||
while (($# >= 1)); do
|
while (($# >= 1)); do
|
||||||
@@ -286,7 +287,7 @@ done
|
|||||||
### Main ###
|
### Main ###
|
||||||
[ -z "${1}" -a "${SOME_SPEC}" != 1 ] && view_help && exit 1
|
[ -z "${1}" -a "${SOME_SPEC}" != 1 ] && view_help && exit 1
|
||||||
|
|
||||||
if [ "${PROCESS}" -le 2 ]; then
|
if [ "${PROCESS}" = 1 -o "${PROCESS}" = 2 ]; then
|
||||||
script_head
|
script_head
|
||||||
really_termux
|
really_termux
|
||||||
gen_tempdir
|
gen_tempdir
|
||||||
|
|||||||
Reference in New Issue
Block a user