diff options
author | Liam Murphy <43807659+Liamolucko@users.noreply.github.com> | 2021-01-24 04:40:13 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-24 02:40:13 +0900 |
commit | a61389a55e7c2df88460f11ee07b415efcdff791 (patch) | |
tree | 9c563ec645ea54dd53f098434a275bd304e444a0 /cli/tools/standalone.rs | |
parent | 1518fabfbba3cb951357f7c7977d6346943a9a8f (diff) |
fix(compile): fix panic when cross-compiling between windows and unix (#9203)
Diffstat (limited to 'cli/tools/standalone.rs')
-rw-r--r-- | cli/tools/standalone.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/tools/standalone.rs b/cli/tools/standalone.rs index 8cc574e50..884d2a31d 100644 --- a/cli/tools/standalone.rs +++ b/cli/tools/standalone.rs @@ -48,7 +48,11 @@ pub async fn get_base_binary( } let archive_data = tokio::fs::read(binary_path).await?; - let base_binary_path = crate::tools::upgrade::unpack(archive_data, exe_name)?; + let base_binary_path = crate::tools::upgrade::unpack( + archive_data, + exe_name, + target.contains("windows"), + )?; let base_binary = tokio::fs::read(base_binary_path).await?; Ok(base_binary) } |