Skip to content

Commit 733ca20

Browse files
Workflows 😎
1 parent 9fc86f0 commit 733ca20

File tree

3 files changed

+57
-7
lines changed

3 files changed

+57
-7
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
job:
5+
name: CI
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-dotnet@v4
10+
with:
11+
dotnet-version: '8.0.x'
12+
- name: Build
13+
run: dotnet build
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Installer CI
2+
on:
3+
push:
4+
paths:
5+
- 'installer/**'
6+
pull_request:
7+
paths:
8+
- 'installer/**'
9+
jobs:
10+
job:
11+
defaults:
12+
run:
13+
working-directory: ./installer
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [windows-latest, ubuntu-latest]
18+
name: Installer CI on ${{ matrix.os }}
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.11'
25+
- name: Install requirements
26+
run: pip install -r requirements.txt
27+
- name: Build
28+
run: python build.py
29+
- uses: actions/upload-artifact@v4
30+
with:
31+
name: ${{ matrix.os }}
32+
path: installer/dist/
33+

‎installer/main.py‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def install():
4242
raise FileNotFoundError
4343
except FileNotFoundError:
4444
messagebox.CTkMessagebox(
45-
title="Error",
46-
message="Folder not found or not valid!",
47-
icon="cancel",
45+
title="Error",
46+
message="The folder does not exist or is not valid!",
47+
icon="cancel",
4848
width=100,
4949
height=50
5050
)
@@ -75,9 +75,11 @@ def _install(path):
7575
config = configparser.ConfigParser()
7676
config.read_file(config_file)
7777
if "Logging.Console" in config:
78-
config["Logging.Console"]["Enabled"] = not bool(disable_logs_button.get())
78+
config["Logging.Console"]["Enabled"] = not bool(
79+
disable_logs_button.get())
7980
else:
80-
config["Logging.Console"] = {"Enabled": not bool(disable_logs_button.get())}
81+
config["Logging.Console"] = {
82+
"Enabled": not bool(disable_logs_button.get())}
8183
config.write(config_file)
8284
progress_bar.step()
8385

@@ -97,8 +99,10 @@ def launch():
9799
app.iconbitmap(default=resource_path("icon.ico"))
98100
app.resizable(False, False)
99101

100-
path_entry = customtkinter.CTkEntry(app, placeholder_text="Game path", width=228)
101-
browse_button = customtkinter.CTkButton(app, text="Browse", command=browse, width=1)
102+
path_entry = customtkinter.CTkEntry(
103+
app, placeholder_text="Game path", width=228)
104+
browse_button = customtkinter.CTkButton(
105+
app, text="Browse", command=browse, width=1)
102106
disable_logs_button = customtkinter.CTkCheckBox(app, text="Disable logs")
103107
disable_logs_button.select()
104108
install_button = customtkinter.CTkButton(app, text="Install", command=install)

0 commit comments

Comments
 (0)