Skip to content

Commit 02b3075

Browse files
Merge pull request #8 from Mythical-Github/dev
fix(pyproject.toml-and-main.py): fixed icon packaging issue
2 parents 1a4d370 + 36dca2a commit 02b3075

File tree

23 files changed

+636
-410
lines changed

23 files changed

+636
-410
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
## 1.0.1-dev.14689800227 (2025-04-27)
2+
3+
### Fix
4+
5+
- **pyproject.toml-and-main.py**: fixed icon packaging issue
6+
17
## 1.0.0 (2025-04-27)
28

39
### Feat
410

5-
- **all**: final initial verison
6-
- **all**: final initial verison
11+
- **all**: final initial version
12+
- **all**: final initial version
713
- **all**: added localization
814

915
### Fix

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
800 KB
Binary file not shown.
13 KB
Loading

assets/base/assets/localization/en.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

assets/to_do_list.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Next:
66
Later:
77

88
# have the uninstall and installing check all files were purged/installed at the end and push screen based on that
9-
if the passed zip is invalid or something it shouldn't be succesful either
9+
if the passed zip is invalid or something it shouldn't be successful either
1010

1111

1212
Maybes:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "ue4ss_installer_gui"
7-
version = "1.0.0"
7+
version = "1.0.1-dev.14689800227"
88
description = "GUI installer for UE4SS"
99
readme = "README.md"
1010
requires-python = ">=3.9.1"
@@ -65,7 +65,7 @@ dependencies = [
6565

6666
[tool.hatch.envs.build.scripts]
6767
exe = [
68-
"pyinstaller --noconfirm --onefile --console --name ue4ss_installer_gui --icon=assets/images/project_main_icon.ico --add-data=assets/images/project_main_icon.ico;assets/images/ --add-data=assets/images/project_main_icon.png;assets/images/ src/ue4ss_installer_gui/__main__.pyw"
68+
"pyinstaller --noconfirm --onefile --console --name ue4ss_installer_gui --icon=assets/images/project_main_icon.ico src/ue4ss_installer_gui/__main__.pyw"
6969
]
7070

7171
[tool.hatch.envs.scripts]
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
{
2-
"header_text": "UE4SS",
3-
"sub_header_text": "To install UE4SS, choose one of the games below, or add a game manually",
4-
"docs_button_text": "Docs",
5-
"github_button_text": "Github",
6-
"discord_button_text": "Discord",
7-
"add_directory_to_scan_for_games_button_text": "Add directory to scan for games",
8-
"add_game_by_game_directory": "Add game by game directory",
9-
"game_directory_text_label": "Game Directory:",
10-
"ue4ss_version_text_label": "UE4SS Version:",
11-
"ue4ss_file_to_install_text_label": "Archive to Install:",
12-
"enable_pre_releases_text_label": "Enable pre-releases",
13-
"keep_mods_and_settings_text_label": "Keep mods and settings",
14-
"install_developer_version_text_label": "Install developer version (when applicable)",
15-
"install_portable_version_text_label": "Install portable version (when applicable)",
16-
"install_button_text": "Install",
17-
"install_from_zip_button_text": "Install from zip",
18-
"close_button_text": "Close",
19-
"uninstall_button_text": "Uninstall",
20-
"reinstall_button_text": "Reinstall",
21-
"installing_ue4ss_step_text": "Installing UE4SS",
22-
"cleaning_up_temp_files_step_text": "Cleaning up temp files",
23-
"uninstalling_old_ue4ss_files_step_text": "Uninstalling old UE4SS files",
24-
"downloading_ue4ss_zip_step_text": "Downloading UE4SS zip",
25-
"install_succeeded_message_text": "The install was successful",
26-
"install_failed_message_text": "The install failed",
27-
"uninstall_succeeded_message_text": "The uninstall was successful",
28-
"uninstall_failed_message_text": "The uninstall failed",
29-
"reinstalling_ue4ss_task_text": "Reinstalling UE4SS",
30-
"uninstalling_ue4ss_task_text": "Uninstalling UE4SS",
31-
"installing_ue4ss_task_text": "Installing UE4SS",
32-
"installing_from_zip_ue4ss_task_text": "Installing UE4SS from a zip file",
33-
"open_game_exe_directory": "Open game exe directory"
34-
}
2+
"add_directory_to_scan_for_games_button_text": "Add directory to scan for games",
3+
"add_game_by_game_directory": "Add game by game directory",
4+
"cleaning_up_temp_files_step_text": "Cleaning up temp files",
5+
"close_button_text": "Close",
6+
"discord_button_text": "Discord",
7+
"docs_button_text": "Docs",
8+
"downloading_ue4ss_zip_step_text": "Downloading UE4SS zip",
9+
"enable_pre_releases_text_label": "Enable pre-releases",
10+
"game_directory_text_label": "Game Directory:",
11+
"github_button_text": "Github",
12+
"header_text": "UE4SS",
13+
"install_button_text": "Install",
14+
"install_developer_version_text_label": "Install developer version (when applicable)",
15+
"install_failed_message_text": "The install failed",
16+
"install_from_zip_button_text": "Install from zip",
17+
"install_portable_version_text_label": "Install portable version (when applicable)",
18+
"install_succeeded_message_text": "The install was successful",
19+
"installing_from_zip_ue4ss_task_text": "Installing UE4SS from a zip file",
20+
"installing_ue4ss_step_text": "Installing UE4SS",
21+
"installing_ue4ss_task_text": "Installing UE4SS",
22+
"keep_mods_and_settings_text_label": "Keep mods and settings",
23+
"open_game_exe_directory": "Open game exe directory",
24+
"reinstall_button_text": "Reinstall",
25+
"reinstalling_ue4ss_task_text": "Reinstalling UE4SS",
26+
"sub_header_text": "To install UE4SS, choose one of the games below, or add a game manually",
27+
"ue4ss_file_to_install_text_label": "Archive to Install:",
28+
"ue4ss_version_text_label": "UE4SS Version:",
29+
"uninstall_button_text": "Uninstall",
30+
"uninstall_failed_message_text": "The uninstall failed",
31+
"uninstall_succeeded_message_text": "The uninstall was successful",
32+
"uninstalling_old_ue4ss_files_step_text": "Uninstalling old UE4SS files",
33+
"uninstalling_ue4ss_task_text": "Uninstalling UE4SS"
34+
}

src/ue4ss_installer_gui/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
"TheKillingAntidotePlaytest": "The Killing Antidote Playtest",
3838
"TheKillingAntidote": "The Killing Antidote",
3939
"BronzebeardsTavern-Windows": "Bronzebeard's Tavern",
40-
os.path.normpath("Aero GPX/WindowsNoEditor"): 'Aero GPX'
40+
os.path.normpath("Aero GPX/WindowsNoEditor"): "Aero GPX",
4141
}

src/ue4ss_installer_gui/file_io.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
)
1313

1414

15-
PACKED_DIR = (
16-
sys._MEIPASS if getattr(sys, 'frozen', False) else SCRIPT_DIR
17-
)
15+
PACKED_DIR = sys._MEIPASS if getattr(sys, "frozen", False) else SCRIPT_DIR # type: ignore
1816

1917

2018
def get_all_drive_letter_paths() -> list[str]:
@@ -27,14 +25,14 @@ def get_all_drive_letter_paths() -> list[str]:
2725

2826

2927
def get_temp_dir() -> pathlib.Path:
30-
return pathlib.Path(os.path.normpath(f'{SCRIPT_DIR}/temp'))
28+
return pathlib.Path(os.path.normpath(f"{SCRIPT_DIR}/temp"))
3129

3230

3331
def download_file(url, destination_path):
3432
try:
3533
with requests.get(url, stream=True) as r:
3634
r.raise_for_status()
37-
with open(destination_path, 'wb') as f:
35+
with open(destination_path, "wb") as f:
3836
for chunk in r.iter_content(chunk_size=8192):
3937
f.write(chunk)
4038
print(f"Downloaded: {destination_path}")
@@ -43,12 +41,12 @@ def download_file(url, destination_path):
4341

4442

4543
def unzip_zip(zip_file: pathlib.Path, output_directory: pathlib.Path):
46-
with zipfile.ZipFile(zip_file, 'r') as zip_ref:
44+
with zipfile.ZipFile(zip_file, "r") as zip_ref:
4745
zip_ref.extractall(output_directory)
4846

4947

5048
def get_paths_of_files_in_zip(zip_file: pathlib.Path) -> list[str]:
5149
paths_of_files_in_zip = []
52-
with zipfile.ZipFile(zip_file, 'r') as zip_ref:
50+
with zipfile.ZipFile(zip_file, "r") as zip_ref:
5351
paths_of_files_in_zip = zip_ref.namelist()
54-
return paths_of_files_in_zip
52+
return paths_of_files_in_zip

0 commit comments

Comments
 (0)