Skip to content

Commit

Permalink
add version number
Browse files Browse the repository at this point in the history
  • Loading branch information
R3c0ger committed Oct 20, 2024
1 parent 3cbbca2 commit 499b151
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exe = EXE(
a.binaries,
a.datas,
[],
name='Browser Video Info Fetcher',
name='Browser_Video_Info_Fetcher',
debug=False,
bootloader_ignore_signals=False,
strip=False,
Expand Down
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@REM .\venv\Scripts\activate.bat && pyinstaller -Fw .\main_gui.py -n "Browser Video Info Fetcher"
.\venv\Scripts\activate.bat && pyinstaller "Browser Video Info Fetcher.spec"
.\venv\Scripts\activate.bat && pyinstaller "Browser_Video_Info_Fetcher.spec"
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import win32gui
from pywinauto.application import Application

__VERSION__ = "0.1.2"

BrowserSwitcher = {
"firefox": "Firefox",
Expand Down
3 changes: 2 additions & 1 deletion main_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import win32gui

from main import (
__VERSION__,
BrowserSwitcher,
get_visible_browser_window,
extract_video_title,
Expand Down Expand Up @@ -47,7 +48,7 @@ def main_window():
root = tk.Tk()
# 禁止调整大小
root.resizable(False, False)
root.title("Browser Video Info Fetcher")
root.title(f"Browser Video Info Fetcher - {__VERSION__}")

# 框架容器
main_frame = ttk.Frame(root, padding="10")
Expand Down

0 comments on commit 499b151

Please sign in to comment.