mirror of
https://github.com/9001/copyparty.git
synced 2026-03-28 19:12:46 +10:00
add landing page with mounting instructions
This commit is contained in:
@@ -92,7 +92,11 @@ rm -rf build/pypi
|
||||
mkdir -p build/pypi
|
||||
cp -pR setup.py README.md LICENSE copyparty tests bin scripts/strip_hints build/pypi/
|
||||
cd build/pypi
|
||||
tar --strip-components=2 -xf ../strip-hints-0.1.10.tar.gz strip-hints-0.1.10/src/strip_hints
|
||||
f=../strip-hints-0.1.10.tar.gz
|
||||
[ -e $f ] ||
|
||||
(url=https://files.pythonhosted.org/packages/9c/d4/312ddce71ee10f7e0ab762afc027e07a918f1c0e1be5b0069db5b0e7542d/strip-hints-0.1.10.tar.gz;
|
||||
wget -O$f "$url" || curl -L "$url" >$f)
|
||||
tar --strip-components=2 -xf $f strip-hints-0.1.10/src/strip_hints
|
||||
python3 -c 'from strip_hints.a import uh; uh("copyparty")'
|
||||
|
||||
./setup.py clean2
|
||||
|
||||
@@ -245,6 +245,21 @@ tmpdir="$(
|
||||
}
|
||||
rm -f ../tar
|
||||
|
||||
# resolve symlinks
|
||||
find -type l |
|
||||
while IFS= read -r f1; do (
|
||||
cd "${f1%/*}"
|
||||
f1="./${f1##*/}"
|
||||
f2="$(readlink "$f1")"
|
||||
[ -e "$f2" ] || f2="../$f2"
|
||||
[ -e "$f2" ] || {
|
||||
echo could not resolve "$f1"
|
||||
exit 1
|
||||
}
|
||||
rm "$f1"
|
||||
cp -pv "$f2" "$f1"
|
||||
); done
|
||||
|
||||
# insert asynchat
|
||||
mkdir copyparty/vend
|
||||
for n in asyncore.py asynchat.py; do
|
||||
|
||||
@@ -25,6 +25,7 @@ copyparty/res,
|
||||
copyparty/res/COPYING.txt,
|
||||
copyparty/res/insecure.pem,
|
||||
copyparty/smbd.py,
|
||||
copyparty/ssdp.py,
|
||||
copyparty/star.py,
|
||||
copyparty/stolen,
|
||||
copyparty/stolen/__init__.py,
|
||||
@@ -57,6 +58,9 @@ copyparty/vend,
|
||||
copyparty/vend/asynchat.py,
|
||||
copyparty/vend/asyncore.py,
|
||||
copyparty/web,
|
||||
copyparty/web/a,
|
||||
copyparty/web/a/up2k.py,
|
||||
copyparty/web/a/webdav-cfg.bat,
|
||||
copyparty/web/baguettebox.js,
|
||||
copyparty/web/browser.css,
|
||||
copyparty/web/browser.html,
|
||||
@@ -94,6 +98,8 @@ copyparty/web/msg.html,
|
||||
copyparty/web/splash.css,
|
||||
copyparty/web/splash.html,
|
||||
copyparty/web/splash.js,
|
||||
copyparty/web/svcs.html,
|
||||
copyparty/web/svcs.js,
|
||||
copyparty/web/ui.css,
|
||||
copyparty/web/up2k.js,
|
||||
copyparty/web/util.js,
|
||||
|
||||
Reference in New Issue
Block a user