File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ echo " WARNING: The Full application in the AppImage only work on the build system. Only the Generator work portable for now!"
4+
35if [ ! -f ./linuxdeploy-x86_64.AppImage ]; then
46 wget -c " https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
57fi
Original file line number Diff line number Diff line change 11import setuptools
22import os
3+ import glob
34import sys
45import git # pip install gitpython
56
7+ from pathlib import Path
8+
69PACKAGE = 'funscript_editor'
710DESCRIPTION = "A tool to create funscripts"
811INCLUDE_REQUIREMENTS = False
12+ DOCS = ['docs/app/site' , 'docs/code/_build/html' ]
913
1014TAGS = sorted (git .Repo ('.' ).tags , key = lambda x : x .commit .committed_datetime ) if os .path .exists ('.git' ) else []
1115VERSION = str (TAGS [- 1 ]) if len (TAGS ) > 0 else "0.0.0"
1519 if x .startswith (PACKAGE + os .sep ) \
1620 and os .path .exists (x )]
1721
18- docs = [os .path .join ('.' , x ) \
19- for x in git .Git ('.' ).ls_files ().splitlines () \
20- if x .startswith ('docs' + os .sep ) \
21- and os .path .exists (x )]
22+ docs = []
23+ for docs_dir in DOCS :
24+ docs += [os .path .join ('.' , x ) \
25+ for x in Path (docs_dir ).rglob ('**/*' ) \
26+ if os .path .isfile (x )]
2227
2328with open ("README.md" , "r" , encoding = "utf-8" ) as f :
2429 long_description = f .read ()
3439
3540with open (os .path .join (PACKAGE , 'VERSION.txt' ), 'w' ) as f :
3641 f .write (VERSION )
42+ src += [os .path .join ('..' , PACKAGE , 'VERSION.txt' )]
3743
3844setuptools .setup (
3945 name = PACKAGE .replace ('_' , '-' ),
You can’t perform that action at this time.
0 commit comments