Skip to content

Commit be5d729

Browse files
committed
test
1 parent 392815e commit be5d729

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

krita/private/toolchain_repo.bzl

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ KRITA_DEFAULT_VERSION = "5.2.6"
1010
KRITA_VERSIONS = _KRITA_VERSIONS
1111

1212
KRITA_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

1919
KRITARUNNER_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

2626
KRITA_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

3333
CONSTRAINTS = {
@@ -45,11 +45,15 @@ load("@rules_venv//python:py_library.bzl", "py_library")
4545
DATA = 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
@@ -94,7 +98,7 @@ alias(
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,

tools/http_appimage/http_appimage.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _extract_appimage(
4444

4545
temp_out_dir = repository_ctx.path("squashfs-root")
4646

47-
command = [appimage, "--appimage-extract", temp_out_dir]
47+
command = [appimage, "--appimage-extract"]
4848
result = repository_ctx.execute(command)
4949
if result.return_code != 0:
5050
fail("appimage command failed with exit code {}\n{}\n\nstdout:\n{}\nstderr:\n{}".format(

0 commit comments

Comments
 (0)