Skip to content

Commit b5bcf70

Browse files
committed
[build] Add missing pre-release script invocation for Windows build on Github.
1 parent 50679e4 commit b5bcf70

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build-windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
6868
- name: Build PySceneDetect
6969
run: |
70+
python pre_release.py --ignore-installer
7071
pyinstaller dist/scenedetect.spec
7172
7273
- name: Build Documentation

dist/pre_release.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
# -*- coding: utf-8 -*-
22
import os
33
import sys
4-
import xml
54
sys.path.append(os.path.abspath("."))
65

76
import scenedetect
87
VERSION = scenedetect.__version__
98

10-
11-
installer_aip = ''
12-
with open("dist/installer/PySceneDetect.aip", "r") as f:
13-
installer_aip = f.read()
9+
if len(sys.argv) <= 2 or not ("--ignore-installer" in sys.argv):
10+
installer_aip = ''
11+
with open("dist/installer/PySceneDetect.aip", "r") as f:
12+
installer_aip = f.read()
1413

1514
aip_version = f"<ROW Property=\"ProductVersion\" Value=\"{VERSION}\" Options=\"32\"/>"
1615

0 commit comments

Comments
 (0)