Skip to content

Commit d64e41f

Browse files
committed
add some debugging options into the build process
1 parent 7c0edc6 commit d64e41f

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

build.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ set BASE_DIR=%~dp0
1616

1717
set SPEC=%BASE_DIR%\misc\Remote-Support-Tool.spec
1818
set TARGET=%BASE_DIR%\target
19+
set LOG_LEVEL=INFO
20+
:: set LOG_LEVEL=DEBUG
1921

2022
echo building application package
2123
echo specified by %SPEC%
2224
rmdir "%TARGET%" /s /q
2325
mkdir "%TARGET%"
2426
cd "%BASE_DIR%"
25-
"%BUILD%" --distpath="%TARGET%" --workpath="target\build" "%SPEC%"
27+
"%BUILD%" --log-level "%LOG_LEVEL%" --distpath "%TARGET%" --workpath "target\build" "%SPEC%"
2628
echo .... done.

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ set -e
1515
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1616
SPEC="$BASE_DIR"/misc/Remote-Support-Tool.spec
1717
TARGET="$BASE_DIR"/target
18+
LOG_LEVEL="INFO"
19+
#LOG_LEVEL="DEBUG"
1820

1921
echo "building application package"
2022
echo "specified by $SPEC"
2123
rm -Rf "$TARGET"
2224
mkdir -p "$TARGET"
2325
cd "$BASE_DIR"
24-
"$BUILD" --distpath="$TARGET" --workpath="target/build" "$SPEC"
26+
"$BUILD" --log-level "$LOG_LEVEL" --distpath "$TARGET" --workpath "target/build" "$SPEC"
2527

2628
set +e
2729

misc/Remote-Support-Tool.spec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ CONSOLE = False
1010
NAME = 'Remote-Support-Tool'
1111
EXCLUCES = []
1212

13+
# runtime python options
14+
# see https://pythonhosted.org/PyInstaller/spec-files.html#giving-run-time-python-options
15+
OPTIONS = []
16+
#OPTIONS = [('v', None, 'OPTION'),]
17+
1318
BASE_DIR = os.getcwd()
1419
SRC_DIR = os.path.join(BASE_DIR, 'src')
1520
RES_DIR = os.path.join(SRC_DIR, 'resources')
@@ -106,6 +111,7 @@ pyz = PYZ(a.pure)
106111

107112
exe = EXE(pyz,
108113
a.scripts,
114+
OPTIONS,
109115
a.binaries,
110116
a.zipfiles,
111117
a.datas,

0 commit comments

Comments
 (0)