Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to add statically linked windows binary #43

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ jobs:
pip3 install PyOxidizer

- name: Build
env:
RUSTFLAGS: -C target-feature=+crt-static
run: |
make deploy-binary
cp target/chdig.exe chdig-windows.exe
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tls = ["clickhouse-rs/tls-rustls"]
[target.'cfg(not(target_family = "windows"))'.dependencies]
cursive = { version = "*", default-features = false, features = ["termion-backend"] }
skim = "*"

[target.'cfg(target_family = "windows")'.dependencies]
# crossterm backend does not support Alt-<Key> bindings (interpret as just <Key>)
cursive = { version = "*", default-features = false, features = ["crossterm-backend"] }
Expand Down
2 changes: 1 addition & 1 deletion contrib/flameshow/pyoxidizer.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ def make_exe():
# Obtain the default PythonDistribution for our build target. We link
# this distribution into our produced executable and extract the Python
# standard library from it.
dist = default_python_distribution()
dist = default_python_distribution(flavor = "standalone_static")

# This function creates a `PythonPackagingPolicy` instance, which
# influences how executables are built and how resources are added to
Expand Down
Loading