Skip to content

Commit e5b0bd8

Browse files
committed
add build workflow and installer scripts for cross-platform support
1 parent 166ac15 commit e5b0bd8

6 files changed

Lines changed: 63 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
strategy:
11+
matrix:
12+
os:
13+
- ubuntu-latest
14+
- windows-latest
15+
- macos-latest
16+
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: astral-sh/setup-uv@v6
23+
24+
- name: Install dependencies
25+
run: uv sync --all-extras
26+
27+
- name: Build
28+
run: |
29+
uv run python -m nuitka \
30+
--standalone \
31+
--onefile \
32+
--output-filename=crow-client \
33+
src/client/__main__.py
34+
35+
- name: Upload artifact
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: myclient-${{ matrix.os }}
39+
path: |
40+
*.exe
41+
*.bin
42+
myclient

installer/install_linux.sh

Whitespace-only changes.

installer/install_macos.sh

Whitespace-only changes.

installer/install_windows.ps1

Whitespace-only changes.

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "crow-client"
3-
version = "0.0.1"
3+
version = "0.0.2"
44
description = "CROW-Client"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -30,3 +30,8 @@ packages = ["src/client"]
3030

3131
[tool.setuptools.packages.find]
3232
where = ["src"]
33+
34+
[dependency-groups]
35+
dev = [
36+
"nuitka>=4.1.1",
37+
]

uv.lock

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)