Skip to content

Commit 5bfeda4

Browse files
authored
Merge branch 'main' into dev-packaging
2 parents 3a9995d + e3d6d2f commit 5bfeda4

File tree

5 files changed

+27
-12
lines changed

5 files changed

+27
-12
lines changed

.github/workflows/flet-pack.yml renamed to .github/workflows/pack-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: ["macos-latest", "windows-latest"]
14+
os: ["macos-latest", "windows-latest", "ubuntu-latest"]
1515

1616
steps:
1717
- uses: actions/checkout@main

scripts/pack_app.py

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@
1010

1111
app_path = "app.py"
1212
app_name = "Tuttle"
13-
icon_path = "tuttle/app/assets/icon/macos/AppIcon.icns"
13+
14+
15+
def get_icon_path():
16+
if sys.platform.startswith("darwin"):
17+
icon_path = "tuttle/app/assets/icon/macos/AppIcon.icns"
18+
else:
19+
icon_path = "tuttle/app/assets/icon/web/icon-512-maskable.png"
20+
return icon_path
21+
1422

1523
# files to be added to the app bundle
1624
added_files = [
@@ -21,20 +29,27 @@
2129
# options to be passed to flet pack
2230
pack_options = [
2331
("--name", app_name),
24-
("--icon", icon_path),
32+
("--icon", get_icon_path()),
2533
("--product-name", app_name),
2634
("--product-version", tuttle.__version__),
27-
("--copyright", "© 2021-2023 Tuttle developers. Licsened under the GNU GPL v3.0."),
35+
(
36+
"--copyright",
37+
"(c) 2021-2023 Tuttle developers. Licsened under the GNU GPL v3.0.",
38+
),
2839
]
2940

30-
if sys.platform.startswith("win"):
31-
delimiter = ";"
32-
else:
33-
delimiter = ":"
41+
42+
def get_delimiter():
43+
if sys.platform.startswith("win"):
44+
delimiter = ";"
45+
else:
46+
delimiter = ":"
47+
return delimiter
48+
3449

3550
added_data_options = []
3651
for src, dst in added_files:
37-
added_data_options += ["--add-data", f"{src}{delimiter}{dst}"]
52+
added_data_options += ["--add-data", f"{src}{get_delimiter()}{dst}"]
3853
pack_options_unpacked = [item for pair in pack_options for item in pair]
3954

4055

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.0.1a
2+
current_version = 1.1.0a
33
commit = True
44
tag = True
55

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
packages=find_packages(include=["tuttle", "tuttle.*", "tuttle_tests"]),
3838
test_suite="tests",
3939
url="https://github.com/tuttle-dev/tuttle",
40-
version="1.0.1",
40+
version="1.1.0",
4141
zip_safe=False,
4242
)

tuttle/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Christian Staudt",
55
"Vladimir Peter",
66
]
7-
__version__ = "1.0.1"
7+
__version__ = "1.1.0"
88

99
from . import app
1010
from . import (

0 commit comments

Comments
 (0)