Skip to content

Commit 7b5f4c7

Browse files
author
arch
committed
update build scripts
1 parent 4a7627e commit 7b5f4c7

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

docs/app/build.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/sh
22

3-
mkdocs build
3+
if [ -z "$(pip3 list | grep "mkdocs")" ] ; then
4+
echo "install mkdocs"
5+
pip3 install mkdocs
6+
fi
7+
8+
if command -v mkdocs ; then
9+
mkdocs build
10+
else
11+
python3 -m mkdocs -- build
12+
fi
413

514
# [ -f ./site/index.html ] && command -v firefox && firefox ./site/index.html & disown

docs/code/generate_doc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if ! command -v sphinx-apidoc ; then
1919
fi
2020

2121
if [ -z "$(pip3 list | grep "sphinx-rtd-theme")" ] ; then
22+
echo "install sphinx-rtd-theme"
2223
pip3 install sphinx-rtd-theme
2324
fi
2425

funscript_editor/config/settings.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ max_playback_fps: 0
2020
# or width of the screen depending on the aspect ratio of the video.
2121
preview_scaling: 0.6
2222

23-
# Set the video type. All available options can be obtained from the projection.yaml file.
24-
# Each root keys represent an option.
25-
#
26-
# Available Options:
23+
# Set the video type. Available Options:
2724
# - 'flat': 2D Videos
2825
# - 'vr_he_sbs': 3D VR Side-By-Side Video
2926
projection: 'vr_he_sbs'

setup.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
PACKAGE = 'funscript_editor'
77
DESCRIPTION = "A tool to create funscripts"
8+
INCLUDE_REQUIREMENTS = False
89

910
TAGS = sorted(git.Repo('.').tags, key=lambda x: x.commit.committed_datetime) if os.path.exists('.git') else []
1011
VERSION = str(TAGS[-1]) if len(TAGS) > 0 else "0.0.0"
@@ -22,11 +23,14 @@
2223
with open("README.md", "r", encoding="utf-8") as f:
2324
long_description = f.read()
2425

25-
with open("requirements.txt", "r", encoding="utf-8") as f:
26-
requirements = [x.strip() for x in f.readlines()\
27-
if not any(a in x.lower() for a in ['opencv', 'pyqt'])]
28-
#NOTE: I recommend to install this packages with your favorite package manager.
29-
# Otherwise they will not work reliably. e.g. use pacman -Sy python-opencv python-pyqt5 ...
26+
if INCLUDE_REQUIREMENTS:
27+
with open("requirements.txt", "r", encoding="utf-8") as f:
28+
requirements = [x.strip() for x in f.readlines()\
29+
if not any(a in x.lower() for a in ['opencv', 'pyqt'])]
30+
#NOTE: I recommend to install this packages with your favorite package manager.
31+
# Otherwise they will not work reliably. e.g. use pacman -Sy python-opencv python-pyqt5 ...
32+
else:
33+
requirements = []
3034

3135
with open(os.path.join(PACKAGE, 'VERSION.txt'), 'w') as f:
3236
f.write(VERSION)

0 commit comments

Comments
 (0)