From 5f54758862f3419e226bf22affaa299c9a348794 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Fri, 10 Mar 2023 01:35:59 -0800 Subject: [PATCH] Statically link CRT --- CHANGELOG.md | 1 + src-tauri/.cargo/config.toml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 src-tauri/.cargo/config.toml diff --git a/CHANGELOG.md b/CHANGELOG.md index 280da93..468ffdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - [x] ⚠ Tiger files saved with version 0.7.0 and older are no longer supported - [x] Tiger file format version was is now `1.0.0` +- [x] Fixed a bug where on some computers, Tiger wouldn't launch due to missing MSVCP140.dll - [x] Add up-to-date screenshots in readme - [x] Add video in readme - [x] Remove under-development warning from readme diff --git a/src-tauri/.cargo/config.toml b/src-tauri/.cargo/config.toml new file mode 100644 index 0000000..78f5c7f --- /dev/null +++ b/src-tauri/.cargo/config.toml @@ -0,0 +1,7 @@ +# Statically link C runtime so users don't need MSVCP140.dll (and friends) +[target.x86_64-pc-windows-msvc] +rustflags = ["-C","target-feature=+crt-static"] + +# Disable tauri feature trying to accomplish the same thing +[env] +STATIC_VCRUNTIME = "false"