mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 00:52:16 -06:00
v1.3.13
This commit is contained in:
parent
7a460de3c2
commit
389a00ce59
|
@ -1,8 +1,8 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
VERSION = (1, 3, 12)
|
VERSION = (1, 3, 13)
|
||||||
CODENAME = "god dag"
|
CODENAME = "god dag"
|
||||||
BUILD_DT = (2022, 8, 13)
|
BUILD_DT = (2022, 8, 15)
|
||||||
|
|
||||||
S_VERSION = ".".join(map(str, VERSION))
|
S_VERSION = ".".join(map(str, VERSION))
|
||||||
S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)
|
S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)
|
||||||
|
|
|
@ -1,3 +1,26 @@
|
||||||
|
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||||
|
# 2022-0812-2258 `v1.3.12` quickboot
|
||||||
|
|
||||||
|
* read-only demo server at https://a.ocv.me/pub/demo/
|
||||||
|
* latest gzip edition of the sfx: [v1.0.14](https://github.com/9001/copyparty/releases/tag/v1.0.14#:~:text=release-specific%20notes)
|
||||||
|
|
||||||
|
## new features
|
||||||
|
*but wait, there's more!* not only do you get the [multithreaded file hashing](https://github.com/9001/copyparty/releases/tag/v1.3.11) but also --
|
||||||
|
* faster bootup and volume reindexing when `-e2ds` (file indexing) is enabled
|
||||||
|
* `3x` faster is probably the average on most instances; more files per folder = faster
|
||||||
|
* `9x` faster on a 36 TiB zfs music/media nas with `-e2ts` (metadata indexing), dropping from 46sec to 5sec
|
||||||
|
* and `34x` on another zfs box, 63sec -> 1.8sec
|
||||||
|
* new arg `--no-dhash` disables the speedhax in case it's buggy (skipping files or audio tags)
|
||||||
|
* add option `--exit idx` to abort and shutdown after volume indexing has finished
|
||||||
|
|
||||||
|
## bugfixes
|
||||||
|
* [u2cli](https://github.com/9001/copyparty/tree/hovudstraum/bin#up2kpy): detect and skip uploading from recursive symlinks
|
||||||
|
* stop reindexing empty files on startup
|
||||||
|
* support fips-compliant cpython builds
|
||||||
|
* replaces md5 with sha1, changing the filetype-associated colors in the gallery view
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||||
# 2022-0810-2135 `v1.3.11` webworkers
|
# 2022-0810-2135 `v1.3.11` webworkers
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,9 @@ pybin=$(command -v python3 || command -v python) || {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ $CSN ] ||
|
||||||
|
CSN=sfx
|
||||||
|
|
||||||
langs=
|
langs=
|
||||||
use_gz=
|
use_gz=
|
||||||
zopf=2560
|
zopf=2560
|
||||||
|
@ -99,9 +102,9 @@ stamp=$(
|
||||||
done | sort | tail -n 1 | sha1sum | cut -c-16
|
done | sort | tail -n 1 | sha1sum | cut -c-16
|
||||||
)
|
)
|
||||||
|
|
||||||
rm -rf sfx/*
|
rm -rf $CSN/*
|
||||||
mkdir -p sfx build
|
mkdir -p $CSN build
|
||||||
cd sfx
|
cd $CSN
|
||||||
|
|
||||||
tmpdir="$(
|
tmpdir="$(
|
||||||
printf '%s\n' "$TMPDIR" /tmp |
|
printf '%s\n' "$TMPDIR" /tmp |
|
||||||
|
@ -237,7 +240,7 @@ ts=$(date -u +%s)
|
||||||
hts=$(date -u +%Y-%m%d-%H%M%S) # --date=@$ts (thx osx)
|
hts=$(date -u +%Y-%m%d-%H%M%S) # --date=@$ts (thx osx)
|
||||||
|
|
||||||
mkdir -p ../dist
|
mkdir -p ../dist
|
||||||
sfx_out=../dist/copyparty-sfx
|
sfx_out=../dist/copyparty-$CSN
|
||||||
|
|
||||||
echo cleanup
|
echo cleanup
|
||||||
find -name '*.pyc' -delete
|
find -name '*.pyc' -delete
|
||||||
|
@ -371,7 +374,7 @@ gzres() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
zdir="$tmpdir/cpp-mksfx"
|
zdir="$tmpdir/cpp-mk$CSN"
|
||||||
[ -e "$zdir/$stamp" ] || rm -rf "$zdir"
|
[ -e "$zdir/$stamp" ] || rm -rf "$zdir"
|
||||||
mkdir -p "$zdir"
|
mkdir -p "$zdir"
|
||||||
echo a > "$zdir/$stamp"
|
echo a > "$zdir/$stamp"
|
||||||
|
@ -423,7 +426,7 @@ pe=bz2
|
||||||
|
|
||||||
echo compressing tar
|
echo compressing tar
|
||||||
# detect best level; bzip2 -7 is usually better than -9
|
# detect best level; bzip2 -7 is usually better than -9
|
||||||
for n in {2..9}; do cp tar t.$n; $pc -$n t.$n & done; wait; mv -v $(ls -1S t.*.$pe | tail -n 1) tar.bz2
|
for n in {2..9}; do cp tar t.$n; nice $pc -$n t.$n & done; wait; mv -v $(ls -1S t.*.$pe | tail -n 1) tar.bz2
|
||||||
rm t.* || true
|
rm t.* || true
|
||||||
exts=()
|
exts=()
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
parallel=2
|
||||||
|
|
||||||
cd ~/dev/copyparty/scripts
|
cd ~/dev/copyparty/scripts
|
||||||
|
|
||||||
v=$1
|
v=$1
|
||||||
|
@ -21,16 +23,31 @@ v=$1
|
||||||
./make-tgz-release.sh $v
|
./make-tgz-release.sh $v
|
||||||
}
|
}
|
||||||
|
|
||||||
rm -f ../dist/copyparty-sfx.*
|
rm -f ../dist/copyparty-sfx*
|
||||||
shift
|
shift
|
||||||
./make-sfx.sh "$@"
|
./make-sfx.sh "$@"
|
||||||
f=../dist/copyparty-sfx.py
|
f=../dist/copyparty-sfx
|
||||||
[ -e $f ] ||
|
[ -e $f.py ] ||
|
||||||
f=../dist/copyparty-sfx-gz.py
|
f=../dist/copyparty-sfx-gz
|
||||||
|
|
||||||
|
$f.py -h >/dev/null
|
||||||
|
|
||||||
|
[ $parallel -gt 1 ] && {
|
||||||
|
printf '\033[%s' s 2r H "0;1;37;44mbruteforcing sfx size -- press enter to terminate" K u "7m $* " K $'27m\n'
|
||||||
|
trap "rm -f .sfx-run; printf '\033[%s' s r u" INT TERM EXIT
|
||||||
|
touch .sfx-run
|
||||||
|
for ((a=0; a<$parallel; a++)); do
|
||||||
|
while [ -e .sfx-run ]; do
|
||||||
|
CSN=sfx$a ./make-sfx.sh re "$@"
|
||||||
|
mv $f$a.py $f.$(wc -c <$f$a.py | awk '{print$1}').py
|
||||||
|
done &
|
||||||
|
done
|
||||||
|
read
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
$f -h
|
|
||||||
while true; do
|
while true; do
|
||||||
mv $f $f.$(wc -c <$f | awk '{print$1}')
|
mv $f.py $f.$(wc -c <$f.py | awk '{print$1}').py
|
||||||
./make-sfx.sh re "$@"
|
./make-sfx.sh re "$@"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue