mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix installing from source tarball
This commit is contained in:
parent
33442026b8
commit
8790f89e08
|
@ -17,6 +17,7 @@
|
||||||
* [building](#building)
|
* [building](#building)
|
||||||
* [dev env setup](#dev-env-setup)
|
* [dev env setup](#dev-env-setup)
|
||||||
* [just the sfx](#just-the-sfx)
|
* [just the sfx](#just-the-sfx)
|
||||||
|
* [build from release tarball](#build-from-release-tarball) - uses the included prebuilt webdeps
|
||||||
* [complete release](#complete-release)
|
* [complete release](#complete-release)
|
||||||
* [todo](#todo) - roughly sorted by priority
|
* [todo](#todo) - roughly sorted by priority
|
||||||
* [discarded ideas](#discarded-ideas)
|
* [discarded ideas](#discarded-ideas)
|
||||||
|
@ -255,10 +256,31 @@ then build the sfx using any of the following examples:
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## build from release tarball
|
||||||
|
|
||||||
|
uses the included prebuilt webdeps
|
||||||
|
|
||||||
|
if you downloaded a [release](https://github.com/9001/copyparty/releases) source tarball from github (for example [copyparty-1.6.15.tar.gz](https://github.com/9001/copyparty/releases/download/v1.6.15/copyparty-1.6.15.tar.gz) so not the autogenerated one) you can build it like so,
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python3 setup.py install --user
|
||||||
|
```
|
||||||
|
|
||||||
|
or if you're packaging it for a linux distro (nice), maybe something like
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bash scripts/run-tests.sh python3 # optional
|
||||||
|
python3 setup.py build
|
||||||
|
python3 setup.py install --skip-build --prefix=/usr --root=$HOME/pe/copyparty
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## complete release
|
## complete release
|
||||||
|
|
||||||
also builds the sfx so skip the sfx section above
|
also builds the sfx so skip the sfx section above
|
||||||
|
|
||||||
|
does everything completely from scratch, straight from your local repo
|
||||||
|
|
||||||
in the `scripts` folder:
|
in the `scripts` folder:
|
||||||
|
|
||||||
* run `make -C deps-docker` to build all dependencies
|
* run `make -C deps-docker` to build all dependencies
|
||||||
|
|
|
@ -64,6 +64,8 @@ git archive hovudstraum | tar -xC "$rls_dir"
|
||||||
echo ">>> export untracked deps"
|
echo ">>> export untracked deps"
|
||||||
tar -c copyparty/web/deps | tar -xC "$rls_dir"
|
tar -c copyparty/web/deps | tar -xC "$rls_dir"
|
||||||
|
|
||||||
|
scripts/genlic.sh "$rls_dir/copyparty/res/COPYING.txt"
|
||||||
|
|
||||||
cd "$rls_dir"
|
cd "$rls_dir"
|
||||||
find -type d -exec chmod 755 '{}' \+
|
find -type d -exec chmod 755 '{}' \+
|
||||||
find -type f -exec chmod 644 '{}' \+
|
find -type f -exec chmod 644 '{}' \+
|
||||||
|
@ -93,7 +95,7 @@ rm \
|
||||||
.gitattributes \
|
.gitattributes \
|
||||||
.gitignore
|
.gitignore
|
||||||
|
|
||||||
mv LICENSE LICENSE.txt
|
cp -pv LICENSE LICENSE.txt
|
||||||
|
|
||||||
# the regular cleanup memes
|
# the regular cleanup memes
|
||||||
find -name '*.pyc' -delete
|
find -name '*.pyc' -delete
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
parallel=2
|
parallel=1
|
||||||
|
|
||||||
[ -e make-sfx.sh ] || cd scripts
|
[ -e make-sfx.sh ] || cd scripts
|
||||||
[ -e make-sfx.sh ] && [ -e deps-docker ] || {
|
[ -e make-sfx.sh ] && [ -e deps-docker ] || {
|
||||||
|
|
Loading…
Reference in a new issue