Skip to content
Merged
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
1 change: 0 additions & 1 deletion .github/workflows/rustdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- "rust-toolchain.toml"
- "rustfmt.toml"
- "ci/cargo-ci.sh"
- "env.sh"

workflow_dispatch:
inputs:
Expand Down
5 changes: 0 additions & 5 deletions BuildInstructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,6 @@ TARGETS="riscv64gc-unknown-linux-gnu" ./build.sh --daemon-only --optimize

This section is for building the system service individually.

1. On macOS, source `env.sh` to set the default environment variables:
```bash
source env.sh
```

1. On Windows, build the C++ libraries:
```bash
./build-windows-modules.sh
Expand Down
1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ if [[ "$(uname -s)" == "MINGW"* ]]; then
fi

for t in "${TARGETS[@]:-""}"; do
source env.sh "$t"
build "$t"
done

Expand Down
6 changes: 0 additions & 6 deletions ci/cargo-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

set -eux

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Explicitly pass empty first argument, otherwise this script will pass on its arguments in a `source` invocation.
# shellcheck disable=SC1091
source "$SCRIPT_DIR/../env.sh" ""

# Hard deny on all warnings when running in CI
export RUSTFLAGS="--deny warnings"

Expand Down
38 changes: 0 additions & 38 deletions env.sh

This file was deleted.

9 changes: 9 additions & 0 deletions mullvad-daemon/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ fn main() {
if matches!(target_os(), Os::Windows | Os::Macos) {
println!(r#"cargo::rustc-cfg=in_app_upgrade"#);
}

if matches!(target_os(), Os::Macos) {
// Set the minimum version of macOS on which mullvad-daemon can run.
if cfg!(target_arch = "x86_64") {
println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.12");
} else if cfg!(target_arch = "aarch64") {
println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=11.0");
}
}
}

fn commit_date() -> String {
Expand Down
Loading