Skip to content

Commit

Permalink
Update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
i0gan committed Oct 5, 2024
1 parent 419234c commit aa662bb
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tools/gen_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Github: https://github.com/pwnsky/squick
# Description: Generate Linux or Macos deploy files
cd $(dirname $0)
source common.sh
echo "Generating linux or macos deploy files"
bash init_runtime_dll.sh

Expand All @@ -24,16 +25,19 @@ cp -r res/XlsxXML deploy/res/XlsxXML
cp -r res/Proto deploy/res/Proto

# copy lib
cp /lib/x86_64-linux-gnu/libssl.so.1.1 deploy/bin
cp /lib/x86_64-linux-gnu/libcrypto.so.1.1 deploy/bin

cp /lib/x86_64-linux-gnu/libssl.so deploy/bin
cp /lib/x86_64-linux-gnu/libcrypto.so deploy/bin
echo "Deploy for $LinuxDistro"
if [ $LinuxDistro == "Debian" ] || [ $LinuxDistro == "Ubuntu" ] || [ $LinuxDistro == "Raspbian" ]; then
cp /lib/x86_64-linux-gnu/libssl.so.1.1 deploy/bin
cp /lib/x86_64-linux-gnu/libcrypto.so.1.1 deploy/bin
cp /lib/x86_64-linux-gnu/libssl.so deploy/bin
cp /lib/x86_64-linux-gnu/libcrypto.so deploy/bin
elif [ $LinuxDistro == "Arch" ]; then
echo "Arch"
fi

# create dir
cd deploy
mkdir -p data/logs
mkdir -p data/crashs


echo "Generated all files!"

0 comments on commit aa662bb

Please sign in to comment.