diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 661cee4..dd57008 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index d64bda7..f9c9b10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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- bindings (interpret as just ) cursive = { version = "*", default-features = false, features = ["crossterm-backend"] } diff --git a/contrib/flameshow/pyoxidizer.bzl b/contrib/flameshow/pyoxidizer.bzl index 2a2ba5d..121a5f3 100644 --- a/contrib/flameshow/pyoxidizer.bzl +++ b/contrib/flameshow/pyoxidizer.bzl @@ -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