Skip to content

Commit ea50d8a

Browse files
committed
[dist] Fix hang on Windows due to not creating console window #209
1 parent 9a6ed6b commit ea50d8a

File tree

9 files changed

+25
-19
lines changed

9 files changed

+25
-19
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
------------------------------------------------
66

7-
### Latest Release: v1.7 (February 28, 2025)
7+
### Latest Release: v1.7.0.1 (March 11, 2025)
88

99
**Website**: [dvr-scan.com](https://www.dvr-scan.com)
1010

@@ -62,5 +62,5 @@ See [the documentation](https://www.dvr-scan.com/docs) for a complete list of al
6262

6363
------------------------------------------------
6464

65-
Copyright © 2016-2024 Brandon Castellano. All rights reserved.
65+
Copyright © 2016-2025 Brandon Castellano. All rights reserved.
6666
Licensed under BSD 2-Clause (see the LICENSE file for details).

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ install:
6666
- appveyor DownloadFile https://www.advancedinstaller.com/downloads/advinst.msi
6767
- msiexec /i advinst.msi /qn
6868
# TODO: Determine the path to Advanced Installer more programatically.
69-
- 'SET PATH=%PATH%;C:\\Program Files (x86)\\Caphyon\\Advanced Installer 22.4\\bin\\x86'
69+
- 'SET PATH=%PATH%;C:\\Program Files (x86)\\Caphyon\\Advanced Installer 22.5\\bin\\x86'
7070
# License path must be absolute
7171
- AdvancedInstaller.com /RegisterOffline "%cd%\license65.dat"
7272
# Create MSI installer

dist/dvr-scan.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ app_exe = EXE(app_pyz,
5858
debug=False,
5959
strip=False,
6060
upx=True,
61-
console=False,
61+
console=True,
62+
hide_console="hide-late",
6263
version='.version_info',
6364
icon='../dvr_scan/dvr-scan.ico')
6465

dist/installer/DVR-Scan.aip

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<DOCUMENT Type="Advanced Installer" CreateVersion="13.5" version="22.3" Modules="professional" RootPath="." Language="en" Id="{3919FEC9-E2C3-453E-81FD-9E8BABBE2CA4}">
2+
<DOCUMENT Type="Advanced Installer" CreateVersion="13.5" version="22.5" Modules="professional" RootPath="." Language="en" Id="{3919FEC9-E2C3-453E-81FD-9E8BABBE2CA4}">
33
<COMPONENT cid="caphyon.advinst.msicomp.MsiPropsComponent">
44
<ROW Property="AI_APP_FILE" Value="[#dvrscanapp.exe]"/>
55
<ROW Property="AI_BITMAP_DISPLAY_MODE" Value="0"/>
@@ -22,10 +22,10 @@
2222
<ROW Property="CTRLS" Value="2"/>
2323
<ROW Property="DialogBitmap" Value="dialog.jpg" MultiBuildValue="DefaultBuild:installer_logo.jpg" Type="1" MsiKey="DialogBitmap"/>
2424
<ROW Property="Manufacturer" Value="Brandon Castellano"/>
25-
<ROW Property="ProductCode" Value="1033:{69127555-50F1-4890-AA09-BD3A9D3DD948} " Type="16"/>
25+
<ROW Property="ProductCode" Value="1033:{C592C702-695E-4B72-8E59-09BFE5F32582} " Type="16"/>
2626
<ROW Property="ProductLanguage" Value="1033"/>
2727
<ROW Property="ProductName" Value="DVR-Scan"/>
28-
<ROW Property="ProductVersion" Value="1.7" Options="32"/>
28+
<ROW Property="ProductVersion" Value="1.7.0.1" Options="32"/>
2929
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
3030
<ROW Property="UpgradeCode" Value="{8FEF5940-4574-4C5D-9776-2CDDC0375510}"/>
3131
<ROW Property="WindowsType9X" MultiBuildValue="DefaultBuild:Windows 9x/ME" ValueLocId="-"/>
@@ -105,7 +105,7 @@
105105
</COMPONENT>
106106
<COMPONENT cid="caphyon.advinst.msicomp.MsiCompsComponent">
107107
<ROW Component="ACT" ComponentId="{D95A9999-B504-484E-A1D8-14BF76FBD948}" Directory_="Australia_Dir" Attributes="0" KeyPath="ACT" Type="0"/>
108-
<ROW Component="AI_CustomARPName" ComponentId="{612322CC-E55B-4730-BCEA-5DFDAE742FE9}" Directory_="APPDIR" Attributes="260" KeyPath="DisplayName" Options="1"/>
108+
<ROW Component="AI_CustomARPName" ComponentId="{A2ED4D2C-D97E-4BA6-81FE-02725FE0A0C4}" Directory_="APPDIR" Attributes="260" KeyPath="DisplayName" Options="1"/>
109109
<ROW Component="AI_DisableModify" ComponentId="{653C9260-5E39-41EA-9C74-362F9C299BED}" Directory_="APPDIR" Attributes="260" KeyPath="NoModify" Options="1"/>
110110
<ROW Component="AI_SHORTCUTSREG" ComponentId="{271A6EBA-4BA8-47EE-B3BA-34DC4C1A6531}" Directory_="APPDIR" Attributes="260" KeyPath="AI_SHORTCUTSREG" Options="1"/>
111111
<ROW Component="APPDIR" ComponentId="{088A429B-96BF-40BE-9BA2-B2CA5EB76862}" Directory_="APPDIR" Attributes="0"/>

dist/pre_release.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ def write_version_info_for_windows_exe():
2727

2828
with open("dist/.version_info", "wb") as f:
2929
elements = [int(elem) if elem.isnumeric() else 999 for elem in VERSION.split(".")]
30-
assert 2 <= len(elements) <= 3
31-
major = elements[0]
32-
minor = elements[1]
33-
patch = elements[2] if len(elements) == 3 else 0
30+
assert len(elements) <= 4
31+
elements.extend([0] * (4 - len(elements)))
32+
33+
assert len(elements) == 4
34+
(major, minor, patch, build) = elements
3435

3536
f.write(
3637
f"""# UTF-8
@@ -41,8 +42,8 @@ def write_version_info_for_windows_exe():
4142
ffi=FixedFileInfo(
4243
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
4344
# Set not needed items to zero 0.
44-
filevers=(0, {major}, {minor}, {patch}),
45-
prodvers=(0, {major}, {minor}, {patch}),
45+
filevers=({major}, {minor}, {patch}, {build}),
46+
prodvers=({major}, {minor}, {patch}, {build}),
4647
# Contains a bitmask that specifies the valid bits 'flags'r
4748
mask=0x3f,
4849
# Contains a bitmask that specifies the Boolean attributes of the file.

docs/changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
----------------------------------------------------------
55

6-
## DVR-Scan 1.7
6+
#### Changelog
7+
8+
### 1.7.0.1 (March 11, 2025)
9+
10+
Re-release of Windows distribution that fixes program hanging when starting scan ([#209](https://github.com/Breakthrough/DVR-Scan/issues/209)). This was caused due to the way the program was built. There are no code changes, so the Python distribution has not been re-released.
711

812
### 1.7 (February 28, 2025)
913

docs/download.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Linux users may need to install the `python3-tk` package (e.g. `sudo apt install
2929

3030
## Windows<span class="dvr-scan-download-icons">:fontawesome-brands-windows:</span>
3131

32-
!!! windows-download "**1.7**<span class="dvr-scan-release-date">February 28, 2025</span>"
32+
!!! windows-download "**1.7.0.1**<span class="dvr-scan-release-date">March 11, 2025</span>"
3333

34-
<div class="buttongrid buttongrid-download">[:fontawesome-solid-download: &nbsp; Installer `.msi`](https://github.com/Breakthrough/DVR-Scan/releases/download/v1.7-release/dvr-scan-1.7-win64.msi){ .md-button #download-button }[:fontawesome-solid-file-zipper: &nbsp; Portable `.zip`](https://github.com/Breakthrough/DVR-Scan/releases/download/v1.7-release/dvr-scan-1.7-win64.zip){ .md-button #changelog-button }</div>
34+
<div class="buttongrid buttongrid-download">[:fontawesome-solid-download: &nbsp; Installer `.msi`](https://github.com/Breakthrough/DVR-Scan/releases/download/v1.7-release/dvr-scan-1.7.0.1-win64.msi){ .md-button #download-button }[:fontawesome-solid-file-zipper: &nbsp; Portable `.zip`](https://github.com/Breakthrough/DVR-Scan/releases/download/v1.7-release/dvr-scan-1.7.0.1-win64.zip){ .md-button #changelog-button }</div>
3535

3636

3737
The installer is recommended for most users. Windows builds include all required dependencies to run DVR-Scan. Only 64-bit builds are available.

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hide:
1111

1212
------------------------------------------------------
1313

14-
!!! success "Latest Version: 1.7 (February 28, 2025)"
14+
!!! success "Latest Version: 1.7.0.1 (March 11, 2025)"
1515

1616
<div class="buttongrid">[:fontawesome-solid-download: &nbsp; Download](download.md){ .md-button #download-button }[:fontawesome-solid-book: User Guide](guide.md){ .md-button #changelog-button }[:fontawesome-solid-bars: &nbsp; Documentation](docs.md){ .md-button #documentation-button }[:fontawesome-solid-gear: &nbsp; Resources](resources.md){ .md-button #quickstart-button }</div>
1717

dvr_scan/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import sys
3636

3737
# Used for module/distribution identification.
38-
__version__ = "1.7"
38+
__version__ = "1.7.0.1"
3939

4040
# Handle loading OpenCV. This **MUST** be first before any other DVR-Scan or third-party
4141
# packages are imported which might attempt to import the `cv2` module.

0 commit comments

Comments
 (0)