From 67bd8f242a6fee252f5d2b4e41905952eb9c2a47 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 4 Oct 2020 13:39:14 +0100 Subject: [PATCH] fix highlighted problems --- package.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.sh b/package.sh index 5cba1a7..701758f 100755 --- a/package.sh +++ b/package.sh @@ -1,12 +1,14 @@ #!/bin/bash -source ~/.cargo/env +source /home/rust/.cargo/env cargo build --target=x86_64-pc-windows-gnu --release mkdir package cp target/x86_64-pc-windows-gnu/release/*.exe package -export DLLS=`peldd package/*.exe -t --ignore-errors` +DLLS=$(peldd package/*.exe -t --ignore-errors) +export DLLS + for DLL in $DLLS do cp "$DLL" package done