@@ -10,24 +10,24 @@ KRITA_DEFAULT_VERSION = "5.2.6"
1010KRITA_VERSIONS = _KRITA_VERSIONS
1111
1212KRITA_PATHS = {
13- "linux_x86_64" : "krita" ,
13+ "linux_x86_64" : "usr/bin/ krita" ,
1414 "macos_aarch64" : "krita.app/Contents/MacOS/krita" ,
1515 "macos_x86_64" : "krita.app/Contents/MacOS/krita" ,
1616 "windows_x86_64" : "krita.exe" ,
1717}
1818
1919KRITARUNNER_PATHS = {
20- "linux_x86_64" : "kritarunner" ,
20+ "linux_x86_64" : "usr/bin/ kritarunner" ,
2121 "macos_aarch64" : "krita.app/Contents/MacOS/kritarunner" ,
2222 "macos_x86_64" : "krita.app/Contents/MacOS/kritarunner" ,
2323 "windows_x86_64" : "kritarunner.exe" ,
2424}
2525
2626KRITA_STRIP_PREFIX = {
27- "linux_x86_64" : "krita-{version} " ,
27+ "linux_x86_64" : "" ,
2828 "macos_aarch64" : "" ,
2929 "macos_x86_64" : "" ,
30- "windows_x86_64" : "" ,
30+ "windows_x86_64" : "krita-x64-{version} " ,
3131}
3232
3333CONSTRAINTS = {
@@ -45,11 +45,15 @@ load("@rules_venv//python:py_library.bzl", "py_library")
4545DATA = glob(
4646 include = ["**"],
4747 exclude = [
48- "WORKSPACE",
49- "BUILD",
48+ ".DirIcon",
5049 "*.bazel",
50+ "*.desktop",
5151 "**/*:*",
52+ "AppRun",
53+ "BUILD",
54+ "krita.png",
5255 "Terms Of Use/**",
56+ "WORKSPACE",
5357 ],
5458)
5559
9498"""
9599
96100_PYKRITA_PLATFORM_IMPORT = {
97- "linux_x86_64" : "{major_minor}/scripts/modules " ,
101+ "linux_x86_64" : "usr/lib/krita-python-libs " ,
98102 "macos_aarch64" : "Krita.app/Contents/Resources" ,
99103 "macos_x86_64" : "Krita.app/Contents/Resources" ,
100104 "windows_x86_64" : "lib/krita-python-libs" ,
@@ -145,7 +149,7 @@ def krita_tools_repository(*, name, version, platform, urls, integrity, **kwargs
145149 py_imports = [py_import ]
146150 py_srcs_glob_template = "{}/krita/**/*.py"
147151 py_data_glob_template = "{}/krita/**/*.{}"
148- if "windows" in platform :
152+ if "macos" not in platform :
149153 py_srcs_glob_template = "{}/**/*.py"
150154 py_data_glob_template = "{}/**/{}"
151155 py_srcs_globs = [py_srcs_glob_template .format (py_import )]
@@ -188,7 +192,6 @@ def krita_tools_repository(*, name, version, platform, urls, integrity, **kwargs
188192 ]
189193 ]
190194
191- print (urls )
192195 archive_rule (
193196 name = name ,
194197 urls = urls ,
0 commit comments