Skip to content

Commit

Permalink
Fix binary extension on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Aug 30, 2024
1 parent 8401ee5 commit 6207b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ def get_build_dir(config) -> Path:
TMP_DIR = Path(os.getenv("TMP_DIR", default_tmp_dir))
if platform.system() == "Windows":
KBUILD_SOURCE_DIR = Path(_environ["GITHUB_WORKSPACE"])
BIN_EXT = ".exe"
else:
KBUILD_SOURCE_DIR = HOME / "kiwix-build"
BIN_EXT = ".exe" if COMPILE_CONFIG.startswith("win32_") else ""


_ref = _environ.get("GITHUB_REF", "").split("/")[-1]
Expand All @@ -62,8 +64,6 @@ def get_build_dir(config) -> Path:
FLATPAK_HTTP_GIT_REMOTE = "https://github.com/flathub/org.kiwix.desktop.git"
FLATPAK_GIT_REMOTE = "[email protected]:flathub/org.kiwix.desktop.git"

BIN_EXT = ".exe" if COMPILE_CONFIG.startswith("win32_") else ""


def major_version(version: str) -> str:
return version.split(".")[0]
Expand Down

0 comments on commit 6207b0a

Please sign in to comment.